Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ATTRIBUTE_NAME_IMPL
XML attribute name - impl
|
static java.lang.String |
COPYRIGHT
IBM Copyright notice field.
|
static java.lang.String |
TAG_PROMOTION_REWARD_OPTION_PERSISTENCE_MANAGER
XML tag - PromotionRewardOptionPersistenceManager
|
static java.lang.String |
XML_DOCUMENT_HEADER
XML document header - <?xml version=\"1.0\" encoding=\"UTF-8\"?>
|
Modifier and Type | Method and Description |
---|---|
void |
createPromotionRewardOption(RewardOption aRewardOption)
Creates a PromotionRewardOption record.
|
java.util.List |
findPromotionRewardOptionByOrderKey(OrderKey aOrderKey)
Finds all RewardOption with the specified OrderKey.
|
RewardOption |
loadPromotionRewardOption(PromotionRewardOptionKey aPromotionRewardOptionKey)
Load a RewardOption according to the PromotionRewardOptionKey.
|
void |
removePromotionRewardOption(PromotionRewardOptionKey aPromotionRewardOptionKey)
Removes the PromotionRewardOption record.
|
void |
removePromotionRewardOptionByOrderKey(OrderKey aOrderKey)
Removes the PromotionRewardOption records according to the OrderKey.
|
void |
resetCache()
Reset cache.
|
void |
updatePromotionRewardOption(RewardOption aRewardOption)
Updates the PromotionRewardOption record.
|
void |
updatePromotionRewardOptionChoice(PromotionRewardOptionKey aPromotionRewardOptionKey,
RewardChoice aRewardChoice)
Updates the RewardChoice of the PromotionRewardOption.
|
static final java.lang.String COPYRIGHT
static final java.lang.String TAG_PROMOTION_REWARD_OPTION_PERSISTENCE_MANAGER
static final java.lang.String ATTRIBUTE_NAME_IMPL
static final java.lang.String XML_DOCUMENT_HEADER
RewardOption loadPromotionRewardOption(PromotionRewardOptionKey aPromotionRewardOptionKey) throws PersistenceObjectNotFoundException, PersistenceObjectReadException
aPromotionRewardOptionKey
- The key of RewardOption.PersistenceObjectNotFoundException
- if the PromotionRewardOption object is not foundPersistenceObjectReadException
- if the PromotionRewardOption object can not be read properly
from the database.java.util.List findPromotionRewardOptionByOrderKey(OrderKey aOrderKey) throws PersistenceObjectNotFoundException, PersistenceObjectReadException
aOrderKey
- The OrderKey.PersistenceObjectNotFoundException
- if the PromotionRewardOption objects are not foundPersistenceObjectReadException
- if the PromotionRewardOption object can not be read properly
from the database.void createPromotionRewardOption(RewardOption aRewardOption) throws PersistenceObjectAlreadyExistsException, PersistenceCreateException
aRewardOption
- The RewardOption object to create.PersistenceObjectAlreadyExistsException
- when the PromotionRewardOption already existsPersistenceCreateException
- when creating the PromotionRewardOption failsvoid updatePromotionRewardOption(RewardOption aRewardOption) throws PersistenceObjectNotFoundException, PersistenceObjectWriteException
aRewardOption
- The RewardOption object to update.PersistenceObjectNotFoundException
- when this PromotionRewardOption object does not exist in the
database.PersistenceObjectWriteException
- when it fails to write this PromotionRewardOption to DB.void updatePromotionRewardOptionChoice(PromotionRewardOptionKey aPromotionRewardOptionKey, RewardChoice aRewardChoice) throws PersistenceObjectNotFoundException, PersistenceObjectWriteException
aPromotionRewardOptionKey
- The key for the PromotionRewardOption record.aRewardChoice
- The RewardChoice to be updated.PersistenceObjectNotFoundException
- when this PromotionRewardOption object does not exist in the
database.PersistenceObjectWriteException
- when it fails to write this PromotionRewardOption to DB.void removePromotionRewardOption(PromotionRewardOptionKey aPromotionRewardOptionKey) throws PersistenceObjectNotFoundException, PersistenceRemoveException
aPromotionRewardOptionKey
- The key for the PromotionRewardOption record.PersistenceObjectNotFoundException
- when the object to be removed does not exist in the database.PersistenceRemoveException
- when the object removal fails.void removePromotionRewardOptionByOrderKey(OrderKey aOrderKey) throws PersistenceObjectNotFoundException, PersistenceRemoveException
aOrderKey
- The OrderKey for PromotionRewardOption records.PersistenceObjectNotFoundException
- when the object to be removed does not exist in the database.PersistenceRemoveException
- when the object removal fails.void resetCache()