public class DBHostDAO extends StatementExecutor<Host> implements HostDAO
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 |
protected static String |
SQL_DELETE |
protected static String |
SQL_DELETE_ALL |
protected static String |
SQL_EXIST |
protected static String |
SQL_GET_ALL |
protected static String |
SQL_INSERT |
protected static String |
SQL_SELECT |
protected static String |
SQL_UPDATE |
protected static String |
TABLE |
static String |
UPDATED_INFO_FIELD |
connection
Constructor and Description |
---|
DBHostDAO(Connection con) |
Modifier and Type | Method and Description |
---|---|
protected String |
getDeleteAllRequest() |
protected String |
getDeleteRequest() |
protected String |
getExistRequest() |
Host |
getFromResultSet(ResultSet set) |
protected String |
getGetAllRequest() |
protected String |
getId(Host e1) |
protected String |
getInsertRequest() |
protected Object[] |
getInsertValues(Host host) |
protected String |
getSelectRequest() |
protected String |
getUpdateRequest() |
protected Object[] |
getUpdateValues(Host host) |
close, closeResultSet, closeStatement, delete, deleteAll, executeAction, executeQuery, executeUpdate, exist, find, getAll, insert, select, setParameters, update
protected static final String TABLE
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 static final String UPDATED_INFO_FIELD
protected static final String SQL_DELETE_ALL
protected static final String SQL_DELETE
protected static final String SQL_GET_ALL
protected static final String SQL_EXIST
protected static final String SQL_SELECT
protected static final String SQL_INSERT
protected static final String SQL_UPDATE
public DBHostDAO(Connection con) throws DAOConnectionException
DAOConnectionException
protected String getId(Host e1)
getId
in class StatementExecutor<Host>
protected String getSelectRequest()
getSelectRequest
in class StatementExecutor<Host>
protected String getGetAllRequest()
getGetAllRequest
in class StatementExecutor<Host>
protected String getExistRequest()
getExistRequest
in class StatementExecutor<Host>
protected Object[] getInsertValues(Host host)
getInsertValues
in class StatementExecutor<Host>
protected String getInsertRequest()
getInsertRequest
in class StatementExecutor<Host>
protected Object[] getUpdateValues(Host host)
getUpdateValues
in class StatementExecutor<Host>
protected String getUpdateRequest()
getUpdateRequest
in class StatementExecutor<Host>
protected String getDeleteRequest()
getDeleteRequest
in class StatementExecutor<Host>
protected String getDeleteAllRequest()
getDeleteAllRequest
in class StatementExecutor<Host>
public Host getFromResultSet(ResultSet set) throws SQLException
getFromResultSet
in class StatementExecutor<Host>
SQLException
Copyright © 2009–2020 Waarp. All rights reserved.