S
- row class of table that is source of cascadeT
- row class of table that is target of cascadepublic class SaveCascadeOperation<S,T> extends ModifyCascadeOperation<S,T>
Constructor and Description |
---|
SaveCascadeOperation(SaveOperation<S> sourceOperation,
RowField<S,?> targetField,
Table<T> targetTable,
SaveCascade saveCascadeAnnotation)
Constructor used by
SaveOperation . |
Modifier and Type | Method and Description |
---|---|
protected SqlOperation<?> |
createOperation()
Creates new instance of sql operation from
CascadeOperation.cascadeSqlOperationClass supplied in the
constructor. |
cascade, close, deriveSqlOperationAttributes, isBatch, prepare
getDepth, getForeignKeyReferenceFieldName, getForeignKeyValueFieldNames, getKeyFieldCount, getNamedParameterMap, getRequiredCascades, getSourceOperation, getSourceRow, getSourceTable, getTargetField, getTargetForeignKeyValueFieldList, getTargetTable, isPost, prepareForeignKeyReferenceField, prepareForeignKeyValueFields, setForeignKeyFieldNames, setForeignKeyReference, setForeignKeyReference, setForeignKeyReferenceFieldName, setForeignKeyValues, setForeignKeyValues, setPost
public SaveCascadeOperation(SaveOperation<S> sourceOperation, RowField<S,?> targetField, Table<T> targetTable, SaveCascade saveCascadeAnnotation)
SaveOperation
.sourceOperation
- cascade originates on row from this tabletargetField
- cascade save operation uses row(s) from this fieldtargetTable
- cascade save operation is performed on this tablesaveCascadeAnnotation
- cascade operationprotected SqlOperation<?> createOperation() throws OperationException
CascadeOperation.cascadeSqlOperationClass
supplied in the
constructor.createOperation
in class CascadeOperation<S,T>
SqlOperation
that will be used for cascadeOperationException
- if error