S
- row class of table that is source of cascadeT
- row class of table that is target of cascadepublic abstract class ModifyCascadeOperation<S,T> extends CascadeOperation<S,T>
Constructor and Description |
---|
ModifyCascadeOperation(Table<S> sourceTable,
RowField<S,?> targetField,
Table<T> targetTable,
java.lang.Class<?> cascadeOperationClass)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
cascade(S sourceRow)
Performs cascade operation.
|
void |
close()
Cleans up by closing any JDBC resources.
|
void |
prepare()
Prepares operation by initializing JDBC statements.
|
createOperation, getForeignKeyReferenceFieldName, getForeignKeyValueFieldNames, getKeyFieldCount, getNamedParameterMap, getRequiredCascades, getSourceRow, getSourceTable, getTargetField, getTargetForeignKeyValueFieldList, getTargetTable, isPost, prepareForeignKeyReferenceField, prepareForeignKeyValueFields, setForeignKeyFieldNames, setForeignKeyReference, setForeignKeyReference, setForeignKeyReferenceFieldName, setForeignKeyValues, setForeignKeyValues, setNamedParameterMap, setPost, setRequiredCascades
public ModifyCascadeOperation(Table<S> sourceTable, RowField<S,?> targetField, Table<T> targetTable, java.lang.Class<?> cascadeOperationClass)
ModifyCascadeOperation(Table, RowField, Table, Class)
sourceTable
- cascade originates on row from this tabletargetField
- cascade operation uses row(s) from this fieldtargetTable
- cascade operation is performed on this tablecascadeOperationClass
- class of cascade operation
false if cascade is performed before row execute (see ModifyOperation.preExecute(R)
public void cascade(S sourceRow) throws OperationException
cascade
in class CascadeOperation<S,T>
sourceRow
- row in parent table that was source the cascadeOperationException
- if errorpublic void prepare() throws OperationException
CascadeOperation.prepareForeignKeyValueFields()
. Subclasses should override
to perform additional preparation.prepare
in class CascadeOperation<S,T>
OperationException
- if errorpublic void close() throws OperationException
close
in interface java.lang.AutoCloseable
close
in class CascadeOperation<S,T>
OperationException
- if error