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
DaoException
List<T> list() throws DaoException
DaoException
boolean exists(Serializable id) throws DaoException
DaoException
T get(Serializable id) throws EntityNotFoundException, DaoException
EntityNotFoundException
DaoException
T getOrNull(Serializable id) throws DaoException
DaoException
void add(T entity) throws EntityAlreadyExistsException, DaoException
void delete(T entity) throws DaoException
DaoException
void delete(Serializable id) throws EntityNotFoundException, DaoException
EntityNotFoundException
DaoException