public class CursorUtil
extends java.lang.Object
| Constructor and Description |
|---|
CursorUtil() |
| Modifier and Type | Method and Description |
|---|---|
static <T> ObjectCursor<T> |
getObjectCursor(android.database.Cursor cursor)
Convert a standard Android
Cursor into a ObjectCursor. |
public static <T> ObjectCursor<T> getObjectCursor(android.database.Cursor cursor)
Cursor into a ObjectCursor.Cursors that where queried over a ContentResolver from a
ContentProvider derived by BaseContentProvider.T - Entity class represented within the Cursorcursor - Android CursorObjectCursor representation of the given Android Cursorjava.lang.NullPointerException - When the given cursor is nulljava.lang.IllegalArgumentException - When the given cursor is not of the type CursorWrapper, which will be returned by a
ContentResolverjava.lang.IllegalStateException - When the wrapped cursor within the given cursor is not of type ObjectCursor. This indicates
that the given cursor was not queried from a derivation BaseContentProviderCopyright © 2015 arconsis IT-Solutions GmbH. All Rights Reserved.