Module is.codion.framework.model
Package is.codion.framework.model
Interface EntityEditor.PersistTasks
- Enclosing interface:
EntityEditor
public static interface EntityEditor.PersistTasks
Provides builders for async persist tasks.
-
Method Summary
Modifier and TypeMethodDescriptiondelete()delete(Collection<Entity> entities) insert()insert(Collection<Entity> entities) update()update(Collection<Entity> entities)
-
Method Details
-
insert
- Returns:
- an async task for inserting the active entity
- Throws:
EntityValidationException- in case of validation failure
-
insert
- Parameters:
entity- the entity- Returns:
- an async task for inserting the given entity
- Throws:
EntityValidationException- in case of validation failure
-
insert
EntityEditor.PersistTask<Collection<Entity>> insert(Collection<Entity> entities) throws EntityValidationException - Parameters:
entities- the entities- Returns:
- an async task for inserting the given entities
- Throws:
EntityValidationException- in case of validation failure
-
update
- Returns:
- an async task for updating the active entity
- Throws:
EntityValidationException- in case of validation failure
-
update
- Parameters:
entity- the entity- Returns:
- an async task for updating the given entity
- Throws:
IllegalStateException- in case the entity is not modifiedEntityValidationException- in case of validation failure
-
update
EntityEditor.PersistTask<Collection<Entity>> update(Collection<Entity> entities) throws EntityValidationException - Parameters:
entities- the entities- Returns:
- an async task for updating the given entities
- Throws:
IllegalStateException- in case any entity is not modifiedEntityValidationException- in case of validation failure
-
delete
EntityEditor.PersistTask<Entity> delete()- Returns:
- an async task for deleting the active entity
-
delete
- Parameters:
entity- the entity- Returns:
- an async task for deleting the given entity
-
delete
- Parameters:
entities- the entities- Returns:
- an async task for deleting the given entities
-