public class EntityCompartment<T>
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
EntityCompartment(Cupboard cupboard,
java.lang.Class<T> clz) |
| Modifier and Type | Method and Description |
|---|---|
protected <T> EntityConverter<T> |
getConverter(java.lang.Class<T> clz) |
java.lang.String |
getTable()
Get the table name for this entity class
|
android.content.ContentValues |
toContentValues(T entity)
Convert an entity to
ContentValues |
android.content.ContentValues |
toContentValues(T entity,
android.content.ContentValues values)
Convert an entity to
ContentValues |
protected final Cupboard mCupboard
public java.lang.String getTable()
public android.content.ContentValues toContentValues(T entity)
ContentValuesentity - the entitypublic android.content.ContentValues toContentValues(T entity, android.content.ContentValues values)
ContentValuesentity - the entityvalues - the content values, may be nullprotected <T> EntityConverter<T> getConverter(java.lang.Class<T> clz)