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,Result,UserCoreResult<UserCustomColumn,UserCustomTable,UserCustomRow>
public class UserCustomCursor extends UserCursor<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
Constructors Constructor Description UserCustomCursor(UserCustomTable table, Cursor cursor)ConstructorUserCustomCursor(UserCustomTable table, String[] columns, Cursor cursor)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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 cursorvoidenableInvalidRequery(UserCustomDao dao)Enable requery attempt of invalid rows after iterating through original query rows.UserCustomColumnsgetColumns()UserCustomRowgetRow(int[] columnTypes, Object[] values)-
Methods inherited from class mil.nga.geopackage.user.UserCursor
close, enableInvalidRequery, getCount, getId, getInvalidPositions, getQuery, getRow, getTable, getTableName, getValue, getValue, getValue, getValue, hasInvalidPositions, moveToNext, setColumns, setQuery, setTable
-
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 mil.nga.geopackage.db.Result
getBlob, getColumnCount, getColumnIndex, getDouble, getFloat, getInt, getLong, getPosition, getShort, getString, getType, moveToFirst, moveToPosition, wasNull
-
-
-
-
Constructor Detail
-
UserCustomCursor
public UserCustomCursor(UserCustomTable table, Cursor cursor)
Constructor- Parameters:
table- user custom tablecursor- cursor
-
UserCustomCursor
public UserCustomCursor(UserCustomTable table, String[] columns, Cursor cursor)
Constructor- Parameters:
table- user custom tablecolumns- columnscursor- cursor- Since:
- 3.5.0
-
-
Method Detail
-
getRow
public UserCustomRow getRow(int[] columnTypes, Object[] values)
-
getColumns
public UserCustomColumns getColumns()
- Specified by:
getColumnsin interfaceUserCoreResult<UserCustomColumn,UserCustomTable,UserCustomRow>- Overrides:
getColumnsin classUserCursor<UserCustomColumn,UserCustomTable,UserCustomRow>
-
enableInvalidRequery
public void enableInvalidRequery(UserCustomDao dao)
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,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 cursor- Specified by:
createInvalidCursorin classUserCursor<UserCustomColumn,UserCustomTable,UserCustomRow>- Parameters:
dao- data access objectcursor- user cursorinvalidPositions- invalid positionsblobColumns- blob columns- Returns:
- invalid cursor
-
-