Module is.codion.framework.model
Package is.codion.framework.model
Interface EntityEditModel.PersistTasks
- Enclosing interface:
EntityEditModel<M extends EntityModel<M,E, T, R>, E extends EntityEditModel<M, E, T, R>, T extends EntityTableModel<M, E, T, R>, R extends EntityEditor<M, E, T, R>>
public static interface EntityEditModel.PersistTasks
Provides
EntityEditor.PersistTasks-
Method Summary
Modifier and TypeMethodDescriptiondelete()Creates a newEntityEditor.PersistTaskinstance for deleting the active entity.Creates a newEntityEditor.PersistTaskinstance for deleting the given entity.delete(Collection<Entity> entities) Creates a newEntityEditor.PersistTaskinstance for deleting the given entities.insert()Creates a newEntityEditor.PersistTaskinstance for inserting the active entity.Creates a newEntityEditor.PersistTaskinstance for inserting the given entity.insert(Collection<Entity> entities) Creates a newEntityEditor.PersistTaskinstance for inserting the given entities.update()Creates a newEntityEditor.PersistTaskinstance for updating the active entity.Creates a newEntityEditor.PersistTaskinstance for updating the given entity.update(Collection<Entity> entities) Creates a newEntityEditor.PersistTaskinstance for updating the given entities.
-
Method Details
-
insert
Creates a newEntityEditor.PersistTaskinstance for inserting the active entity.- Returns:
- a new
EntityEditor.PersistTaskinstance - Throws:
IllegalStateException- if inserting is not enabledEntityValidationException- in case validation fails- See Also:
-
insert
Creates a newEntityEditor.PersistTaskinstance for inserting the given entity.- Parameters:
entity- the entity to insert- Returns:
- a new
EntityEditor.PersistTaskinstance - Throws:
IllegalStateException- if inserting is not enabledEntityValidationException- in case validation fails- See Also:
-
insert
Creates a newEntityEditor.PersistTaskinstance for inserting the given entities.- Parameters:
entities- the entities to insert- Returns:
- a new
EntityEditor.PersistTaskinstance - Throws:
IllegalStateException- if inserting is not enabledEntityValidationException- in case validation fails- See Also:
-
update
Creates a newEntityEditor.PersistTaskinstance for updating the active entity.- Returns:
- a new
EntityEditor.PersistTaskinstance - Throws:
IllegalStateException- in case the active entity is unmodified or if updating is not enabledEntityValidationException- in case validation fails- See Also:
-
update
Creates a newEntityEditor.PersistTaskinstance for updating the given entity.- Parameters:
entity- the entity to update- Returns:
- a new
EntityEditor.PersistTaskinstance - Throws:
IllegalStateException- in case the given entity is unmodified or if updating is not enabledEntityValidationException- in case validation fails- See Also:
-
update
Creates a newEntityEditor.PersistTaskinstance for updating the given entities.- Parameters:
entities- the entities to update- Returns:
- a new
EntityEditor.PersistTaskinstance - Throws:
IllegalStateException- in case any of the given entities are unmodified or if updating is not enabledEntityValidationException- in case validation fails- See Also:
-
delete
EntityEditor.PersistTask delete()Creates a newEntityEditor.PersistTaskinstance for deleting the active entity.- Returns:
- a new
EntityEditor.PersistTaskinstance - Throws:
IllegalStateException- if deleting is not enabled- See Also:
-
delete
Creates a newEntityEditor.PersistTaskinstance for deleting the given entity.- Parameters:
entity- the entity to delete- Returns:
- a new
EntityEditor.PersistTaskinstance - Throws:
IllegalStateException- if deleting is not enabled- See Also:
-
delete
Creates a newEntityEditor.PersistTaskinstance for deleting the given entities.- Parameters:
entities- the entities to delete- Returns:
- a new
EntityEditor.PersistTaskinstance - Throws:
IllegalStateException- if deleting is not enabled- See Also:
-