public interface GenericDAO<T,ID>
| Modifier and Type | Method and Description |
|---|---|
T |
getById(ID id) |
T |
newInstance() |
T |
remove(ID id)
Remove the entity with given id if exists.
|
T |
save(T entity)
Persist the entity object into database.
|
T |
update(T entity)
Update the specified entity argument with the most recent state.
|
T update(T entity) throws NoSuchEntityException
If the entity does not exist, it throws NoSuchEntityException
entity - NoSuchEntityExceptionT newInstance()
Copyright © 2003–2020 eXo Platform SAS. All rights reserved.