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 FieldType |
FieldType.createFieldType(DatabaseType databaseType,
String tableName,
Field field,
Class<?> parentClass)
Return An instantiated
FieldType or null if the field does not have a DatabaseField annotation. |
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... |
Constructor and Description |
---|
FieldType(DatabaseType databaseType,
String tableName,
Field field,
DatabaseFieldConfig fieldConfig,
Class<?> parentClass)
You should use
FieldType.createFieldType(com.j256.ormlite.db.DatabaseType, java.lang.String, java.lang.reflect.Field, java.lang.Class<?>) to instantiate one of these field if you have a Field . |
Modifier and Type | Method and Description |
---|---|
DatabaseType |
WrappedConnectionSource.getDatabaseType() |
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.
|
void |
WrappedConnectionSource.setDatabaseType(DatabaseType databaseType) |
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 |
---|---|
protected static <T,ID> String |
MappedQueryForFieldEq.buildStatement(DatabaseType databaseType,
TableInfo<T,ID> tableInfo,
FieldType idFieldType) |
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 |
---|---|
void |
DatabaseTableConfig.extractFieldTypes(DatabaseType databaseType)
Extract the field types from the fieldConfigs if they have not already been configured.
|
static <T> String |
DatabaseTableConfig.extractTableName(DatabaseType databaseType,
Class<T> clazz)
Extract and return the table name for a class.
|
static <T> DatabaseTableConfig<T> |
DatabaseTableConfig.fromClass(DatabaseType databaseType,
Class<T> clazz)
Extract the DatabaseTableConfig for a particular class by looking for class and field annotations.
|
static <T> List<String> |
SchemaUtils.getCreateSchemaStatements(DatabaseType databaseType,
String schemaName)
Return an list of SQL statements that need to be run to create a schema.
|
static <T> List<String> |
TableUtils.getCreateTableStatements(DatabaseType databaseType,
Class<T> dataClass)
Deprecated.
|
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,
Class<T> dataClass)
Creates a holder of information about a table/class.
|
TableInfo(DatabaseType databaseType,
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.