Back to project page CursorMapper.
The source code is released under:
Apache License
If you think the Android project CursorMapper listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package cursor.mapper.cursor.extractor; /* www . j a v a 2s .co m*/ import android.database.Cursor; import cursor.mapper.AnnotatedCursorMapper; public class RecursiveExtractor implements ColumnExtractor { private AnnotatedCursorMapper mAnnotatedCursorMapper; public RecursiveExtractor(Class<?> type) { mAnnotatedCursorMapper = new AnnotatedCursorMapper(type); } @Override public Object extract(Class<?> targetType, Cursor cursor, int columnIndex) { return mAnnotatedCursorMapper.toObject(cursor); } }