Package | Description |
---|---|
org.sormula.active |
An implementation of the
active record pattern built on top of sormula.
|
org.sormula.active.operation |
Thread-safe and transaction-compliant database operations used by
ActiveTable . |
Modifier and Type | Method and Description |
---|---|
protected ActiveTable<R> |
ActiveRecord.createTable()
Creates an
ActiveTable for record class returned by ActiveRecord.getRecordClass() . |
static <R extends ActiveRecord<? super R>> |
ActiveRecord.table(java.lang.Class<R> recordClass)
Creates a table that can be used to for records of type recordClass for the default
active database.
|
Constructor and Description |
---|
ActiveLazySelector(ActiveTable<R> sourceActiveTable,
R sourceActiveRecord,
SelectCascadeAnnotationReader scar)
Constructs for the source and annotation reader.
|
ActiveOperation(ActiveTable<R> activeTable,
java.lang.String exceptionMessage)
Constructs for a table and fail message.
|
Delete(ActiveTable<R> activeTable,
R record) |
DeleteAll(ActiveTable<R> activeTable) |
DeleteAll(ActiveTable<R> activeTable,
java.util.Collection<R> records) |
DeleteAllBatch(ActiveTable<R> activeTable,
java.util.Collection<R> records) |
DeleteBatch(ActiveTable<R> activeTable,
R record) |
Insert(ActiveTable<R> activeTable,
R record) |
InsertAll(ActiveTable<R> activeTable,
java.util.Collection<R> records) |
InsertAllBatch(ActiveTable<R> activeTable,
java.util.Collection<R> records) |
InsertBatch(ActiveTable<R> activeTable,
R record) |
Save(ActiveTable<R> activeTable,
R record) |
SaveAll(ActiveTable<R> activeTable,
java.util.Collection<R> records) |
SaveAllBatch(ActiveTable<R> activeTable,
java.util.Collection<R> records) |
SaveBatch(ActiveTable<R> activeTable,
R record) |
Select(ActiveTable<R> activeTable,
java.lang.Object... primaryKeys) |
SelectAll(ActiveTable<R> activeTable) |
SelectAllCustom(ActiveTable<R> activeTable,
java.lang.String customSql,
java.lang.Object... parameters) |
SelectAllWhere(ActiveTable<R> activeTable,
java.lang.String whereConditionName,
java.lang.Object... parameters) |
SelectAllWhereOrdered(ActiveTable<R> activeTable,
java.lang.String whereConditionName,
java.lang.String orderByName,
java.lang.Object... parameters) |
SelectAvg(ActiveTable<R> activeTable,
java.lang.String expression) |
SelectAvg(ActiveTable<R> activeTable,
java.lang.String expression,
java.lang.String whereConditionName,
java.lang.Object... parameters) |
SelectCount(ActiveTable<R> activeTable) |
SelectCount(ActiveTable<R> activeTable,
java.lang.String expression) |
SelectCount(ActiveTable<R> activeTable,
java.lang.String expression,
java.lang.String whereConditionName,
java.lang.Object... parameters) |
SelectCustom(ActiveTable<R> activeTable,
java.lang.String customSql,
java.lang.Object... parameters) |
SelectMax(ActiveTable<R> activeTable,
java.lang.String expression) |
SelectMax(ActiveTable<R> activeTable,
java.lang.String expression,
java.lang.String whereConditionName,
java.lang.Object... parameters) |
SelectMin(ActiveTable<R> activeTable,
java.lang.String expression) |
SelectMin(ActiveTable<R> activeTable,
java.lang.String expression,
java.lang.String whereConditionName,
java.lang.Object... parameters) |
SelectSum(ActiveTable<R> activeTable,
java.lang.String expression) |
SelectSum(ActiveTable<R> activeTable,
java.lang.String expression,
java.lang.String whereConditionName,
java.lang.Object... parameters) |
SelectWhere(ActiveTable<R> activeTable,
java.lang.String whereConditionName,
java.lang.Object... parameters) |
Update(ActiveTable<R> activeTable,
R record) |
UpdateAll(ActiveTable<R> activeTable,
java.util.Collection<R> records) |
UpdateAllBatch(ActiveTable<R> activeTable,
java.util.Collection<R> records) |
UpdateBatch(ActiveTable<R> activeTable,
R record) |