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
-
public class PromotionDao extends AbstractDao
Provides a DAO for the PromotionLog entity.- See Also:
PromotionLog
-
-
Field Summary
-
Fields inherited from class com.avoka.core.dao.BaseDao
FETCH_LIMIT, STATEMENT_MAX_NO_PARAMETERS
-
-
Constructor Summary
Constructors Constructor Description PromotionDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.List<PromotionLog>
getPromotionList(Form form)
Return the list of current form promotion log records.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.PromotionLog
getPromotionLogForPK(Object id)
Return the promotion log with the specified OID-
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
-
getPromotionLogForPK
public PromotionLog getPromotionLogForPK(Object id)
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
public List<PromotionLog> getPromotionList(Form form)
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
-
-