Package | Description |
---|---|
com.j256.ormlite.dao |
Database Access Object classes.
|
com.j256.ormlite.misc |
Miscellaneous classes.
|
com.j256.ormlite.stmt |
SQL statement generation and processing.
|
com.j256.ormlite.stmt.mapped |
Compiled SQL query statements.
|
com.j256.ormlite.table |
Object table information.
|
Modifier and Type | Class and Description |
---|---|
class |
BaseDaoImpl<T,ID>
Base class for the Database Access Objects that handle the reading and writing a class from the database.
|
class |
RuntimeExceptionDao<T,ID>
Proxy to a
Dao that wraps each Exception and rethrows it as RuntimeException. |
Modifier and Type | Field and Description |
---|---|
protected Dao<T,ID> |
BaseForeignCollection.dao |
Modifier and Type | Method and Description |
---|---|
static <D extends Dao<T,?>,T> |
DaoManager.createDao(ConnectionSource connectionSource,
Class<T> clazz)
Helper method to create a DAO object without having to define a class.
|
static <D extends Dao<T,?>,T> |
DaoManager.createDao(ConnectionSource connectionSource,
DatabaseTableConfig<T> tableConfig)
Helper method to create a DAO object without having to define a class.
|
static <D extends Dao<T,?>,T> |
DaoManager.lookupDao(ConnectionSource connectionSource,
Class<T> clazz)
Helper method to lookup a DAO if it has already been associated with the class.
|
static <D extends Dao<T,?>,T> |
DaoManager.lookupDao(ConnectionSource connectionSource,
DatabaseTableConfig<T> tableConfig)
Helper method to lookup a DAO if it has already been associated with the table-config.
|
Modifier and Type | Method and Description |
---|---|
Dao<T,?> |
BaseForeignCollection.getDao() |
Dao<T,?> |
ForeignCollection.getDao()
Return the DAO object associated with this foreign collection.
|
Modifier and Type | Method and Description |
---|---|
static void |
DaoManager.registerDao(ConnectionSource connectionSource,
Dao<?,?> dao)
Register the DAO with the cache.
|
static void |
DaoManager.registerDaoWithTableConfig(ConnectionSource connectionSource,
Dao<?,?> dao)
Same as
DaoManager.registerDao(ConnectionSource, Dao) but this allows you to register it just with its
DatabaseTableConfig . |
static void |
DaoManager.unregisterDao(ConnectionSource connectionSource,
Dao<?,?> dao)
Remove a DAO from the cache.
|
Constructor and Description |
---|
BaseForeignCollection(Dao<T,ID> dao,
Object parent,
Object parentId,
FieldType foreignFieldType,
String orderColumn,
boolean orderAscending) |
EagerForeignCollection(Dao<T,ID> dao,
Object parent,
Object parentId,
FieldType foreignFieldType,
String orderColumn,
boolean orderAscending)
WARNING: The user should not be calling this constructor.
|
LazyForeignCollection(Dao<T,ID> dao,
Object parent,
Object parentId,
FieldType foreignFieldType,
String orderColumn,
boolean orderAscending)
WARNING: The user should not be calling this constructor.
|
RuntimeExceptionDao(Dao<T,ID> dao) |
StreamableLazyForeignCollection(Dao<T,ID> dao,
Object parent,
Object parentId,
FieldType foreignFieldType,
String orderColumn,
boolean orderAscending) |
Modifier and Type | Field and Description |
---|---|
protected Dao<T,ID> |
BaseDaoEnabled.dao |
Modifier and Type | Method and Description |
---|---|
Dao<T,ID> |
BaseDaoEnabled.getDao()
Return the DAO object associated with this object.
|
Modifier and Type | Method and Description |
---|---|
void |
BaseDaoEnabled.setDao(Dao<T,ID> dao)
Set the
Dao on the object. |
Modifier and Type | Field and Description |
---|---|
protected Dao<T,ID> |
StatementBuilder.dao |
Modifier and Type | Method and Description |
---|---|
<OD> Where<T,ID> |
Where.idEq(Dao<OD,?> dataDao,
OD data)
Add a clause where the ID is from an existing object.
|
Constructor and Description |
---|
DeleteBuilder(DatabaseType databaseType,
TableInfo<T,ID> tableInfo,
Dao<T,ID> dao) |
QueryBuilder(DatabaseType databaseType,
TableInfo<T,ID> tableInfo,
Dao<T,ID> dao) |
RawRowMapperImpl(Dao<T,ID> dao) |
SelectIterator(Class<?> dataClass,
Dao<T,ID> classDao,
GenericRowMapper<T> rowMapper,
ConnectionSource connectionSource,
DatabaseConnection connection,
CompiledStatement compiledStmt,
ObjectCache objectCache)
If the statement parameter is null then this won't log information
|
StatementBuilder(DatabaseType databaseType,
TableInfo<T,ID> tableInfo,
Dao<T,ID> dao,
StatementBuilder.StatementType type) |
StatementExecutor(DatabaseType databaseType,
TableInfo<T,ID> tableInfo,
Dao<T,ID> dao)
Provides statements for various SQL operations.
|
UpdateBuilder(DatabaseType databaseType,
TableInfo<T,ID> tableInfo,
Dao<T,ID> dao) |
Modifier and Type | Field and Description |
---|---|
protected Dao<T,ID> |
BaseMappedStatement.dao |
Modifier and Type | Method and Description |
---|---|
static <T,ID> MappedDelete<T,ID> |
MappedDelete.build(Dao<T,ID> dao,
TableInfo<T,ID> tableInfo) |
static <T,ID> MappedUpdate<T,ID> |
MappedUpdate.build(Dao<T,ID> dao,
TableInfo<T,ID> tableInfo) |
static <T,ID> MappedUpdateId<T,ID> |
MappedUpdateId.build(Dao<T,ID> dao,
TableInfo<T,ID> tableInfo) |
static <T,ID> MappedRefresh<T,ID> |
MappedRefresh.build(Dao<T,ID> dao,
TableInfo<T,ID> tableInfo) |
static <T,ID> MappedCreate<T,ID> |
MappedCreate.build(Dao<T,ID> dao,
TableInfo<T,ID> tableInfo) |
static <T,ID> MappedQueryForFieldEq<T,ID> |
MappedQueryForFieldEq.build(Dao<T,ID> dao,
TableInfo<T,ID> tableInfo,
FieldType idFieldType) |
static <T,ID> int |
MappedDeleteCollection.deleteIds(Dao<T,ID> dao,
TableInfo<T,ID> tableInfo,
DatabaseConnection databaseConnection,
Collection<ID> ids,
ObjectCache objectCache)
Delete all of the objects in the collection.
|
static <T,ID> int |
MappedDeleteCollection.deleteObjects(Dao<T,ID> dao,
TableInfo<T,ID> tableInfo,
DatabaseConnection databaseConnection,
Collection<T> datas,
ObjectCache objectCache)
Delete all of the objects in the collection.
|
Constructor and Description |
---|
BaseMappedQuery(Dao<T,ID> dao,
TableInfo<T,ID> tableInfo,
String statement,
FieldType[] argFieldTypes,
FieldType[] resultsFieldTypes) |
BaseMappedStatement(Dao<T,ID> dao,
TableInfo<T,ID> tableInfo,
String statement,
FieldType[] argFieldTypes) |
MappedPreparedStmt(Dao<T,ID> dao,
TableInfo<T,ID> tableInfo,
String statement,
FieldType[] argFieldTypes,
FieldType[] resultFieldTypes,
ArgumentHolder[] argHolders,
Long limit,
StatementBuilder.StatementType type,
boolean cacheStore) |
MappedQueryForFieldEq(Dao<T,ID> dao,
TableInfo<T,ID> tableInfo,
String statement,
FieldType[] argFieldTypes,
FieldType[] resultsFieldTypes,
String label) |
Modifier and Type | Method and Description |
---|---|
static int |
SchemaUtils.createSchema(Dao<?,?> dao)
Issue the database statements to create the schema associated with a table configuration.
|
static int |
TableUtils.createTable(Dao<?,?> dao)
Issue the database statements to create the table associated with a table configuration.
|
static <T,ID> int |
TableUtils.dropTable(Dao<T,ID> dao,
boolean ignoreErrors)
Issue the database statements to drop the table associated with a dao.
|
This documentation is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.