public class Adapter extends Object
| Constructor and Description |
|---|
Adapter() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isPrimitive(Class<?> type) |
static boolean |
isTransformable(Class<?> type) |
static SqliteAdapter<?> |
lookup(Class<?> type)
Get transformer for type
|
static Object |
read(android.database.Cursor cursor,
int columnIndex,
Class<?> type) |
static void |
register(Class<?> type,
SqliteAdapter<?> transform)
Register custom transformable for a Java primitive type or a frequently
used Java type.
|
static void |
write(android.content.ContentValues content,
String columnKey,
Object value,
Class<?> type) |
public static Object read(android.database.Cursor cursor, int columnIndex, Class<?> type) throws Exception
Exceptionpublic static void write(android.content.ContentValues content,
String columnKey,
Object value,
Class<?> type)
throws Exception
Exceptionpublic static boolean isTransformable(Class<?> type)
public static boolean isPrimitive(Class<?> type)
public static void register(Class<?> type, SqliteAdapter<?> transform)
type - a Java primitive type or a frequently used Java type.transform - a class implementing @see
org.abubu.elio.binder.transform.Transformable interface.public static SqliteAdapter<?> lookup(Class<?> type)
type - Copyright © 2016. All rights reserved.