Package com.avoka.fc.core.dao
Class PromotionDao
java.lang.Object
com.avoka.core.dao.BaseDao
com.avoka.fc.core.dao.AbstractDao
com.avoka.fc.core.dao.PromotionDao
Provides a DAO for the PromotionLog entity.
- See Also:
-
Field Summary
Fields inherited from class com.avoka.core.dao.BaseDao
FETCH_LIMIT, STATEMENT_MAX_NO_PARAMETERS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetPromotionList
(Client client, Form form, TemplateVersion version, boolean showHistory) Return the list of promotion log records matching the specified search criteria, ordered by creation time.getPromotionList
(Form form) Return the list of current form promotion log records.getPromotionList
(String clientId, String keyword, String promotionStatus, boolean showHistory, Date startDate, Date endDate) Return the list of promotion log entries matching the specified search criteria, ordered by creation time.Return the promotion log with the specified OIDMethods 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
-
Constructor Details
-
PromotionDao
public PromotionDao()
-
-
Method Details
-
getPromotionLogForPK
Return the promotion log with the specified OID- Parameters:
id
- the OID- Returns:
- the matching promotion log, or null if not found
-
getPromotionList
public List<PromotionLog> getPromotionList(Client client, Form form, TemplateVersion version, boolean showHistory) Return the list of promotion log records matching the specified search criteria, ordered by creation time. The query prefetches form and template version data.- Parameters:
client
- the client object associated with the promotion log (optional)form
- the form associated with the promotion log (required)version
- the template version associated with the promotion log (optional)showHistory
- whether to show all promotion log entries (true) or only the most recent one (false)- Returns:
- the list of matching promotion log records
-
getPromotionList
Return the list of current form promotion log records.- Parameters:
form
- the form associated with the promotion log (required)- Returns:
- the list of matching promotion log records
-
getPromotionList
public List<PromotionLog> getPromotionList(String clientId, String keyword, String promotionStatus, boolean showHistory, Date startDate, Date endDate) Return the list of promotion log entries matching the specified search criteria, ordered by creation time.- Parameters:
clientId
- the OID of the client associated with the promotion log (optional)keyword
- the search keywordpromotionStatus
- the promotion status to match (optional)showHistory
- whether to show all promotion log entries (true) or only the most recent one (false)startDate
- the start dateendDate
- the search end date- Returns:
- the list of matching promotion log entries
-