Package | Description |
---|---|
org.sormula |
Fundamental classes.
|
org.sormula.active.operation |
Thread-safe and transaction-compliant database operations used by
ActiveTable . |
org.sormula.cache |
Fundamental classes used to implement caching that is specified by
Cached.type() . |
org.sormula.cache.readonly |
Implementation of
ReadOnlyCache . |
org.sormula.cache.readwrite |
Implementation of
ReadWriteCache . |
org.sormula.cache.writable |
The abstract
WritableCache and supporting classes that are
used for implementing a cache that writes rows to the database. |
org.sormula.operation |
Classes that perform SQL operations such as select, update, insert, save, and delete.
|
org.sormula.operation.aggregate |
Classes that perform SQL aggregate operations such as MIN, MAX, AVG, COUNT.
|
org.sormula.operation.cascade |
Classes that perform cascade (one-to-many and one-to-one) operations that are defined
by cascade annotations.
|
org.sormula.selector |
Classes that select subsets of rows.
|
org.sormula.translator |
Classes that provide mapping between columns and Java class members.
|
Modifier and Type | Class and Description |
---|---|
class |
CachedTable<R>
A cached table with default cache settings.
|
Modifier and Type | Method and Description |
---|---|
<R> Table<R> |
Database.getTable(java.lang.Class<R> rowClass)
Gets table object for reading/writing row objects of type R from/to
table.
|
<R> Table<R> |
Database.getTable(java.lang.Class<R> rowClass,
boolean create)
Gets table object for reading/writing row objects of type R from/to
table.
|
Modifier and Type | Method and Description |
---|---|
void |
Database.addTable(Table<?> table)
Adds a table object to map to be used for row objects of type
Object.getClass() . |
Constructor and Description |
---|
CachedTable(Table<R> table) |
Modifier and Type | Class and Description |
---|---|
class |
OperationTable<R extends ActiveRecord>
A
Table for use by one transaction within an ActiveOperation . |
Modifier and Type | Method and Description |
---|---|
protected Table<R> |
ActiveOperation.getTable()
Gets the table used in
ActiveOperation.execute() . |
<R> Table<R> |
OperationDatabase.getTable(java.lang.Class<R> rowClass)
Gets table object for reading/writing row objects of type R from/to
table.
|
Modifier and Type | Method and Description |
---|---|
Table<R> |
AbstractCache.getTable()
Gets table that is cached.
|
Constructor and Description |
---|
AbstractCache(Table<R> table,
Cached cachedAnnotation)
Constructs for a table and annotation.
|
Constructor and Description |
---|
ReadOnlyCache(Table<R> table,
Cached cachedAnnotation)
Constructs for a table and cache annotation.
|
Constructor and Description |
---|
ReadWriteCache(Table<R> table,
Cached cachedAnnotation)
Constructs for a table and cache annotation.
|
Constructor and Description |
---|
WritableCache(Table<R> table,
Cached cachedAnnotation)
Constructs for a table and annotation.
|
Modifier and Type | Method and Description |
---|---|
Table<R> |
SqlOperation.getTable()
Gets the table provided in the constructor.
|
protected Table<?> |
SqlOperation.getTargetTable(java.lang.Class<?> targetClass)
Gets a table object from database associated with this operation.
|
Modifier and Type | Method and Description |
---|---|
protected RowField<R,?> |
SqlOperation.createRowField(Table<R> targetTable,
java.lang.reflect.Field field)
|
Constructor and Description |
---|
ArrayListSelectOperation(Table<R> table)
Constructs for a table to use primary key where condition.
|
ArrayListSelectOperation(Table<R> table,
java.lang.String whereConditionName)
Constructs for a table and where condition.
|
DeleteOperation(Table<R> table)
Constructs standard sql delete for primary key as:
DELETE FROM table WHERE primary key clause |
DeleteOperation(Table<R> table,
java.lang.String whereConditionName)
Constructs for standard sql delete statement as:
DELETE FROM table WHERE ... |
HashMapSelectOperation(Table<R> table)
Constructs for a table to use primary key where condition.
|
HashMapSelectOperation(Table<R> table,
java.lang.String whereConditionName)
Constructs for a table and where condition.
|
InsertOperation(Table<R> table)
Constructs for standard sql insert statement as:
INSERT INTO table (c1, c2, c3, ...) VALUES (?, ?, ?, ...) |
InsertOperation(Table<R> table,
boolean identity)
Constructs for optional identity column.
|
LinkedHashMapSelectOperation(Table<R> table)
Constructs for a table to use primary key where condition.
|
LinkedHashMapSelectOperation(Table<R> table,
java.lang.String whereConditionName)
Constructs for a table and where condition.
|
ListSelectOperation(Table<R> table)
Constructs for a table to use primary key where condition.
|
ListSelectOperation(Table<R> table,
java.lang.String whereConditionName)
Constructs for a table and where condition.
|
MapSelectOperation(Table<R> table)
Constructs for a table to use primary key where condition.
|
MapSelectOperation(Table<R> table,
java.lang.String whereConditionName)
Constructs for a table and where condition.
|
ModifyOperation(Table<R> table)
Constructs for a table.
|
SaveOperation(Table<R> table)
Constructs to update by primary key or insert if update fails.
|
SaveOperation(Table<R> table,
boolean identity)
Constructs to update by primary key or insert if update fails.
|
SaveOperation(Table<R> table,
boolean identity,
java.lang.String whereConditionName)
Constructs to update by where condition or insert if update fails.
|
SaveOperation(Table<R> table,
java.lang.String whereConditionName)
Constructs to update by where condition or insert if update fails.
|
ScalarSelectOperation(Table<R> table)
Constructs standard sql select by primary key as:
SELECT c1, c2, c3, ... |
ScalarSelectOperation(Table<R> table,
java.lang.String whereConditionName)
Constructs standard sql select by primary key as:
SELECT c1, c2, c3, ... |
SelectOperation(Table<R> table)
Constructs standard sql to select by primary key as:
SELECT c1, c2, c3, ...
|
SelectOperation(Table<R> table,
java.lang.String whereConditionName)
Constructs standard sql to by a where condition:
SELECT c1, c2, c3, ...
|
SqlOperation(Table<R> table)
Constructs for a table.
|
UpdateOperation(Table<R> table)
Constructs standard sql update for primary key as:
UPDATE table SET c1=?, c2=?, c3... |
UpdateOperation(Table<R> table,
java.lang.String whereConditionName)
Constructs for standard sql update statement as:
UPDATE table SET c1=?, c2=?, c3... |
Constructor and Description |
---|
SelectAggregateOperation(Table<R> table,
java.lang.String function,
java.lang.String expression)
Constructs for standard sql select statement as:
SELECT f(e), ... |
SelectAvgOperation(Table<R> table,
java.lang.String expression)
Constructs for standard sql select statement as:
SELECT AVG(e), ... |
SelectCountOperation(Table<R> table,
java.lang.String expression)
Constructs for standard sql select statement as:
SELECT COUNT(e), ... |
SelectMaxOperation(Table<R> table,
java.lang.String expression)
Constructs for standard sql select statement as:
SELECT MAX(e), ... |
SelectMinOperation(Table<R> table,
java.lang.String expression)
Constructs for standard sql select statement as:
SELECT MIN(e), ... |
SelectSumOperation(Table<R> table,
java.lang.String expression)
Constructs for standard sql select statement as:
SELECT SUM(e), ... |
Modifier and Type | Method and Description |
---|---|
Table<S> |
CascadeOperation.getSourceTable()
Gets
Table that originates (is source of) cascade. |
Table<T> |
CascadeOperation.getTargetTable() |
Constructor and Description |
---|
CascadeOperation(SqlOperation<S> sourceOperation,
RowField<S,?> targetField,
Table<T> targetTable,
java.lang.Class<?> cascadeSqlOperationClass)
Constructs from source operation and targets of the cascade.
|
DeleteCascadeOperation(DeleteOperation<S> sourceOperation,
RowField<S,?> targetField,
Table<T> targetTable,
DeleteCascade deleteCascadeAnnotation)
Constructor used by
DeleteOperation . |
InsertCascadeOperation(InsertOperation<S> sourceOperation,
RowField<S,?> targetField,
Table<T> targetTable,
InsertCascade insertCascadeAnnotation)
Constructor used by
InsertOperation . |
ModifyCascadeOperation(ModifyOperation<S> sourceOperation,
RowField<S,?> targetField,
Table<T> targetTable,
java.lang.Class<?> cascadeSqlOperationClass)
Constructs from source operation and targets of the cascade.
|
SaveCascadeOperation(SaveOperation<S> sourceOperation,
RowField<S,?> targetField,
Table<T> targetTable,
SaveCascade saveCascadeAnnotation)
Constructor used by
SaveOperation . |
SelectCascadeOperation(ScalarSelectOperation<S> sourceOperation,
RowField<S,?> targetField,
Table<T> targetTable,
SelectCascade selectCascadeAnnotation)
Constructor used by
ScalarSelectOperation . |
UpdateCascadeOperation(UpdateOperation<S> sourceOperation,
RowField<S,?> targetField,
Table<T> targetTable,
UpdateCascade updateCascadeAnnotation)
Constructor used by
UpdateOperation . |
Modifier and Type | Method and Description |
---|---|
Table<R> |
AbstractPaginatedListSelector.getTable() |
Constructor and Description |
---|
AbstractPaginatedListSelector(int pageSize,
Table<R> table)
Constructs for a page size and table.
|
AbstractPaginatedListSelector(int pageSize,
Table<R> table,
boolean scrollSensitive)
Constructs for a page size, table and scroll sensitivity.
|
PaginatedListSelector(int pageSize,
Table<R> table)
Constructs for a page size and table.
|
PaginatedListSelector(int pageSize,
Table<R> table,
boolean scrollSensitive)
Constructs for a page size, table and scroll sensitivity.
|
Constructor and Description |
---|
RowTranslator(Table<R> table,
Row rowAnnotation)
Constructs for a table.
|