@Retention(value=RUNTIME)
@Target(value={FIELD,ANNOTATION_TYPE})
public @interface UpdateCascade
Cascade
annotation to define a cascade update operation.Modifier and Type | Optional Element and Description |
---|---|
java.lang.Class<? extends UpdateOperation> |
operation
Specifies operation to perform as a update cascade.
|
boolean |
post
Specifies when the cascade is to occur.
|
boolean |
setForeignKeyReference
Indicates that foreign key reference should be set on target (child) rows during cascade.
|
boolean |
setForeignKeyValues
Indicates that foreign key values should be set on target (child) rows during cascade.
|
public abstract java.lang.Class<? extends UpdateOperation> operation
UpdateOperation
. Use subclass of UpdateOperation
to
customize the update cascade.public abstract boolean post
public abstract boolean setForeignKeyValues
Cascade.foreignKeyValueFields()
,
OneToManyCascade.foreignKeyValueFields()
, or OneToOneCascade.foreignKeyValueFields()
.
Foreign key values are set prior to cascade for insert, update, delete, and save cascades. They are set after select cascades.
public abstract boolean setForeignKeyReference
Cascade.foreignKeyReferenceField()
,
OneToManyCascade.foreignKeyReferenceField()
, or OneToOneCascade.foreignKeyReferenceField()
.
Foreign key reference is set prior to cascade for insert, update, delete, and save cascades. It is set after select cascades.