|
||||||||||
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.Date
class types.ForeignCollectionField
annotation when an
object is refreshed or queried (i.e.BigInteger
object as a NUMERIC SQL database field.BigInteger
object.BigInteger
object.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.
DataPersisterManager.registerDataPersisters(DataPersister...)
.
Iterable.iterator()
method.
CloseableIterator
.CloseableIterator
but also can be closed itself.Dao.iterator()
method.
Collection.iterator()
method.
Dao.setAutoCommit(DatabaseConnection, boolean)
then
this will commit all changes to the database made from that point up to now on the connection returned by the
Dao.startThreadConnection()
.
Number
object to its primitive object suitable for assigning to an ID field.
QueryBuilder.setCountOf(boolean)
to true and then calls
Dao.countOf(PreparedQuery)
.
QueryBuilder.countOf()
.
Dao.create(Object)
.
DaoManager.createDao(ConnectionSource, Class)
with the returned DAO wrapped in a
RuntimeExceptionDao.
DaoManager.createDao(ConnectionSource, DatabaseTableConfig)
with the returned DAO wrapped
in a RuntimeExceptionDao.
FieldType
or null if the field does not have a DatabaseField
annotation.
Dao.create(Object)
method.
Dao.createOrUpdate(Object)
method.DatabaseField
annotation or by direct Java or
Spring wiring.DatabaseFieldConfig
from a text file/stream.DatabaseTable
annotation.DatabaseTableConfig
from a text file/stream.DataPersister
.Date
Java class as long milliseconds since epoch.Date
object as a String.Date
object.Dao.delete(Object)
.
Dao.delete(PreparedDelete)
.
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 one of the following annotations:
DatabaseField
, ForeignCollectionField
, or javax.persistence...
BaseDatabaseType.addPrimaryKeySql(com.j256.ormlite.field.FieldType[], java.util.List, java.util.List, java.util.List, java.util.List)
method at the end.
DataPersister.generateId()
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[].DatabaseFieldConfig.getColumnDefinition()
DatabaseFieldConfig.getDefaultValue()
.
Dao.assignEmptyForeignCollection(Object, String)
but it returns the empty collection that you assign to
the appropriate field.
FieldType
associated with the columnName.
ForeignCollection
s or a blank array if none.
DatabaseField
annotations, you need to inject the table
configuration.
FieldType.isGeneratedIdSequence()
is false.
Dao.queryRaw(String, RawRowMapper, String...)
.
Dao.queryRaw(String, RawRowMapper, String...)
.
StatementBuilder.appendStatementStart(StringBuilder, List)
was called.
Dao.getWrappedIterable()
but with a prepared query parameter.
DatabaseField.columnName()
or the field name if not set.
Object.hashCode()
.
DatabaseFieldConfig.isAllowGeneratedIdInsert()
DatabaseField.allowGeneratedIdInsert()
setting which allows people to
insert values into generated-id columns.
ArgumentHolder
when querying for values of this type.
DataPersister.isArgumentHolderRequired()
Dao.isAutoCommit(DatabaseConnection)
method instead.
Dao.startThreadConnection()
is in auto-commit mode
otherwise false.
DatabaseConnection.close()
or because of a fatal error.
DataPersister.isComparable()
DataPersister.isEscapedDefaultValue()
DataPersister.isEscapedValue()
DatabaseFieldConfig.isForeignAutoCreate()
DatabaseField.foreignAutoCreate()
enabled.
DatabaseFieldConfig.isForeignCollection()
DatabaseFieldConfig.isReadOnly()
DataPersister.isSelfGeneratedId()
DatabaseField.version()
.
DatabaseFieldConfig.isVersion()
Iterable
interface for the class and allows you to iterate through the objects in the
table using SQL.
Dao.iterator()
but while specifying flags for the results.
Dao.iterator()
but with a prepared query parameter.
Dao.iterator(PreparedQuery)
but while specifying flags for the results.
Dao.iterator(PreparedQuery)
.
QueryBuilder.iterator()
.
Collection.iterator()
but returns a closeable iterator instead and can throw a SQLException.
LazyForeignCollection.iterator()
except it throws.
ForeignCollectionField
annotation when an
object is refreshed or queried (i.e.QueryBuilder.join(QueryBuilder)
but it will use "LEFT JOIN" instead.
QueryBuilder.limit(Long)
Log
interface so we can bypass external logging classes if they are not available.Log
interface and provides {} argument features like slf4j.Logger
instances for ORMLite.String
Java class but with more storage in the database.SoftReference
.
WeakReference
.
StatementBuilder.prepareStatement(Long)
method.DatabaseConnection.queryForOne(java.lang.String, java.lang.Object[], com.j256.ormlite.field.FieldType[], com.j256.ormlite.stmt.GenericRowMapper, com.j256.ormlite.dao.ObjectCache)
if more than one result was found by the query
Iterator.next()
.
Iterator.next()
object in the table or null if none.
DatabaseField.maxForeignAutoRefreshLevel()
is set to this then it will be reset internally to be
DatabaseField.DEFAULT_MAX_FOREIGN_AUTO_REFRESH_LEVEL
if DatabaseField.foreignAutoRefresh()
is set to true.
Where.in(String, Iterable)
except with a NOT IN clause.
Where.in(String, Object...)
except with a NOT IN clause.
Where.in(String, QueryBuilder)
except with a NOT IN clause.
Dao.setObjectCache(ObjectCache)
.Dao.objectsEqual(Object, Object)
.
Dao.objectToString(Object)
.
QueryBuilder.offset(Long)
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.Dao.query(PreparedQuery)
.
PreparedStmt
.
QueryBuilder.query()
.
Dao.queryForFieldValues(Map)
but this uses SelectArg
and SQL ? arguments.
Dao.queryForFirst(PreparedQuery)
.
PreparedStmt
or null if none.
QueryBuilder.queryForFirst()
.
Dao.queryForMatching(Object)
but this uses SelectArg
and SQL ? arguments.
Dao.iterator(PreparedQuery)
except it returns a GenericRawResults 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.
Dao.queryRaw(String, String...)
.
QueryBuilder.queryRaw()
.
Dao.queryRaw(String, String...)
and GenericRawResults.getFirstResult()
.
QueryBuilder.queryRawFirst()
.
GenericRawResults
and returns a T.Dao.queryRaw(String, RawRowMapper, String...)
.WeakReference
or SoftReference
to them.Dao.refresh(Object)
using the internal collection DAO.
Dao.refresh(Object)
.
DaoManager.registerDao(ConnectionSource, Dao)
but this allows you to register it just with its
DatabaseTableConfig
.
ConnectionSource.getReadOnlyConnection()
or
ConnectionSource.getReadWriteConnection()
.
FieldConverter.resultToSqlArg(FieldType, DatabaseResults, int)
and passes it through FieldConverter.sqlArgToJava(FieldType, Object, int)
.
Dao.setAutoCommit(DatabaseConnection, boolean)
then
this will roll-back and flush all changes to the database made from that point up to now on the connection
returned by the Dao.startThreadConnection()
.
Dao
that wraps each Exception and rethrows it as RuntimeException.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.
SelectArg.setValue(Object)
.
Where.raw(String, ArgumentHolder...)
and similar
methods.
Where.raw(String, ArgumentHolder...)
and similar
methods.
Where.raw(String, ArgumentHolder...)
and similar
methods.
QueryBuilder.selectColumns(String...)
except the columns are specified as an iterable -- probably will be a
Collection
.
LazyForeignCollection.iteratorThrow()
except this doesn't set the last iterator which can be closed with the
LazyForeignCollection.closeLastIterator()
.
Serializable
.Dao.setAutoCommit(DatabaseConnection, boolean)
method instead.
Dao.startThreadConnection()
.
Dao
on the object.
DatabaseFieldConfig.setForeignCollectionForeignFieldName(String)
DatabaseFieldConfig.setForeignCollectionMaxEagerLevel(int)
DatabaseFieldConfig.setForeignCollectionOrderColumnName(String)
DatabaseFieldConfig.setForeignCollectionMaxEagerLevel(int)
Dao.setObjectCache(boolean)
except you specify the actual cache instance to use for the DAO.
DatabaseField
annotation in the class.
Where
object on the query.
Date
object.SelectArg
but using a ThreadLocal
internally to improve reentrance so that multiple threads can
use the same compiled statement.Timestamp
object.ConnectionSource
.Dao.update(Object)
using the internal collection DAO.
Dao.update(Object)
.
Dao.update(PreparedUpdate)
.
Dao.queryBuilder()
but allows you to build an UPDATE statement.
Dao.updateId(Object, Object)
.
UUID
object.Where
object that should be used to add SQL where clauses to the statement.
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |