T - Entity type represented within the Cursorpublic class CombinedCursorImpl<T> extends java.lang.Object implements CombinedCursor<T>
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
copyStringToBuffer(int columnIndex,
android.database.CharArrayBuffer buffer) |
static <C> CombinedCursor<C> |
create(android.content.Context context,
android.database.Cursor originalCursor,
EntityInfo entityInfo,
java.lang.Class<C> entityClass) |
void |
deactivate() |
java.util.Collection<T> |
getAll() |
byte[] |
getBlob(int columnIndex) |
int |
getColumnCount() |
int |
getColumnIndex(java.lang.String columnName) |
int |
getColumnIndexOrThrow(java.lang.String columnName) |
java.lang.String |
getColumnName(int columnIndex) |
java.lang.String[] |
getColumnNames() |
int |
getCount() |
T |
getCurrent() |
double |
getDouble(int columnIndex) |
android.os.Bundle |
getExtras() |
T |
getFirst() |
float |
getFloat(int columnIndex) |
int |
getInt(int columnIndex) |
T |
getLast() |
long |
getLong(int columnIndex) |
T |
getNext()
Returns the element at the next position of the
ObjectCursor. |
java.util.Collection<T> |
getNext(int amount) |
android.net.Uri |
getNotificationUri() |
T |
getOne() |
int |
getPosition() |
T |
getPrevious() |
java.util.Collection<T> |
getPrevious(int amount) |
short |
getShort(int columnIndex) |
java.lang.String |
getString(int columnIndex) |
int |
getType(int columnIndex) |
boolean |
getWantsAllOnMoveCalls() |
boolean |
hasNext() |
boolean |
hasPrevious() |
boolean |
isAfterLast() |
boolean |
isBeforeFirst() |
boolean |
isClosed() |
boolean |
isFirst() |
boolean |
isLast() |
boolean |
isNull(int columnIndex) |
java.util.Iterator<T> |
iterator() |
boolean |
move(int offset) |
boolean |
moveToFirst() |
boolean |
moveToLast() |
boolean |
moveToNext() |
boolean |
moveToPosition(int position) |
boolean |
moveToPrevious() |
void |
registerContentObserver(android.database.ContentObserver observer) |
void |
registerDataSetObserver(android.database.DataSetObserver observer) |
boolean |
requery() |
android.os.Bundle |
respond(android.os.Bundle extras) |
void |
setNotificationUri(android.content.ContentResolver cr,
android.net.Uri uri) |
int |
size() |
void |
unregisterContentObserver(android.database.ContentObserver observer) |
void |
unregisterDataSetObserver(android.database.DataSetObserver observer) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, copyStringToBuffer, deactivate, getBlob, getColumnCount, getColumnIndex, getColumnIndexOrThrow, getColumnName, getColumnNames, getCount, getDouble, getExtras, getFloat, getInt, getLong, getPosition, getShort, getString, getType, getWantsAllOnMoveCalls, isAfterLast, isBeforeFirst, isClosed, isFirst, isLast, isNull, move, moveToFirst, moveToLast, moveToNext, moveToPosition, moveToPrevious, registerContentObserver, registerDataSetObserver, requery, respond, setNotificationUri, unregisterContentObserver, unregisterDataSetObservergetPosition, isClosed, moveToFirst, moveToLast, moveToNext, moveToPosition, moveToPreviouspublic static final <C> CombinedCursor<C> create(android.content.Context context, android.database.Cursor originalCursor, EntityInfo entityInfo, java.lang.Class<C> entityClass)
public java.util.Collection<T> getAll()
getAll in interface ObjectCursor<T>Collection containing all elements contained in this ObjectCursor. If the
ObjectCursor is empty an empty Collection is returned.public T getCurrent()
getCurrent in interface ObjectCursor<T>ObjectCursor.
Cursor is before the first element, the position is changed to the first position, if the
Cursor is after the last element, the position is changed to the last elements positionpublic T getFirst()
getFirst in interface ObjectCursor<T>ObjectCursor.
Cursor is moved to the first position.public T getLast()
getLast in interface ObjectCursor<T>ObjectCursor.
Cursor is moved to the last position.public T getNext()
ObjectCursorObjectCursor.
Cursor is moved to the next position.getNext in interface ObjectCursor<T>ObjectCursor.hasNext()public java.util.Collection<T> getNext(int amount)
getNext in interface ObjectCursor<T>amount - Number of positions to move forwardCollection containing the next amount elements contained in this
ObjectCursor. If the ObjectCursor contains less than amount elements
following the current position a collection with less than amount elements is returned.public T getOne()
getOne in interface ObjectCursor<T>ObjectCursor. It is expected, that the Cursor
contains exactly one element.public T getPrevious()
getPrevious in interface ObjectCursor<T>ObjectCursor.
Cursor is moved to the previous position.ObjectCursor.hasPrevious()public java.util.Collection<T> getPrevious(int amount)
getPrevious in interface ObjectCursor<T>amount - Number of positions to move backwardsCollection containing the previous amount elements contained in this
ObjectCursor. If the ObjectCursor contains less than amount elements
preceding the current position a collection with less than amount elements is returned.public boolean hasNext()
hasNext in interface ObjectCursor<T>true if there is at least one more element after the current position, false
otherwise.ObjectCursor.getNext()public boolean hasPrevious()
hasPrevious in interface ObjectCursor<T>true if there is at least one more element before the current position, false
otherwise.ObjectCursor.getPrevious()public java.util.Iterator<T> iterator()
iterator in interface java.lang.Iterable<T>iterator in interface ObjectCursor<T>Iterator which does not support the Iterator.remove() operation.Iterable.iterator()public int size()
size in interface ObjectCursor<T>ObjectCursor contains.public int getCount()
getCount in interface android.database.Cursorpublic int getPosition()
getPosition in interface android.database.Cursorpublic boolean move(int offset)
move in interface android.database.Cursorpublic boolean moveToPosition(int position)
moveToPosition in interface android.database.Cursorpublic boolean moveToFirst()
moveToFirst in interface android.database.Cursorpublic boolean moveToLast()
moveToLast in interface android.database.Cursorpublic boolean moveToNext()
moveToNext in interface android.database.Cursorpublic boolean moveToPrevious()
moveToPrevious in interface android.database.Cursorpublic boolean isFirst()
isFirst in interface android.database.Cursorpublic boolean isLast()
isLast in interface android.database.Cursorpublic boolean isBeforeFirst()
isBeforeFirst in interface android.database.Cursorpublic boolean isAfterLast()
isAfterLast in interface android.database.Cursorpublic int getColumnIndex(java.lang.String columnName)
getColumnIndex in interface android.database.Cursorpublic int getColumnIndexOrThrow(java.lang.String columnName)
throws java.lang.IllegalArgumentException
getColumnIndexOrThrow in interface android.database.Cursorjava.lang.IllegalArgumentExceptionpublic java.lang.String getColumnName(int columnIndex)
getColumnName in interface android.database.Cursorpublic java.lang.String[] getColumnNames()
getColumnNames in interface android.database.Cursorpublic int getColumnCount()
getColumnCount in interface android.database.Cursorpublic byte[] getBlob(int columnIndex)
getBlob in interface android.database.Cursorpublic java.lang.String getString(int columnIndex)
getString in interface android.database.Cursorpublic void copyStringToBuffer(int columnIndex,
android.database.CharArrayBuffer buffer)
copyStringToBuffer in interface android.database.Cursorpublic short getShort(int columnIndex)
getShort in interface android.database.Cursorpublic int getInt(int columnIndex)
getInt in interface android.database.Cursorpublic long getLong(int columnIndex)
getLong in interface android.database.Cursorpublic float getFloat(int columnIndex)
getFloat in interface android.database.Cursorpublic double getDouble(int columnIndex)
getDouble in interface android.database.Cursorpublic int getType(int columnIndex)
getType in interface android.database.Cursorpublic boolean isNull(int columnIndex)
isNull in interface android.database.Cursorpublic void deactivate()
deactivate in interface android.database.Cursorpublic boolean requery()
requery in interface android.database.Cursorpublic void close()
close in interface android.database.Cursorpublic boolean isClosed()
isClosed in interface android.database.Cursorpublic void registerContentObserver(android.database.ContentObserver observer)
registerContentObserver in interface android.database.Cursorpublic void unregisterContentObserver(android.database.ContentObserver observer)
unregisterContentObserver in interface android.database.Cursorpublic void registerDataSetObserver(android.database.DataSetObserver observer)
registerDataSetObserver in interface android.database.Cursorpublic void unregisterDataSetObserver(android.database.DataSetObserver observer)
unregisterDataSetObserver in interface android.database.Cursorpublic void setNotificationUri(android.content.ContentResolver cr,
android.net.Uri uri)
setNotificationUri in interface android.database.Cursorpublic android.net.Uri getNotificationUri()
public boolean getWantsAllOnMoveCalls()
getWantsAllOnMoveCalls in interface android.database.Cursorpublic android.os.Bundle getExtras()
getExtras in interface android.database.Cursorpublic android.os.Bundle respond(android.os.Bundle extras)
respond in interface android.database.CursorCopyright © 2015 arconsis IT-Solutions GmbH. All Rights Reserved.