Modifier and Type | Field and Description |
---|---|
static String |
ADDRESS_FIELD |
static String |
ADMINROLE_FIELD |
static String |
HOSTID_FIELD |
static String |
HOSTKEY_FIELD |
static String |
IS_ACTIVE_FIELD |
static String |
IS_CLIENT_FIELD |
static String |
IS_PROXIFIED_FIELD |
static String |
IS_SSL_FIELD |
static String |
PORT_FIELD |
Constructor and Description |
---|
XMLHostDAO(String filePath) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
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 lsayer
|
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
|
public static final String HOSTID_FIELD
public static final String ADDRESS_FIELD
public static final String PORT_FIELD
public static final String IS_SSL_FIELD
public static final String IS_CLIENT_FIELD
public static final String IS_ACTIVE_FIELD
public static final String IS_PROXIFIED_FIELD
public static final String HOSTKEY_FIELD
public static final String ADMINROLE_FIELD
public XMLHostDAO(String filePath)
public void close()
close
in interface AbstractDAO<Host>
public void delete(Host host) throws DAOConnectionException
AbstractDAO
delete
in interface AbstractDAO<Host>
host
- object to deleteDAOConnectionException
- If a data access error occurspublic void deleteAll() throws DAOConnectionException
AbstractDAO
deleteAll
in interface AbstractDAO<Host>
DAOConnectionException
- If a data access error occurspublic List<Host> getAll() throws DAOConnectionException
AbstractDAO
getAll
in interface AbstractDAO<Host>
DAOConnectionException
- If data access error occurspublic boolean exist(String hostid) throws DAOConnectionException
AbstractDAO
exist
in interface AbstractDAO<Host>
hostid
- id of the object verifiedDAOConnectionException
- If a data access error occurspublic List<Host> find(List<Filter> fitlers) throws DAOConnectionException
AbstractDAO
find
in interface AbstractDAO<Host>
fitlers
- List of filterDAOConnectionException
- If data access error occurspublic void insert(Host host) throws DAOConnectionException
AbstractDAO
insert
in interface AbstractDAO<Host>
host
- object to insertDAOConnectionException
- If a data access error occurspublic Host select(String hostid) throws DAOConnectionException, DAONoDataException
AbstractDAO
select
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) throws DAOConnectionException
AbstractDAO
update
in interface AbstractDAO<Host>
host
- object to updateDAOConnectionException
- If a data access error occursCopyright © 2009–2020 Waarp. All rights reserved.