public class DBBusinessDAO extends StatementExecutor<Business> implements BusinessDAO
Modifier and Type | Field and Description |
---|---|
static String |
ALIASES_FIELD |
static String |
BUSINESS_FIELD |
static String |
HOSTID_FIELD |
static String |
OTHERS_FIELD |
static String |
ROLES_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 |
---|
DBBusinessDAO(Connection con) |
Modifier and Type | Method and Description |
---|---|
protected String |
getDeleteAllRequest() |
protected String |
getDeleteRequest() |
protected String |
getExistRequest() |
Business |
getFromResultSet(ResultSet set) |
protected String |
getGetAllRequest() |
protected String |
getId(Business e1) |
protected String |
getInsertRequest() |
protected Object[] |
getInsertValues(Business business) |
protected String |
getSelectRequest() |
protected String |
getUpdateRequest() |
protected Object[] |
getUpdateValues(Business business) |
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 BUSINESS_FIELD
public static final String ROLES_FIELD
public static final String ALIASES_FIELD
public static final String OTHERS_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 DBBusinessDAO(Connection con)
protected String getId(Business e1)
getId
in class StatementExecutor<Business>
protected String getSelectRequest()
getSelectRequest
in class StatementExecutor<Business>
protected String getGetAllRequest()
getGetAllRequest
in class StatementExecutor<Business>
protected String getExistRequest()
getExistRequest
in class StatementExecutor<Business>
protected Object[] getInsertValues(Business business)
getInsertValues
in class StatementExecutor<Business>
protected String getInsertRequest()
getInsertRequest
in class StatementExecutor<Business>
protected Object[] getUpdateValues(Business business)
getUpdateValues
in class StatementExecutor<Business>
protected String getUpdateRequest()
getUpdateRequest
in class StatementExecutor<Business>
protected String getDeleteRequest()
getDeleteRequest
in class StatementExecutor<Business>
protected String getDeleteAllRequest()
getDeleteAllRequest
in class StatementExecutor<Business>
public Business getFromResultSet(ResultSet set) throws SQLException
getFromResultSet
in class StatementExecutor<Business>
SQLException
Copyright © 2009–2020 Waarp. All rights reserved.