public class OperationDatabase extends Database
Database for one transaction within an ActiveOperation. Creates OperationTable
for Database.getTable(Class) for all tables in operation.
Intended for use by ActiveOperation only.
| Constructor and Description |
|---|
OperationDatabase(ActiveDatabase activeDatabase)
Constructs for an active database.
|
| Modifier and Type | Method and Description |
|---|---|
ActiveDatabase |
getActiveDatabase()
Gets the active database supplied in the constructor.
|
<R> Table<R> |
getTable(java.lang.Class<R> rowClass)
Gets table object for reading/writing row objects of type R from/to
table.
|
addNameTranslatorClass, addTable, close, createOperationTime, getConnection, getDataSource, getDataSourceName, getNameTranslatorClass, getNameTranslatorClasses, getOperationTime, getOperationTimeMap, getSchema, getTable, getTotalOperationTime, getTransaction, getTypeTranslator, getTypeTranslator, init, initTransaction, initTypeTranslatorMap, isReadOnly, isTimings, logTimings, putTypeTranslator, putTypeTranslator, removeNameTranslatorClass, setNameTranslatorClass, setReadOnly, setTimingspublic OperationDatabase(ActiveDatabase activeDatabase) throws java.lang.Exception
activeDatabase - active database determines data sourcejava.sql.SQLException - if errorjava.lang.Exceptionpublic ActiveDatabase getActiveDatabase()
public <R> Table<R> getTable(java.lang.Class<R> rowClass) throws SormulaException
This method is optional. A table object may also be created with Table constructor.
Cascade operations for Table
getTable in class DatabaseR - row class typerowClass - annotations on this class determine mapping from row objects to/from databaseSormulaException - if error