Modifier and Type | Field and Description |
---|---|
static String |
ARCH_PATH_FIELD |
static String |
DELAY_FIELD |
static String |
EXT_RULE |
static String |
EXT_RULES |
static String |
HOSTID_FIELD |
static String |
HOSTIDS_LIST |
static String |
MODE_FIELD |
static String |
PATH_FIELD |
static String |
RECV_PATH_FIELD |
static String |
RERROR_TASKS_FIELD |
static String |
ROOT_ELEMENT |
static String |
ROOT_LIST |
static String |
RPOST_TASKS_FIELD |
static String |
RPRE_TASKS_FIELD |
static String |
RULENAME_FIELD |
static String |
SEND_PATH_FIELD |
static String |
SERROR_TASKS_FIELD |
static String |
SPOST_TASKS_FIELD |
static String |
SPRE_TASKS_FIELD |
static String |
TASK_NODE |
static String |
TYPE_FIELD |
static String |
WORK_PATH_FIELD |
Constructor and Description |
---|
XMLRuleDAO(String filePath) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
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 lsayer
|
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(Rule rule)
Update the specified object in the persistance layer
|
public static final String ROOT_LIST
public static final String ROOT_ELEMENT
public static final String RULENAME_FIELD
public static final String HOSTIDS_LIST
public static final String MODE_FIELD
public static final String SEND_PATH_FIELD
public static final String RECV_PATH_FIELD
public static final String ARCH_PATH_FIELD
public static final String WORK_PATH_FIELD
public static final String RPRE_TASKS_FIELD
public static final String RPOST_TASKS_FIELD
public static final String RERROR_TASKS_FIELD
public static final String SPRE_TASKS_FIELD
public static final String SPOST_TASKS_FIELD
public static final String SERROR_TASKS_FIELD
public static final String EXT_RULE
public static final String EXT_RULES
public static final String HOSTID_FIELD
public static final String TASK_NODE
public static final String TYPE_FIELD
public static final String PATH_FIELD
public static final String DELAY_FIELD
public XMLRuleDAO(String filePath)
public void close()
close
in interface AbstractDAO<Rule>
public void delete(Rule rule) throws DAOConnectionException
AbstractDAO
delete
in interface AbstractDAO<Rule>
rule
- object to deleteDAOConnectionException
- If a data access error occurspublic void deleteAll() throws DAOConnectionException
AbstractDAO
deleteAll
in interface AbstractDAO<Rule>
DAOConnectionException
- If a data access error occurspublic List<Rule> getAll() throws DAOConnectionException
AbstractDAO
getAll
in interface AbstractDAO<Rule>
DAOConnectionException
- If data access error occurspublic boolean exist(String rulename) throws DAOConnectionException
AbstractDAO
exist
in interface AbstractDAO<Rule>
rulename
- id of the object verifiedDAOConnectionException
- If a data access error occurspublic List<Rule> find(List<Filter> fitlers) throws DAOConnectionException
AbstractDAO
find
in interface AbstractDAO<Rule>
fitlers
- List of filterDAOConnectionException
- If data access error occurspublic void insert(Rule rule) throws DAOConnectionException
AbstractDAO
insert
in interface AbstractDAO<Rule>
rule
- object to insertDAOConnectionException
- If a data access error occurspublic Rule select(String rulename) throws DAOConnectionException, DAONoDataException
AbstractDAO
select
in interface AbstractDAO<Rule>
rulename
- id of the object requestedDAOConnectionException
- If a data access error occursDAONoDataException
- if no data are availablepublic void update(Rule rule) throws DAOConnectionException
AbstractDAO
update
in interface AbstractDAO<Rule>
rule
- object to updateDAOConnectionException
- If a data access error occursCopyright © 2009–2020 Waarp. All rights reserved.