Interface EntityEditor.Settings
- Enclosing interface:
EntityEditor<R extends EntityEditor<R>>
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.An entity inserted or updated is published without the values this editorpopulateswhich are not selected by default.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
-
updateEnabled
-
updateMultipleEnabled
-
deleteEnabled
-
publishPersistenceEvents
State publishPersistenceEvents()An entity inserted or updated is published without the values this editorpopulateswhich are not selected by default.- Returns:
- a state controlling whether this editor publishes insert, update and delete events
on the
PersistenceEventsevent bus. - See Also:
-