E
- public interface AbstractDAO<E> extends Cloneable
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
delete(E object)
Remove the specified object from the persistance layer
|
void |
deleteAll()
Remove all objects from the persistance layer
|
boolean |
exist(String id)
Verify if an object with the specified id exists in the
persistance layer
|
List<E> |
find(List<Filter> filters)
Retrieve all objects corresponding to the given filters in a List
from the persistance lsayer
|
List<E> |
getAll()
Retrieve all objects in a List from the persistance layer
|
void |
insert(E object)
Insert the specified object in the persistance layer
|
E |
select(String id)
Retrieve the object with the specified id from the persistance
layer
|
void |
update(E object)
Update the specified object in the persistance layer
|
List<E> getAll() throws DAOConnectionException
DAOConnectionException
- If data access error occursList<E> find(List<Filter> filters) throws DAOConnectionException
filters
- List of filterDAOConnectionException
- If data access error occursE select(String id) throws DAOConnectionException, DAONoDataException
id
- id of the object requestedDAOConnectionException
- If a data access error occursDAONoDataException
- if no data are availableboolean exist(String id) throws DAOConnectionException
id
- id of the object verifiedDAOConnectionException
- If a data access error occursvoid insert(E object) throws DAOConnectionException
object
- object to insertDAOConnectionException
- If a data access error occursvoid update(E object) throws DAOConnectionException, DAONoDataException
object
- object to updateDAOConnectionException
- If a data access error occursDAONoDataException
- if no data are availablevoid delete(E object) throws DAOConnectionException, DAONoDataException
object
- object to deleteDAOConnectionException
- If a data access error occursDAONoDataException
- if no data are availablevoid deleteAll() throws DAOConnectionException
DAOConnectionException
- If a data access error occursvoid close()
Copyright © 2009–2020 Waarp. All rights reserved.