|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
FieldType
and appends the SQL necessary to create the field to the string builder.
DatabaseType
classes that provide the per-database type functionality to create
tables and build queries.ForeignCollectionField
annotation when an
object is refreshed or queried (i.e.SelectIterator
for the class using a prepared statement.
Callable
class inside of a transaction.
TransactionManager.callInTransaction(Callable)
except as a static method with a connection source.
TransactionManager.callInTransaction(Callable)
except as a static method on a connection.
TransactionManager.callInTransaction(Callable)
except as a static method on a connection.
CloseableIterator
.Log
interface by delegating to the Apache commons logging
classes via reflection.Dao.create(Object)
.
DaoManager.createDao(ConnectionSource, Class)
DaoManager.createDao(ConnectionSource, DatabaseTableConfig)
FieldType
or null if the field does not have a DatabaseField
annotation.
DatabaseField
annotation or by direct Java or
Spring wiring.DatabaseTable
annotation.Dao.delete(Object)
.
Dao.queryBuilder()
but allows you to build an DELETE statement.
FieldType
and adds the necessary statements to the before and after lists necessary so that the
dropping of the table will succeed and will clear other associated sequences or other database artifacts
ForeignCollectionField
annotation when an
object is refreshed or queried (i.e.Object.equals(Object)
.
UpdateBuilder.updateColumnExpression(String, String)
, you may need to escape
column names since they may be reserved words to the database.
UpdateBuilder.escapeColumnName(StringBuilder, String)
but it will return the escaped string.
UpdateBuilder.updateColumnExpression(String, String)
, you may need to escape
values since they may be reserved words to the database.
UpdateBuilder.escapeValue(StringBuilder, String)
but it will return the escaped string.
Dao.extractId(Object)
.
DatabaseField
annotation and the associated Field
in the
class.FieldType.createFieldType(com.j256.ormlite.support.ConnectionSource, java.lang.String, java.lang.reflect.Field, java.lang.Class>)
to instantiate one of these field if you have a Field
.
ForeignCollectionField
annotation when an
object is refreshed or queried (i.e.ForeignCollection
field in a class that corresponds to objects in a foreign
table that match the foreign-id of the current class.Field
that may have either a DatabaseField
annotation
or the javax.persistence annotations.
DataType.generatedId()
BaseDatabaseType.addPrimaryKeySql(com.j256.ormlite.field.FieldType[], java.util.List, java.util.List, java.util.List, java.util.List)
method at the end.
Dao.queryRaw(String, String...)
which returns results as a String[],
Dao.queryRaw(String, RawRowMapper, String...)
which returns results mapped by the caller to an Object, and
Dao.queryRaw(String, DataType[], String...)
which returns each results as a Object[].DatabaseField.width()
.
FieldType
associated with the columnName.
DatabaseField
annotations, you need to inject the table
configuration.
FieldType.isGeneratedIdSequence()
is false.
StatementBuilder.appendStatementStart(StringBuilder, List)
was called.
Object.hashCode()
.
DatabaseConnection.close()
or because of a fatal error.
DataType.isComparable()
DataType.isEscapedDefaultValue()
DataType.isEscapedValue()
DatabaseFieldConfig.isForeignCollection()
DataType.isSelectArgRequired()
DataType.isSelfGeneratedId()
Iterable
interface for the class and allows you to iterate through the objects in the
table using SQL.
Dao.iterator()
but with a prepared query parameter.
Collection.iterator()
but returns a closeable iterator instead.
QueryBuilder.iterator()
.
Collection.iterator()
but returns a closeable iterator instead and can throw a SQLException.
ForeignCollectionField
annotation when an
object is refreshed or queried (i.e.Log
interface so we can bypass external logging classes if they are not available.Log
interface by delegating to Apache Log4j via
reflection.Log
interface and provides {} argument features like slf4j.Logger
instances.DataType.UNKNOWN
if not found.
StatementBuilder.prepareStatement()
method.DatabaseConnection.queryForOne(java.lang.String, java.lang.Object[], com.j256.ormlite.field.FieldType[], com.j256.ormlite.stmt.GenericRowMapper)
if more than one result was found by the query
Dao.objectsEqual(Object, Object)
.
Dao.objectToString(Object)
.
Dao.delete(PreparedDelete)
method.
Dao.query(PreparedQuery)
or
Dao.iterator(PreparedQuery)
methods.
Dao.update(PreparedUpdate)
method.
QueryBuilder.prepare()
.
DeleteBuilder.prepare()
which supports custom DELETE statements.QueryBuilder.prepare()
which supports custom SELECT queries.PreparedQuery
, PreparedUpdate
, and PreparedDelete
interfaces.UpdateBuilder.prepare()
which supports custom UPDATE statements.PreparedStmt
.
QueryBuilder.query()
.
PreparedStmt
.
PreparedStmt
or null if none.
Dao.iterator(PreparedQuery)
except it returns a RawResults object associated with the SQL
select query argument.
Dao.queryRaw(String, String...)
but this iterator returns rows that you can map yourself.
Dao.queryRaw(String, String...)
but instead of an array of String results being returned by
the iterator, this uses the column-types parameter to return an array of Objects instead.
RawResults
and returns a T.Dao.refresh(Object)
.
ConnectionSource.getReadOnlyConnection()
or
ConnectionSource.getReadWriteConnection()
.
BaseConnectionSource.getSavedConnection()
method.
ConnectionSource.getReadOnlyConnection()
and
ConnectionSource.getReadWriteConnection()
unless the ConnectionSource.clearSpecialConnection(DatabaseConnection)
method is
called, all This is used by the transaction mechanism since since all operations within a transaction must
operate on the same connection.
Dao
on the object.
DatabaseField
annotation in the class.
Where
object on the query.
SelectArg
but using a ThreadLocal
internally to improve reentrance so that multiple threads can
use the same compiled statement.ConnectionSource
.Dao.update(Object)
.
Dao.queryBuilder()
but allows you to build an UPDATE statement.
Dao.updateId(Object, Object)
.
Where
object that should be used to add SQL where clauses to the statement.
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |