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