Package com.avoka.fc.core.dao
Class ImportActionDao
- java.lang.Object
-
- com.avoka.core.dao.BaseDao
-
- com.avoka.fc.core.dao.AbstractDao
-
- com.avoka.fc.core.dao.ImportActionDao
-
public class ImportActionDao extends AbstractDao
Provides an ImportAction Data Access Object.
-
-
Field Summary
-
Fields inherited from class com.avoka.core.dao.BaseDao
FETCH_LIMIT, STATEMENT_MAX_NO_PARAMETERS
-
-
Constructor Summary
Constructors Constructor Description ImportActionDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImportAction
getImportActionForPk(Object entityId)
Return the import action with the specified OIDList<ImportAction>
getImportActionList(String clientId, String importType, String status, Date startDate, Date endDate, int pageSize)
Return a list of import action matching the search criteriaList<Long>
getPurgeImportActionIdList(Date cutoffDate, int fetchLimit)
Return the list of OIDs of import actions that can be purged-
Methods inherited from class com.avoka.fc.core.dao.AbstractDao
andFilterClientExcludeNull, andFilterClientIncludeNull, andFilterClientOnly, isClientAccessAllowed, performQueryConfigCached
-
Methods inherited from class com.avoka.core.dao.BaseDao
addOrdering, addOrderingCaseInsensitive, addOrderingCaseSensitive, andQueryBetween, andQueryInExp, andQueryInExp, andQueryLikeIgnoreCaseExp, andQueryMatchDbExp, andQueryMatchExp, andQueryMatchIsNotNull, andQueryMatchIsNull, andQueryNoMatchExp, andQueryNotTrue, deleteObject, deleteObjects, findObject, getDataContext, getFetchLimit, getLogger, getObjectForPK, newObject, orQueryLikeIgnoreCaseExp, orQueryMatchExp, performNamedQuery, performNamedQuery, performNamedQuery, performNamedQuery, performNonSelectingQuery, performNonSelectingQuery, performNonSelectingQuery, performNonSelectingQuery, performQuery, performQuery, performQuery, registerNewObject, setCacheStrategy, setFetchLimit, setLocalCacheStrategy, setLocalCacheStrategy, setSharedCacheStrategy, toMap, toMap
-
-
-
-
Method Detail
-
getImportActionForPk
public ImportAction getImportActionForPk(Object entityId)
Return the import action with the specified OID- Parameters:
entityId
- the OID- Returns:
- the matching import action, or null if not found
-
getImportActionList
public List<ImportAction> getImportActionList(String clientId, String importType, String status, Date startDate, Date endDate, int pageSize)
Return a list of import action matching the search criteria- Parameters:
clientId
- the OID of the client that was imported to (optional)importType
- the import type (one ofImportAction.IMPORT_TYPES
, optional)status
- the import status (one ofImportAction.IMPORT_STATUS_VALUES
, optional)startDate
- the lower bound on the import time (optional)endDate
- the upper bound on the import time (optional)pageSize
- the page size to be used in the query- Returns:
- the list of matching import actions, sorted by import time and creation time in descending order
-
getPurgeImportActionIdList
public List<Long> getPurgeImportActionIdList(Date cutoffDate, int fetchLimit)
Return the list of OIDs of import actions that can be purged- Parameters:
cutoffDate
- the query cut off datefetchLimit
- the query fetch limit- Returns:
- the list of import action OIDs to purge
- Since:
- 5.1.0
-
-