D - Deserialized type, i.e. the Java type.S - Serialized type, i.e. the SQLite type.public abstract class TypeAdapter<D,S>
extends java.lang.Object
Type adapters provide a method for which to convert between Java types and SQLite types.
SQLite can only store primitive values in columns. Complex Java data types must, therefore, be converted to a primitive SQLite type. The SQLite types are:
BooleanAdapter,
CalendarAdapter,
SqlDateAdapter,
UtilDateAdapter| Constructor and Description |
|---|
TypeAdapter() |
| Modifier and Type | Method and Description |
|---|---|
abstract D |
deserialize(S value)
Converts the SQLite value to the Java representation of that value.
|
abstract S |
serialize(D value)
Converts the Java value to a value which SQLite can store.
|