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 |
---|---|
ActiveDatabase |
ActiveTransaction.getActiveDatabase()
Gets the active database associated with this transaction.
|
ActiveDatabase |
ActiveTable.getActiveDatabase()
Gets the active database.
|
ActiveDatabase |
ActiveRecord.getActiveDatabase()
Gets database set by
ActiveRecord.attach(ActiveDatabase) . |
static ActiveDatabase |
ActiveDatabase.getDefault()
Gets the active database to use when none is specified.
|
Modifier and Type | Method and Description |
---|---|
void |
ActiveRecord.attach(ActiveDatabase activeDatabase)
Associates an active database with this active record.
|
static void |
ActiveDatabase.setDefault(ActiveDatabase activeDatabase)
Sets the default active database.
|
Constructor and Description |
---|
ActiveTable(ActiveDatabase activeDatabase,
java.lang.Class<R> recordClass)
Constructs for a database and record type.
|
ActiveTransaction(ActiveDatabase activeDatabase)
Constructs an
ActiveDatabase . |
Modifier and Type | Method and Description |
---|---|
ActiveDatabase |
OperationDatabase.getActiveDatabase()
Gets the active database supplied in the constructor.
|
Constructor and Description |
---|
OperationDatabase(ActiveDatabase activeDatabase)
Constructs for an active database.
|