public interface PromotionPolicyPersistenceManager extends XMLizable, KeyResolver
PromotionPolicyPersistenceManager
interface provides the functions needed to create, store, delete or find
the different promotion policy entities.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.
|
lookup, reverseLookup
static final java.lang.String COPYRIGHT
PromotionPolicy load(PromotionPolicyKey key) throws PersistenceObjectNotFoundException, PersistenceObjectReadException
key
- PromotionPolicyKeyPersistenceObjectNotFoundException
- when the object identified by the key is not foundPersistenceObjectReadException
- when fails to load this objectvoid save(PromotionPolicy pro) throws PersistenceObjectNotFoundException, PersistenceObjectWriteException
pro
- PromotionPolicyPersistenceObjectNotFoundException
- when the object identified by the key is not foundPersistenceObjectWriteException
- when fails to write to this objectvoid create(PromotionPolicy pro) throws PersistenceObjectAlreadyExistsException, PersistenceCreateException
pro
- PromotionPolicyPersistenceObjectAlreadyExistsException
- when the object to create as identified by the key already existsPersistenceCreateException
- when fails to create this objectvoid remove(PromotionPolicy pro) throws PersistenceObjectNotFoundException, PersistenceRemoveException
pro
- PromotionPolicyPersistenceObjectNotFoundException
- when the object identified by the key is not foundPersistenceRemoveException
- when fails to remove this objectPromotionPolicyKey[] findGlobalPolicyKeysByStore(StoreKey key)
key
- identifies the storePromotionPolicyKey[] findPolicyKeysByGroupAndStatus(com.ibm.commerce.marketing.promotion.group.PromotionGroupKey gkey, int status)
gkey
- the key of the group with which the policies are associated.status
- the status of the policiesvoid reload(PromotionPolicyKey key)
key
- to the promotion policyvoid reloadAll()
java.lang.Number nextNumericKey()