- Enclosing interface:
EntityEditor
public static interface EntityEditor.Settings
The editor settings.
-
Method Summary
Modifier and TypeMethodDescriptionDisabling delete causes an exception being thrown when deleting.Disabling insert causes an exception being thrown when inserting.readOnly()Making this editor read-only prevents any changes from being persisted to the database, trying to insert, update or delete will cause an exception being thrown, it does not prevent editing.Disabling update causes an exception being thrown when updating.Disabling updating multiple entities causes an exception being thrown when trying to update multiple entities at a time.
-
Method Details
-
readOnly
State readOnly()Making this editor read-only prevents any changes from being persisted to the database, trying to insert, update or delete will cause an exception being thrown, it does not prevent editing. UseinsertEnabled(),updateEnabled()anddeleteEnabled()to configure the enabled state of those specific actions.- Returns:
- the
Statecontrolling whether this editor is read only
-
insertEnabled
State insertEnabled()Disabling insert causes an exception being thrown when inserting.- Returns:
- the
Statecontrolling whether inserting is enabled via this editor
-
updateEnabled
State updateEnabled()Disabling update causes an exception being thrown when updating.- Returns:
- the
Statecontrolling whether updating is enabled via this editor
-
updateMultipleEnabled
State updateMultipleEnabled()Disabling updating multiple entities causes an exception being thrown when trying to update multiple entities at a time.- Returns:
- the
Statecontrolling whether updating multiple entities is enabled
-
deleteEnabled
State deleteEnabled()Disabling delete causes an exception being thrown when deleting.- Returns:
- the
Statecontrolling whether deleting is enabled via this editor
-
publishPersistenceEvents
State publishPersistenceEvents()- Returns:
- a state controlling whether this editor publishes insert, update and delete events
on the
PersistenceEventsevent bus. - See Also:
-