Package mil.nga.geopackage.user.custom
Class UserCustomCursor
java.lang.Object
android.database.CursorWrapper
mil.nga.geopackage.db.CursorResult
mil.nga.geopackage.user.UserCursor<UserCustomColumn,UserCustomTable,UserCustomRow>
mil.nga.geopackage.user.custom.UserCustomCursor
- All Implemented Interfaces:
Cursor
,Closeable
,AutoCloseable
,Iterable<UserCustomRow>
,Result
,UserCoreResult<UserCustomColumn,
UserCustomTable, UserCustomRow>
User Custom Cursor to wrap a database Cursor for tile queries
- Since:
- 3.0.1
-
Field Summary
Fields inherited from interface android.database.Cursor
FIELD_TYPE_BLOB, FIELD_TYPE_FLOAT, FIELD_TYPE_INTEGER, FIELD_TYPE_NULL, FIELD_TYPE_STRING
-
Constructor Summary
ConstructorDescriptionUserCustomCursor
(UserCustomTable table, Cursor cursor) ConstructorUserCustomCursor
(UserCustomTable table, String[] columns, Cursor cursor) Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected UserInvalidCursor<UserCustomColumn,
UserCustomTable, UserCustomRow, ? extends UserCursor<UserCustomColumn, UserCustomTable, UserCustomRow>, ? extends UserDao<UserCustomColumn, UserCustomTable, UserCustomRow, ? extends UserCursor<UserCustomColumn, UserCustomTable, UserCustomRow>>> createInvalidCursor
(UserDao dao, UserCursor cursor, List<Integer> invalidPositions, List<UserCustomColumn> blobColumns) Create an invalid cursorvoid
Enable requery attempt of invalid rows after iterating through original query rows.Methods inherited from class mil.nga.geopackage.user.UserCursor
close, enableInvalidRequery, getCount, getId, getInvalidPositions, getQuery, getRow, getSelectionArgs, getSql, getTable, getTableName, getValue, getValue, getValue, getValue, hasInvalidPositions, ids, isUseBindings, iterator, moveToNext, readBlobValue, setColumns, setQuery, setTable, setUseBindings
Methods inherited from class mil.nga.geopackage.db.CursorResult
wasNull
Methods inherited from class android.database.CursorWrapper
copyStringToBuffer, deactivate, getBlob, getColumnCount, getColumnIndex, getColumnIndexOrThrow, getColumnName, getColumnNames, getDouble, getExtras, getFloat, getInt, getLong, getNotificationUri, getNotificationUris, getPosition, getShort, getString, getType, getWantsAllOnMoveCalls, getWrappedCursor, isAfterLast, isBeforeFirst, isClosed, isFirst, isLast, isNull, move, moveToFirst, moveToLast, moveToPosition, moveToPrevious, registerContentObserver, registerDataSetObserver, requery, respond, setExtras, setNotificationUri, setNotificationUris, unregisterContentObserver, unregisterDataSetObserver
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface mil.nga.geopackage.db.Result
getBlob, getColumnCount, getColumnIndex, getDouble, getFloat, getInt, getLong, getPosition, getShort, getString, getType, moveToFirst, moveToPosition, wasNull
-
Constructor Details
-
UserCustomCursor
Constructor- Parameters:
table
- user custom tablecursor
- cursor
-
UserCustomCursor
Constructor- Parameters:
table
- user custom tablecolumns
- columnscursor
- cursor- Since:
- 3.5.0
-
-
Method Details
-
getRow
-
getColumns
- Specified by:
getColumns
in interfaceUserCoreResult<UserCustomColumn,
UserCustomTable, UserCustomRow> - Overrides:
getColumns
in classUserCursor<UserCustomColumn,
UserCustomTable, UserCustomRow>
-
enableInvalidRequery
Enable requery attempt of invalid rows after iterating through original query rows. Only supported forUserCursor.moveToNext()
andUserCursor.getRow()
usage.- Parameters:
dao
- data access object used to perform requery
-
createInvalidCursor
protected UserInvalidCursor<UserCustomColumn,UserCustomTable, createInvalidCursorUserCustomRow, ? extends UserCursor<UserCustomColumn, UserCustomTable, UserCustomRow>, ? extends UserDao<UserCustomColumn, UserCustomTable, UserCustomRow, ? extends UserCursor<UserCustomColumn, UserCustomTable, UserCustomRow>>> (UserDao dao, UserCursor cursor, List<Integer> invalidPositions, List<UserCustomColumn> blobColumns) Create an invalid cursor- Specified by:
createInvalidCursor
in classUserCursor<UserCustomColumn,
UserCustomTable, UserCustomRow> - Parameters:
dao
- data access objectcursor
- user cursorinvalidPositions
- invalid positionsblobColumns
- blob columns- Returns:
- invalid cursor
-