public interface DatabaseSupport
| Modifier and Type | Interface and Description |
|---|---|
static class |
DatabaseSupport.ConnectionType
Connection type is implementation-specific
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Perform any clean up required on database shutdown
|
com.j256.ormlite.db.DatabaseType |
getDatabaseType()
Returns database type
|
List<OpenHelperCallbacks> |
getOpenHelperCallbacksList() |
List<Object> |
getResultList(com.j256.ormlite.support.ConnectionSource connectionSource,
QueryInfo queryInfo,
int startPosition,
int maxResults)
Returns list result of native query in Android SQLite API format
|
Object |
getSingleResult(com.j256.ormlite.support.ConnectionSource connectionSource,
QueryInfo queryInfo)
Returns single result of native query in Android SQLite API format
|
int |
getVersion(com.j256.ormlite.support.ConnectionSource connectionSource)
Gets the database version.
|
void |
initialize()
Perform any inititialization required prior to creating first database connection
|
void |
registerOpenHelperCallbacks(OpenHelperCallbacks openHelperCallbacks) |
void |
setVersion(int version,
com.j256.ormlite.support.ConnectionSource connectionSource)
Sets the database version.
|
void initialize()
void close()
com.j256.ormlite.db.DatabaseType getDatabaseType()
List<Object> getResultList(com.j256.ormlite.support.ConnectionSource connectionSource, QueryInfo queryInfo, int startPosition, int maxResults)
connectionSource - Open ConnectionSource objectqueryInfo - QueryInfostartPosition - intmaxResults - intObject getSingleResult(com.j256.ormlite.support.ConnectionSource connectionSource, QueryInfo queryInfo)
connectionSource - Open ConnectionSource objectqueryInfo - QueryInfoint getVersion(com.j256.ormlite.support.ConnectionSource connectionSource)
connectionSource - Open ConnectionSource object of database. Can be null for Android SQLite.void setVersion(int version,
com.j256.ormlite.support.ConnectionSource connectionSource)
connectionSource - Open ConnectionSource object of database. Can be null for Android SQLite.version - the new database versionvoid registerOpenHelperCallbacks(OpenHelperCallbacks openHelperCallbacks)
List<OpenHelperCallbacks> getOpenHelperCallbacksList()
This documentation is licensed by Andrew Bowley under the GPLv3 License.