
| Modifier and Type | Field and Description |
|---|---|
static String |
DELAY_COMMAND_LIMIT_FILED |
static String |
DELAY_LIMIT_FILED |
static String |
DELAY_RETRY_LIMIT_FILED |
static String |
GOLBAL_LIMIT_FILED |
static String |
HOSTID_FIELD |
static String |
RUN_LIMIT_FILED |
static String |
SESSION_LIMIT_FILED |
| Constructor and Description |
|---|
XMLLimitDAO(String filePath) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
delete(Limit limit)
Remove the specified object from the persistance layer
|
void |
deleteAll()
Remove all objects from the persistance layer
|
boolean |
exist(String hostid)
Verify if an object with the specified id exists in the
persistance layer
|
List<Limit> |
find(List<Filter> fitlers)
Retrieve all objects corresponding to the given filters in a List
from the persistance lsayer
|
List<Limit> |
getAll()
Retrieve all objects in a List from the persistance layer
|
void |
insert(Limit limit)
Insert the specified object in the persistance layer
|
Limit |
select(String hostid)
Retrieve the object with the specified id from the persistance
layer
|
void |
update(Limit limit)
Update the specified object in the persistance layer
|
public static final String HOSTID_FIELD
public static final String SESSION_LIMIT_FILED
public static final String GOLBAL_LIMIT_FILED
public static final String DELAY_LIMIT_FILED
public static final String RUN_LIMIT_FILED
public static final String DELAY_COMMAND_LIMIT_FILED
public static final String DELAY_RETRY_LIMIT_FILED
public XMLLimitDAO(String filePath) throws DAOConnectionException
DAOConnectionExceptionpublic void close()
close in interface AbstractDAO<Limit>public void delete(Limit limit) throws DAOConnectionException
AbstractDAOdelete in interface AbstractDAO<Limit>limit - object to deleteDAOConnectionException - If a data access error occurspublic void deleteAll()
throws DAOConnectionException
AbstractDAOdeleteAll in interface AbstractDAO<Limit>DAOConnectionException - If a data access error occurspublic List<Limit> getAll() throws DAOConnectionException
AbstractDAOgetAll in interface AbstractDAO<Limit>DAOConnectionException - If data access error occurspublic boolean exist(String hostid) throws DAOConnectionException
AbstractDAOexist in interface AbstractDAO<Limit>hostid - id of the object verifiedDAOConnectionException - If a data access error occurspublic List<Limit> find(List<Filter> fitlers) throws DAOConnectionException
AbstractDAOfind in interface AbstractDAO<Limit>fitlers - List of filterDAOConnectionException - If data access error occurspublic void insert(Limit limit) throws DAOConnectionException
AbstractDAOinsert in interface AbstractDAO<Limit>limit - object to insertDAOConnectionException - If a data access error occurspublic Limit select(String hostid) throws DAOConnectionException, DAONoDataException
AbstractDAOselect in interface AbstractDAO<Limit>hostid - id of the object requestedDAOConnectionException - If a data access error occursDAONoDataException - if no data are availablepublic void update(Limit limit) throws DAOConnectionException
AbstractDAOupdate in interface AbstractDAO<Limit>limit - object to updateDAOConnectionException - If a data access error occursCopyright © 2009–2020 Waarp. All rights reserved.