public interface EntityManager
| Modifier and Type | Method and Description |
|---|---|
<ENTITY> void |
persist(ENTITY entity)
Persists the given Entity and returns a new
Optional<Entity> that
was the result of the persistence, or Optional.empty() if the method
failed. |
<ENTITY> void |
remove(ENTITY entity)
Updates the given Entity and returns a new
Optional<Entity> that
was the result of the update, or Optional.empty() if the method failed. |
<ENTITY> void |
update(ENTITY entity)
Updates the given Entity and returns a new
Optional<Entity> that
was the result of the update, or Optional.empty() if the method failed. |
<ENTITY> void persist(ENTITY entity)
throws SpeedmentException
Optional<Entity> that
was the result of the persistence, or Optional.empty() if the method
failed.ENTITY - the type of the Entityentity - to persistSpeedmentException<ENTITY> void update(ENTITY entity)
throws SpeedmentException
Optional<Entity> that
was the result of the update, or Optional.empty() if the method failed.ENTITY - the type of the Entityentity - to updateSpeedmentException<ENTITY> void remove(ENTITY entity)
throws SpeedmentException
Optional<Entity> that
was the result of the update, or Optional.empty() if the method failed.ENTITY - the type of the Entityentity - to removeSpeedmentExceptionCopyright © 2019 Speedment, Inc.. All rights reserved.