public class DBRuleDAO extends StatementExecutor<Rule> implements RuleDAO
Modifier and Type | Field and Description |
---|---|
static String |
ARCHIVE_PATH_FIELD |
static String |
HOSTIDS_FIELD |
static String |
ID_FIELD |
static String |
MODE_TRANS_FIELD |
static String |
R_ERROR_TASKS_FIELD |
static String |
R_POST_TASKS_FIELD |
static String |
R_PRE_TASKS_FIELD |
static String |
RECV_PATH_FIELD |
static String |
S_ERROR_TASKS_FIELD |
static String |
S_POST_TASKS_FIELD |
static String |
S_PRE_TASKS_FIELD |
static String |
SEND_PATH_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 |
static String |
WORK_PATH_FIELD |
connection
Constructor and Description |
---|
DBRuleDAO(Connection con) |
Modifier and Type | Method and Description |
---|---|
protected String |
getDeleteAllRequest() |
protected String |
getDeleteRequest() |
protected String |
getExistRequest() |
Rule |
getFromResultSet(ResultSet set) |
protected String |
getGetAllRequest() |
protected String |
getId(Rule e1) |
protected String |
getInsertRequest() |
protected Object[] |
getInsertValues(Rule rule) |
protected String |
getSelectRequest() |
protected String |
getUpdateRequest() |
protected Object[] |
getUpdateValues(Rule rule) |
close, closeResultSet, closeStatement, delete, deleteAll, executeAction, executeQuery, executeUpdate, exist, find, getAll, insert, select, setParameters, update
protected static final String TABLE
public static final String ID_FIELD
public static final String HOSTIDS_FIELD
public static final String MODE_TRANS_FIELD
public static final String RECV_PATH_FIELD
public static final String SEND_PATH_FIELD
public static final String ARCHIVE_PATH_FIELD
public static final String WORK_PATH_FIELD
public static final String R_PRE_TASKS_FIELD
public static final String R_POST_TASKS_FIELD
public static final String R_ERROR_TASKS_FIELD
public static final String S_PRE_TASKS_FIELD
public static final String S_POST_TASKS_FIELD
public static final String S_ERROR_TASKS_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 DBRuleDAO(Connection con)
protected String getId(Rule e1)
getId
in class StatementExecutor<Rule>
protected String getSelectRequest()
getSelectRequest
in class StatementExecutor<Rule>
protected String getGetAllRequest()
getGetAllRequest
in class StatementExecutor<Rule>
protected String getExistRequest()
getExistRequest
in class StatementExecutor<Rule>
protected Object[] getInsertValues(Rule rule)
getInsertValues
in class StatementExecutor<Rule>
protected String getInsertRequest()
getInsertRequest
in class StatementExecutor<Rule>
protected Object[] getUpdateValues(Rule rule)
getUpdateValues
in class StatementExecutor<Rule>
protected String getUpdateRequest()
getUpdateRequest
in class StatementExecutor<Rule>
protected String getDeleteRequest()
getDeleteRequest
in class StatementExecutor<Rule>
protected String getDeleteAllRequest()
getDeleteAllRequest
in class StatementExecutor<Rule>
public Rule getFromResultSet(ResultSet set) throws SQLException, DAOConnectionException
getFromResultSet
in class StatementExecutor<Rule>
SQLException
DAOConnectionException
Copyright © 2009–2020 Waarp. All rights reserved.