R
- record typepublic class ActiveLazySelector<R extends ActiveRecord<? super R>> extends ActiveOperation<R,java.lang.Void>
ActiveRecord.checkLazySelects(String)
.Constructor and Description |
---|
ActiveLazySelector(ActiveTable<R> sourceActiveTable,
R sourceActiveRecord,
SelectCascadeAnnotationReader scar)
Constructs for the source and annotation reader.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Void |
operate()
Invoked by
ActiveOperation.execute() to perform the operation. |
attach, attach, close, execute, getOperationDatabase, getTable, isLocalTransaction
public ActiveLazySelector(ActiveTable<R> sourceActiveTable, R sourceActiveRecord, SelectCascadeAnnotationReader scar)
sourceActiveTable
- parent table of 1-to-1 or 1-to-n relationship; active database is obtained from this tablesourceActiveRecord
- parent record that gets modified with selected child(ren)scar
- annotation reader for field within parent that has lazy cascade definedpublic java.lang.Void operate() throws java.lang.Exception
ActiveOperation
ActiveOperation.execute()
to perform the operation. Subclasses must implement.operate
in class ActiveOperation<R extends ActiveRecord<? super R>,java.lang.Void>
java.lang.Exception
- if error