public interface PromotionPolicyPersistenceManager extends XMLizable, KeyResolver
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM Copyright
|
Modifier and Type | Method and Description |
---|---|
void | create(PromotionPolicy pro)
Create a new promotion policy.
|
PromotionPolicyKey[] | findGlobalPolicyKeysByStore(StoreKey key)
Finds all global promotion policies within a store
|
PromotionPolicyKey[] | findPolicyKeysByGroupAndStatus(com.ibm.commerce.marketing.promotion.group.PromotionGroupKey gkey, int status)
Finds promotion policies based on the group with which they are associated and their status
|
PromotionPolicy | load(PromotionPolicyKey key)
Finds promotion policy by promotion policy key.
|
java.lang.Number | nextNumericKey()
Returns the next numeric key associated with the PromotionPolicyKey.
|
void | reload(PromotionPolicyKey key)
Invalidates the cache for one promotion policy
|
void | reloadAll()
Invalidates all policies currently in the cache
|
void | remove(PromotionPolicy pro)
This removing is referring to marked for deletion.
|
void | save(PromotionPolicy pro)
Save promotion policy.
|
static final java.lang.String COPYRIGHT
PromotionPolicy load(PromotionPolicyKey key) throws PersistenceObjectNotFoundException, PersistenceObjectReadException
void save(PromotionPolicy pro) throws PersistenceObjectNotFoundException, PersistenceObjectWriteException
void create(PromotionPolicy pro) throws PersistenceObjectAlreadyExistsException, PersistenceCreateException
void remove(PromotionPolicy pro) throws PersistenceObjectNotFoundException, PersistenceRemoveException
PromotionPolicyKey[] findGlobalPolicyKeysByStore(StoreKey key)
PromotionPolicyKey[] findPolicyKeysByGroupAndStatus(com.ibm.commerce.marketing.promotion.group.PromotionGroupKey gkey, int status)
void reload(PromotionPolicyKey key)
void reloadAll()
java.lang.Number nextNumericKey()