Package com.avoka.fc.core.dao
Class ComposerPackageQueueDao
- java.lang.Object
-
- com.avoka.core.dao.BaseDao
-
- com.avoka.fc.core.dao.AbstractDao
-
- com.avoka.fc.core.dao.ComposerPackageQueueDao
-
public class ComposerPackageQueueDao extends AbstractDao
Provides a DAO for the ComposerPackageQueue entity.- See Also:
ComposerPackageQueue
-
-
Field Summary
-
Fields inherited from class com.avoka.core.dao.BaseDao
FETCH_LIMIT, STATEMENT_MAX_NO_PARAMETERS
-
-
Constructor Summary
Constructors Constructor Description ComposerPackageQueueDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComposerPackageQueue
createPackageQueue(String url, byte[] packageData)
Return a new Composer Package Queue item for the given package data.ComposerPackageQueue
getComposerPackageQueueForPK(Object id)
Return the ComposerPackageQueue with the specified OIDList<ComposerPackageQueue>
getComposerPackages(String clientId, String status, Date startDate, Date endDate)
Return the list of Composer Package Queue items.List<Long>
getPurgeComposerPackageIdList(Date cutoffDate, int fetchLimit)
Return the list of OIDs of composer packages 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
-
getComposerPackageQueueForPK
public ComposerPackageQueue getComposerPackageQueueForPK(Object id)
Return the ComposerPackageQueue with the specified OID- Parameters:
id
- the OID- Returns:
- the matching ComposerPackageQueue, or null if not found
-
getComposerPackages
public List<ComposerPackageQueue> getComposerPackages(String clientId, String status, Date startDate, Date endDate)
Return the list of Composer Package Queue items.- Parameters:
clientId
- the client identifierstatus
- the deployment statusstartDate
- the search start dateendDate
- the search end date- Returns:
- the list of Composer Package Queue items
-
getPurgeComposerPackageIdList
public List<Long> getPurgeComposerPackageIdList(Date cutoffDate, int fetchLimit)
Return the list of OIDs of composer packages that can be purged- Parameters:
cutoffDate
- the query cut off datefetchLimit
- the query fetch limit- Returns:
- the list of composer package OIDs to purge
- Since:
- 5.1.0
-
createPackageQueue
public ComposerPackageQueue createPackageQueue(String url, byte[] packageData)
Return a new Composer Package Queue item for the given package data.- Parameters:
url
- the load request URLpackageData
- the composer package data.- Returns:
- a new Composer Package Queue item for the given package data.
-
-