public interface CRUDDao<T>
| Modifier and Type | Method and Description |
|---|---|
void |
add(T entity) |
void |
clear() |
void |
delete(Serializable id) |
void |
delete(T entity) |
boolean |
exists(Serializable id) |
T |
get(Serializable id) |
T |
getOrNull(Serializable id) |
List<T> |
list() |
void clear()
throws DaoException
DaoExceptionList<T> list() throws DaoException
DaoExceptionboolean exists(Serializable id) throws DaoException
DaoExceptionT get(Serializable id) throws EntityNotFoundException, DaoException
EntityNotFoundExceptionDaoExceptionT getOrNull(Serializable id) throws DaoException
DaoExceptionvoid add(T entity) throws EntityAlreadyExistsException, DaoException
void delete(T entity) throws DaoException
DaoExceptionvoid delete(Serializable id) throws EntityNotFoundException, DaoException
EntityNotFoundExceptionDaoException