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
.Cursor
s that where queried over a ContentResolver
from a
ContentProvider
derived by BaseContentProvider
.T
- Entity class represented within the Cursorcursor
- Android Cursor
ObjectCursor
representation of the given Android Cursor
java.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
ContentResolver
java.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 BaseContentProvider
Copyright © 2015 arconsis IT-Solutions GmbH. All Rights Reserved.