Interface FieldGroup.CommitHandler
- All Superinterfaces:
Serializable
- Enclosing class:
FieldGroup
CommitHandlers are used by
FieldGroup.commit() as part of the
commit transactions. CommitHandlers can perform custom operations as part
of the commit and cause the commit to be aborted by throwing a
FieldGroup.CommitException.-
Method Summary
Modifier and TypeMethodDescriptionvoidpostCommit(FieldGroup.CommitEvent commitEvent) Called after changes are committed to the fields and the item is updated.voidpreCommit(FieldGroup.CommitEvent commitEvent) Called before changes are committed to the field and the item is updated.
-
Method Details
-
preCommit
Called before changes are committed to the field and the item is updated.Throw a
FieldGroup.CommitExceptionto abort the commit.- Parameters:
commitEvent- An event containing information regarding the commit- Throws:
FieldGroup.CommitException- if the commit should be aborted
-
postCommit
Called after changes are committed to the fields and the item is updated.Throw a
FieldGroup.CommitExceptionto abort the commit.- Parameters:
commitEvent- An event containing information regarding the commit- Throws:
FieldGroup.CommitException- if the commit should be aborted
-