
| Modifier and Type | Field and Description |
|---|---|
static String |
EXT_RULE |
static String |
EXT_RULES |
static String |
ROOT_LIST |
| Constructor and Description |
|---|
XMLRuleDAO() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
long |
count(List<Filter> fitlers)
|
void |
delete(Rule rule)
Remove the specified object from the persistance layer
|
void |
deleteAll()
Remove all objects from the persistance layer
|
boolean |
exist(String rulename)
Verify if an object with the specified id exists in the
persistance layer
|
List<Rule> |
find(List<Filter> fitlers)
Retrieve all objects corresponding to the given filters in a List
from the persistance layer
|
List<Rule> |
find(List<Filter> filters,
int limit)
Retrieve all objects corresponding to the given filters in a List
from the persistance layer
|
List<Rule> |
find(List<Filter> filters,
String field,
boolean asc)
Retrieve all objects corresponding to the given filters in a List
from the persistance layer
|
List<Rule> |
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<Rule> |
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<Rule> |
getAll()
Retrieve all objects in a List from the persistance layer
|
void |
insert(Rule rule)
Insert the specified object in the persistance layer
|
Rule |
select(String rulename)
Retrieve the object with the specified id from 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
|
void |
update(Rule rule)
Update the specified object in the persistance layer
|
public static final String ROOT_LIST
public static final String EXT_RULE
public static final String EXT_RULES
public final void close()
close in interface AbstractDAO<Rule>public final void delete(Rule rule)
AbstractDAOdelete in interface AbstractDAO<Rule>rule - object to deletepublic final void deleteAll()
AbstractDAOdeleteAll in interface AbstractDAO<Rule>public final List<Rule> getAll() throws DAOConnectionException
AbstractDAOgetAll in interface AbstractDAO<Rule>DAOConnectionException - If data access error occurspublic final long count(List<Filter> fitlers) throws DAOConnectionException
count in interface AbstractDAO<Rule>fitlers - List of filterDAOConnectionException - If data access error occurspublic final boolean exist(String rulename)
AbstractDAOexist in interface AbstractDAO<Rule>rulename - id of the object verifiedpublic final List<Rule> find(List<Filter> fitlers) throws DAOConnectionException
AbstractDAOfind in interface AbstractDAO<Rule>fitlers - List of filterDAOConnectionException - If data access error occurspublic List<Rule> find(List<Filter> filters, int limit) throws DAOConnectionException
AbstractDAOfind in interface AbstractDAO<Rule>filters - List of filterlimit - max number of items to getDAOConnectionException - If data access error occurspublic List<Rule> find(List<Filter> filters, String field, boolean asc) throws DAOConnectionException
AbstractDAOfind in interface AbstractDAO<Rule>filters - List of filterfield - field to sort onasc - True for ascending, False for descending orderDAOConnectionException - If data access error occurspublic List<Rule> find(List<Filter> filters, String field, boolean asc, int limit) throws DAOConnectionException
AbstractDAOfind in interface AbstractDAO<Rule>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 occurspublic List<Rule> find(List<Filter> filters, String field, boolean asc, int limit, int offset) throws DAOConnectionException
AbstractDAOfind in interface AbstractDAO<Rule>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 occurspublic void update(List<Filter> filters, String toSet) throws DAOConnectionException
AbstractDAOupdate in interface AbstractDAO<Rule>filters - List of filtertoSet - field to update as "field1 = value1, field2 = value2, ..."DAOConnectionException - If data access error occurspublic final void insert(Rule rule)
AbstractDAOinsert in interface AbstractDAO<Rule>rule - object to insertpublic final Rule select(String rulename) throws DAOConnectionException, DAONoDataException
AbstractDAOselect in interface AbstractDAO<Rule>rulename - id of the object requestedDAOConnectionException - If a data access error occursDAONoDataException - if no data are availablepublic final void update(Rule rule)
AbstractDAOupdate in interface AbstractDAO<Rule>rule - object to updateCopyright © 2009–2022 Waarp. All rights reserved.