E - Entity, for which this service will be usedpublic class ConnectedEntityService<E> extends EntityService<E> implements java.io.Closeable
EntityService with an open connection to the SQLiteDatabase. Make sure to
close the connection with close() when you finished using the service.dbCreator| Constructor and Description |
|---|
ConnectedEntityService(android.content.Context context,
java.lang.Class<E> entityClass)
Creates a
ConnectedEntityService for the given Entity |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Will be removed with Version 0.2.0
Use ConnectedEntityService if you need only one db connection. |
protected void |
closeDB(android.database.sqlite.SQLiteDatabase database) |
protected android.database.sqlite.SQLiteDatabase |
openDB() |
delete, delete, find, get, get, resolveAssociations, resolveAssociations, save, save, save, savepublic ConnectedEntityService(android.content.Context context,
java.lang.Class<E> entityClass)
ConnectedEntityService for the given Entitycontext - Android contextentityClass - Class of the Entity, the service should be used forjava.lang.IllegalArgumentException - When the given EntityService.entityClass is no Entityprotected void closeDB(android.database.sqlite.SQLiteDatabase database)
closeDB in class EntityService<E>protected android.database.sqlite.SQLiteDatabase openDB()
openDB in class EntityService<E>public void close()
EntityServiceConnectedEntityService if you need only one db connection.close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class EntityService<E>Copyright © 2015 arconsis IT-Solutions GmbH. All Rights Reserved.