|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.sormula.Table<R> org.sormula.active.operation.OperationTable<R>
R
- record type of tablepublic class OperationTable<R extends ActiveRecord>
A Table
for use by one transaction within an ActiveOperation
. Uses a custom
RowTranslator
that ensures all records are attached to the active database for
this table.
Intended for use by ActiveOperation
only.
Constructor Summary | |
---|---|
OperationTable(OperationDatabase operationDatabase,
java.lang.Class<R> rowClass)
Constructs for an operation database and class or record. |
Method Summary | |
---|---|
protected RowTranslator<R> |
initRowTranslator()
Creates a RowTranslator for use by this table.
Creates a RowTranslator where ColumnsTranslator.read(ResultSet, int, Object)
and ColumnsTranslator.write(PreparedStatement, int, Object) attach the active
database to the row using ActiveRecord.attach(ActiveDatabase) . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OperationTable(OperationDatabase operationDatabase, java.lang.Class<R> rowClass) throws SormulaException
operationDatabase
- source of tables to use in active record operationrowClass
- type of record
SormulaException
- if errorMethod Detail |
---|
protected RowTranslator<R> initRowTranslator() throws TranslatorException
RowTranslator
for use by this table. Invoked by constructor.
Creates a RowTranslator
where ColumnsTranslator.read(ResultSet, int, Object)
and ColumnsTranslator.write(PreparedStatement, int, Object)
attach the active
database to the row using ActiveRecord.attach(ActiveDatabase)
.
initRowTranslator
in class Table<R extends ActiveRecord>
TranslatorException
- if error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |