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_COUNT_ALL |
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, PARAMETER, PARAMETER_COMMA, SQL_COUNT_ALL_PREFIX, WHERE
Constructor and Description |
---|
DBHostDAO(Connection con) |
Modifier and Type | Method and Description |
---|---|
protected SynchronizedLruCache<String,Host> |
getCache() |
protected String |
getCountRequest() |
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 |
getTable() |
protected String |
getUpdateRequest() |
protected Object[] |
getUpdateValues(Host host) |
protected boolean |
isCachedEnable() |
protected boolean |
isDbTransfer() |
addToCache, clearCache, close, closeResultSet, closeStatement, count, delete, delete, deleteAll, executeAction, executeQuery, executeUpdate, exist, find, find, find, find, find, getAll, getConnection, getFromCache, insert, isInCache, prepareCountQuery, prepareDeleteQuery, prepareFindParams, prepareFindQuery, removeFromCache, select, setParameters, update, 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_COUNT_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)
protected final boolean isCachedEnable()
isCachedEnable
in class StatementExecutor<Host>
protected final SynchronizedLruCache<String,Host> getCache()
getCache
in class StatementExecutor<Host>
protected final String getId(Host e1)
getId
in class StatementExecutor<Host>
protected final String getTable()
getTable
in class StatementExecutor<Host>
protected final String getSelectRequest()
getSelectRequest
in class StatementExecutor<Host>
protected final String getGetAllRequest()
getGetAllRequest
in class StatementExecutor<Host>
protected final String getCountRequest()
getCountRequest
in class StatementExecutor<Host>
protected final String getExistRequest()
getExistRequest
in class StatementExecutor<Host>
protected final Object[] getInsertValues(Host host) throws WaarpDatabaseSqlException
getInsertValues
in class StatementExecutor<Host>
WaarpDatabaseSqlException
protected final String getInsertRequest()
getInsertRequest
in class StatementExecutor<Host>
protected final Object[] getUpdateValues(Host host) throws WaarpDatabaseSqlException
getUpdateValues
in class StatementExecutor<Host>
WaarpDatabaseSqlException
protected final String getUpdateRequest()
getUpdateRequest
in class StatementExecutor<Host>
protected final String getDeleteRequest()
getDeleteRequest
in class StatementExecutor<Host>
protected final String getDeleteAllRequest()
getDeleteAllRequest
in class StatementExecutor<Host>
public final Host getFromResultSet(ResultSet set) throws SQLException
getFromResultSet
in class StatementExecutor<Host>
SQLException
protected final boolean isDbTransfer()
isDbTransfer
in class StatementExecutor<Host>
Copyright © 2009–2022 Waarp. All rights reserved.