
E - public interface AbstractDAO<E> extends Cloneable
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
long |
count(List<Filter> filters)
Count all objects corresponding to the given filters
from the persistance layer
|
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 layer
|
List<E> |
find(List<Filter> filters,
int limit)
Retrieve all objects corresponding to the given filters in a List
from the persistance layer
|
List<E> |
find(List<Filter> filters,
String field,
boolean asc)
Retrieve all objects corresponding to the given filters in a List
from the persistance layer
|
List<E> |
find(List<Filter> filters,
String field,
boolean asc,
int limit)
Retrieve all objects corresponding to the given filters in a List
from the persistance layer
|
List<E> |
find(List<Filter> filters,
String field,
boolean asc,
int limit,
int offset)
Retrieve all objects corresponding to the given filters in a List
from the persistance layer
|
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
|
void |
update(List<Filter> filters,
String toSet)
Update all objects corresponding to the given filters in a List
from 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 occursList<E> find(List<Filter> filters, int limit) throws DAOConnectionException
filters - List of filterlimit - max number of items to getDAOConnectionException - If data access error occursList<E> find(List<Filter> filters, String field, boolean asc) throws DAOConnectionException
filters - List of filterfield - field to sort onasc - True for ascending, False for descending orderDAOConnectionException - If data access error occursList<E> find(List<Filter> filters, String field, boolean asc, int limit) throws DAOConnectionException
filters - List of filterfield - field to sort onasc - True for ascending, False for descending orderlimit - max number of items to getDAOConnectionException - If data access error occursList<E> find(List<Filter> filters, String field, boolean asc, int limit, int offset) throws DAOConnectionException
filters - List of filterfield - field to sort onasc - True for ascending, False for descending orderlimit - max number of items to getoffset - start for items to getDAOConnectionException - If data access error occursvoid update(List<Filter> filters, String toSet) throws DAOConnectionException
filters - List of filtertoSet - field to update as "field1 = value1, field2 = value2, ..."DAOConnectionException - If data access error occurslong count(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–2022 Waarp. All rights reserved.