public interface PromotionPersistenceManager extends XMLizable, KeyResolver
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM Copyright
|
Modifier and Type | Method and Description |
---|---|
void | changePromotionStatus(PromotionKey key, int status)
Changes the status of a promotion.
|
void | changePromotionStatus(PromotionKey key, int status, java.util.HashMap sessionData)
Deprecated.
|
void | create(Promotion pro)
Creates a new promotion.
|
void | create(Promotion pro, java.util.HashMap sessionData)
Deprecated.
|
PromotionKey | findActivePromotionByCodeAndStoreID(java.lang.String code, java.lang.Integer storeID)
Finds all promotions by their code (visualCue) and storeID.
|
PromotionKey[] | findActivePromotionByCodePatternAndStoreID(java.lang.String code, java.lang.Integer storeID)
Finds all promotions by their code (visualCue) and storeID.
|
PromotionKey | findActivePromotionByNameAndStoreID(java.lang.String name, java.lang.Integer storeID)
Finds all active promotions by their Name and storeID.
|
PromotionKey[] | findActivePromotionByStoreIDAndDate(java.lang.Integer storeID, java.sql.Timestamp aStartDate, java.sql.Timestamp aEndDate)
Finds all active promotions of a store that has its start date is before the specified date and its end date is after the specified date.
|
PromotionKey[] | findActivePromotionsInAGroupByDate(com.ibm.commerce.marketing.promotion.group.PromotionGroupKey aGroupKey, java.sql.Timestamp aStartDate, java.sql.Timestamp aEndDate)
Finds all active promotions in a promotion group that has its start date is before the specified date and its end date is after the specified date.
|
PromotionKey | findCurrentPromotionByNameAndStoreID(java.lang.String name, java.lang.Integer storeID)
Finds all promotions that are either active, inactive or suspended, but not deleted or obsolete by their Name and storeID.
|
PromotionKey | findCurrentPromotionByNameVersionAndStoreID(java.lang.String name, java.lang.Integer version, java.lang.Integer storeID)
Finds all promotions that are either active, inactive or suspended, but not deleted or obsolete by their Name, version and storeID.
|
PromotionKey[] | findCurrentPromotionByStoreID(java.lang.Integer storeID)
Finds current promotions by storeID.
|
PromotionKey[] | findPromotionByStatusAndStoreID(int status, java.lang.Integer storeID)
Finds all promotions by status and storeID.
|
PromotionKey[] | findPromotionByStoreID(java.lang.Integer storeID)
Finds all promotions by storeID.
|
PromotionKey[] | findPromotionsInAGroupByStatus(com.ibm.commerce.marketing.promotion.group.PromotionGroupKey key, int status)
Finds all the promotions in a promotion group by status.
|
Promotion | load(PromotionKey key)
Finds promotion by promotion key.
|
java.lang.Number | nextNumericKey()
Returns the next available numeric key value for promotions.
|
void | reload(PromotionKey key)
Reload any cache for the promotion identified by its key.
|
void | reloadAll()
Reloads the entire promotion cache.
|
void | remove(Promotion pro)
Removes the promotion from persistence storage.
|
void | remove(Promotion pro, java.util.HashMap sessionData)
Deprecated.
|
void | save(Promotion pro)
Saves promotion.
|
void | save(Promotion pro, java.util.HashMap sessionData)
Deprecated.
|
PromotionKey | saveAsANewRevision(Promotion promotion)
Saves the promotion as a new revision.
|
PromotionKey | saveAsANewRevision(Promotion promotion, java.util.HashMap sessionData)
Deprecated.
|
PromotionKey | saveAsANewVersion(Promotion promotion)
Saves the promotion as a new version.
|
PromotionKey | saveAsANewVersion(Promotion promotion, java.util.HashMap sessionData)
Deprecated.
|
static final java.lang.String COPYRIGHT
Promotion load(PromotionKey key) throws PersistenceObjectNotFoundException, PersistenceObjectReadException
void save(Promotion pro) throws PersistenceObjectNotFoundException, PersistenceObjectWriteException
void create(Promotion pro) throws PersistenceObjectAlreadyExistsException, PersistenceCreateException
void remove(Promotion pro) throws PersistenceObjectNotFoundException, PersistenceRemoveException
void changePromotionStatus(PromotionKey key, int status) throws PersistenceObjectNotFoundException, PersistenceObjectWriteException
PromotionKey[] findPromotionsInAGroupByStatus(com.ibm.commerce.marketing.promotion.group.PromotionGroupKey key, int status) throws PersistenceObjectReadException
PromotionKey saveAsANewRevision(Promotion promotion) throws PersistenceObjectWriteException, PersistenceCreateException
PromotionKey saveAsANewVersion(Promotion promotion) throws PersistenceObjectWriteException, PersistenceCreateException
java.lang.Number nextNumericKey()
void reload(PromotionKey key)
void reloadAll()
PromotionKey findActivePromotionByCodeAndStoreID(java.lang.String code, java.lang.Integer storeID)
PromotionKey findActivePromotionByNameAndStoreID(java.lang.String name, java.lang.Integer storeID)
PromotionKey findCurrentPromotionByNameAndStoreID(java.lang.String name, java.lang.Integer storeID) throws PersistenceObjectNotFoundException, PersistenceObjectReadException
PromotionKey findCurrentPromotionByNameVersionAndStoreID(java.lang.String name, java.lang.Integer version, java.lang.Integer storeID) throws PersistenceObjectNotFoundException, PersistenceObjectReadException
PromotionKey[] findPromotionByStatusAndStoreID(int status, java.lang.Integer storeID)
PromotionKey[] findCurrentPromotionByStoreID(java.lang.Integer storeID)
PromotionKey[] findPromotionByStoreID(java.lang.Integer storeID)
void changePromotionStatus(PromotionKey key, int status, java.util.HashMap sessionData) throws PersistenceObjectNotFoundException, PersistenceObjectWriteException
void create(Promotion pro, java.util.HashMap sessionData) throws PersistenceObjectAlreadyExistsException, PersistenceCreateException
void remove(Promotion pro, java.util.HashMap sessionData) throws PersistenceObjectNotFoundException, PersistenceRemoveException
void save(Promotion pro, java.util.HashMap sessionData) throws PersistenceObjectNotFoundException, PersistenceObjectWriteException
PromotionKey saveAsANewRevision(Promotion promotion, java.util.HashMap sessionData) throws PersistenceObjectWriteException, PersistenceCreateException
PromotionKey saveAsANewVersion(Promotion promotion, java.util.HashMap sessionData) throws PersistenceObjectWriteException, PersistenceCreateException
PromotionKey[] findActivePromotionByCodePatternAndStoreID(java.lang.String code, java.lang.Integer storeID)
PromotionKey[] findActivePromotionsInAGroupByDate(com.ibm.commerce.marketing.promotion.group.PromotionGroupKey aGroupKey, java.sql.Timestamp aStartDate, java.sql.Timestamp aEndDate) throws PersistenceObjectReadException
PromotionKey[] findActivePromotionByStoreIDAndDate(java.lang.Integer storeID, java.sql.Timestamp aStartDate, java.sql.Timestamp aEndDate)