
public abstract class DBTransferDAO extends StatementExecutor<Transfer> implements TransferDAO
connection, PARAMETER, PARAMETER_COMMA, SQL_COUNT_ALL_PREFIX, WHERE| Modifier | Constructor and Description |
|---|---|
protected |
DBTransferDAO(Connection con) |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(Transfer transfer)
Remove the specified object from the persistance layer
|
boolean |
exist(long id,
String requester,
String requested,
String owner)
Verify if a Transfer object with the specified Special ID exists in the
persistance layer
|
List<Transfer> |
find(List<Filter> filters,
int limit,
int offset)
Retrieve all Transfer objects to the given filters in a List from the
persistance layer
|
protected String |
getCountRequest() |
protected String |
getDeleteAllRequest() |
protected String |
getDeleteRequest() |
protected String |
getExistRequest() |
Transfer |
getFromResultSet(ResultSet set) |
protected String |
getGetAllRequest() |
protected String |
getId(Transfer e1)
|
protected String |
getInsertRequest() |
protected Object[] |
getInsertValues(Transfer transfer) |
protected abstract long |
getNextId() |
protected String |
getSelectRequest() |
protected String |
getTable() |
protected String |
getUpdateRequest() |
protected Object[] |
getUpdateValues(Transfer transfer) |
void |
insert(Transfer transfer)
Insert the specified object in the persistance layer
|
protected boolean |
isCachedEnable() |
protected boolean |
isDbTransfer() |
Transfer |
select(long id,
String requester,
String requested,
String owner)
Retrieve the Transfer object with the specified Special ID from the
persistance layer
|
void |
updateRank(Transfer e1) |
void |
updateRankUpdatedInfoStepStatusStop(Transfer e1) |
addToCache, clearCache, close, closeResultSet, closeStatement, count, delete, deleteAll, executeAction, executeQuery, executeUpdate, exist, find, find, find, find, find, getAll, getCache, getConnection, getFromCache, isInCache, prepareCountQuery, prepareDeleteQuery, prepareFindParams, prepareFindQuery, removeFromCache, select, setParameters, update, updateprotected static final String TABLE
public static final String ID_FIELD
public static final String GLOBAL_STEP_FIELD
public static final String GLOBAL_LAST_STEP_FIELD
public static final String STEP_FIELD
public static final String RANK_FIELD
public static final String STEP_STATUS_FIELD
public static final String RETRIEVE_MODE_FIELD
public static final String FILENAME_FIELD
public static final String IS_MOVED_FIELD
public static final String ID_RULE_FIELD
public static final String BLOCK_SIZE_FIELD
public static final String ORIGINAL_NAME_FIELD
public static final String FILE_INFO_FIELD
public static final String TRANSFER_INFO_FIELD
public static final String TRANSFER_MODE_FIELD
public static final String TRANSFER_START_FIELD
public static final String TRANSFER_STOP_FIELD
public static final String INFO_STATUS_FIELD
public static final String OWNER_REQUEST_FIELD
public static final String REQUESTED_FIELD
public static final String REQUESTER_FIELD
public static final String UPDATED_INFO_FIELD
protected static final String PRIMARY_KEY_WHERE
protected static final String SQL_DELETE
protected static final String SQL_DELETE_ALL
protected static final String SQL_EXIST
protected static final String SQL_GET_ALL
protected static final String SQL_COUNT_ALL
protected static final String SQL_INSERT
protected static final String SQL_SELECT
protected static final String SQL_UPDATE
protected DBTransferDAO(Connection con)
protected final String getDeleteRequest()
getDeleteRequest in class StatementExecutor<Transfer>protected final String getDeleteAllRequest()
getDeleteAllRequest in class StatementExecutor<Transfer>protected final String getExistRequest()
getExistRequest in class StatementExecutor<Transfer>protected final String getGetAllRequest()
getGetAllRequest in class StatementExecutor<Transfer>protected final String getInsertRequest()
getInsertRequest in class StatementExecutor<Transfer>protected final String getSelectRequest()
getSelectRequest in class StatementExecutor<Transfer>protected final String getCountRequest()
getCountRequest in class StatementExecutor<Transfer>protected final String getUpdateRequest()
getUpdateRequest in class StatementExecutor<Transfer>protected final String getTable()
getTable in class StatementExecutor<Transfer>protected final boolean isCachedEnable()
isCachedEnable in class StatementExecutor<Transfer>protected final Object[] getInsertValues(Transfer transfer)
getInsertValues in class StatementExecutor<Transfer>protected final Object[] getUpdateValues(Transfer transfer)
getUpdateValues in class StatementExecutor<Transfer>public final void updateRank(Transfer e1) throws DAOConnectionException, DAONoDataException
public final void updateRankUpdatedInfoStepStatusStop(Transfer e1) throws DAOConnectionException, DAONoDataException
public final void delete(Transfer transfer) throws DAOConnectionException, DAONoDataException
AbstractDAOdelete in interface AbstractDAO<Transfer>delete in class StatementExecutor<Transfer>transfer - object to deleteDAOConnectionException - If a data access error occursDAONoDataException - if no data are availablepublic final List<Transfer> find(List<Filter> filters, int limit, int offset) throws DAOConnectionException
TransferDAOfind in interface TransferDAOfilters - List of filterDAOConnectionException - If data access error occurspublic final boolean exist(long id,
String requester,
String requested,
String owner)
throws DAOConnectionException
TransferDAOexist in interface TransferDAOid - special ID of the Transfer object verifiedDAOConnectionException - If a data access error occurspublic final Transfer select(long id, String requester, String requested, String owner) throws DAOConnectionException, DAONoDataException
TransferDAOselect in interface TransferDAOid - special ID of the Transfer object requestedDAOConnectionException - If a data access error occursDAONoDataException - if no data are availableprotected abstract long getNextId()
throws DAOConnectionException
DAOConnectionExceptionpublic final void insert(Transfer transfer) throws DAOConnectionException
AbstractDAOinsert in interface AbstractDAO<Transfer>insert in class StatementExecutor<Transfer>transfer - object to insertDAOConnectionException - If a data access error occursprotected final boolean isDbTransfer()
isDbTransfer in class StatementExecutor<Transfer>public final Transfer getFromResultSet(ResultSet set) throws SQLException
getFromResultSet in class StatementExecutor<Transfer>SQLExceptionprotected final String getId(Transfer e1)
getId in class StatementExecutor<Transfer>e1 - as TransferCopyright © 2009–2022 Waarp. All rights reserved.