| Package | Description |
|---|---|
| com.j256.ormlite.dao |
Database Access Object classes.
|
| com.j256.ormlite.db |
Per-database type and SQL information.
|
| com.j256.ormlite.field |
Object field information.
|
| 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.support |
Database support classes.
|
| com.j256.ormlite.table |
Object table information.
|
| Modifier and Type | Field and Description |
|---|---|
protected DatabaseType |
BaseDaoImpl.databaseType |
| Modifier and Type | Class and Description |
|---|---|
class |
BaseDatabaseType
Base class for all of the
DatabaseType classes that provide the per-database type functionality to create
tables and build queries. |
class |
BaseSqliteDatabaseType
Sqlite database type information used to create the tables, etc..
|
| Modifier and Type | Method and Description |
|---|---|
static Method |
DatabaseFieldConfig.findGetMethod(Field field,
DatabaseType databaseType,
boolean throwExceptions)
Find and return the appropriate getter method for field.
|
static Method |
DatabaseFieldConfig.findSetMethod(Field field,
DatabaseType databaseType,
boolean throwExceptions)
Find and return the appropriate setter method for field.
|
static DatabaseFieldConfig |
DatabaseFieldConfig.fromDatabaseField(DatabaseType databaseType,
String tableName,
Field field,
DatabaseField databaseField) |
static DatabaseFieldConfig |
DatabaseFieldConfig.fromField(DatabaseType databaseType,
String tableName,
Field field)
Create and return a config converted from a
Field that may have one of the following annotations:
DatabaseField, ForeignCollectionField, or javax.persistence... |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
TransactionManager.callInTransaction(DatabaseConnection connection,
boolean saved,
DatabaseType databaseType,
Callable<T> callable)
Same as
TransactionManager.callInTransaction(Callable) except as a static method on a connection with database-type. |
static <T> T |
TransactionManager.callInTransaction(DatabaseConnection connection,
DatabaseType databaseType,
Callable<T> callable)
Same as
TransactionManager.callInTransaction(Callable) except as a static method on a connection with database-type. |
DatabaseFieldConfig |
JavaxPersistenceImpl.createFieldConfig(DatabaseType databaseType,
Field field) |
DatabaseFieldConfig |
JavaxPersistenceConfigurer.createFieldConfig(DatabaseType databaseType,
Field field)
Create and return a field config from the javax.persistence annotations associated with the field argument or
null if no annotations present.
|
| Modifier and Type | Field and Description |
|---|---|
protected DatabaseType |
StatementBuilder.databaseType |
| 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) |
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) |
Where(TableInfo<T,ID> tableInfo,
StatementBuilder<T,ID> statementBuilder,
DatabaseType databaseType) |
| Modifier and Type | Method and Description |
|---|---|
static <T,ID> MappedDelete<T,ID> |
MappedDelete.build(DatabaseType databaseType,
TableInfo<T,ID> tableInfo) |
static <T,ID> MappedUpdate<T,ID> |
MappedUpdate.build(DatabaseType databaseType,
TableInfo<T,ID> tableInfo) |
static <T,ID> MappedUpdateId<T,ID> |
MappedUpdateId.build(DatabaseType databaseType,
TableInfo<T,ID> tableInfo) |
static <T,ID> MappedRefresh<T,ID> |
MappedRefresh.build(DatabaseType databaseType,
TableInfo<T,ID> tableInfo) |
static <T,ID> MappedCreate<T,ID> |
MappedCreate.build(DatabaseType databaseType,
TableInfo<T,ID> tableInfo) |
static <T,ID> MappedQueryForFieldEq<T,ID> |
MappedQueryForFieldEq.build(DatabaseType databaseType,
TableInfo<T,ID> tableInfo,
FieldType idFieldType) |
protected static <T,ID> String |
MappedQueryForFieldEq.buildStatement(DatabaseType databaseType,
TableInfo<T,ID> tableInfo,
FieldType idFieldType) |
static <T,ID> int |
MappedDeleteCollection.deleteIds(DatabaseType databaseType,
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(DatabaseType databaseType,
TableInfo<T,ID> tableInfo,
DatabaseConnection databaseConnection,
Collection<T> datas,
ObjectCache objectCache)
Delete all of the objects in the collection.
|
int |
MappedCreate.insert(DatabaseType databaseType,
DatabaseConnection databaseConnection,
T data,
ObjectCache objectCache)
Create an object in the database.
|
| Modifier and Type | Method and Description |
|---|---|
DatabaseType |
ConnectionSource.getDatabaseType()
Return the DatabaseTypre associated with this connection.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> String |
DatabaseTableConfig.extractTableName(DatabaseType databaseType,
Class<T> clazz)
Extract and return the table name for a class.
|
FieldType[] |
DatabaseTableConfig.getFieldTypes(DatabaseType databaseType)
Return the field types associated with this configuration.
|
void |
DatabaseTableConfig.setDatabaseType(DatabaseType databaseType)
Optional setting.
|
| Constructor and Description |
|---|
DatabaseTableConfig(DatabaseType databaseType,
Class<T> dataClass,
List<DatabaseFieldConfig> fieldConfigs)
Setup a table config associated with the dataClass and field configurations.
|
TableInfo(DatabaseType databaseType,
BaseDaoImpl<T,ID> baseDaoImpl,
DatabaseTableConfig<T> tableConfig)
Creates a holder of information about a table/class.
|
This documentation is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.