public class PromotionArgumentSessionBeanPersistenceManager
extends java.lang.Object
implements com.ibm.commerce.marketing.promotion.runtime.PromotionArgumentPersistenceManager2
Constructor and Description |
---|
PromotionArgumentSessionBeanPersistenceManager()
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
create(PromotionArgument arg)
Create a Promotion Argument.
|
void |
delete(OrderKey okey)
Remove a Promotion Argument
|
void |
fromXML(org.w3c.dom.Node anXMLNode)
Transforms the XML node into its corresponding real Object.
|
PromotionArgument |
load(OrderKey okey)
Finds a Promotion Argument by the order key.
|
void |
persist(PromotionArgument aPromotionArgument)
Persist a Promotion Argument in the database.
|
void |
save(PromotionArgument arg)
Update the Promotion Argument object.
|
java.lang.String |
toXML()
Converts the object into its corresponding XML format representation.
|
public PromotionArgumentSessionBeanPersistenceManager()
public PromotionArgument load(OrderKey okey) throws PersistenceObjectNotFoundException, PersistenceObjectReadException
load
in interface PromotionArgumentPersistenceManager
okey
- The Order keyPersistenceObjectNotFoundException
- is thrown when a promotion argument cannot be found in persistence storage.PersistenceObjectReadException
- is thrown when an error is encountered on reading a promotion argument from persistence storage.public void save(PromotionArgument arg) throws PersistenceObjectNotFoundException, PersistenceObjectWriteException
save
in interface PromotionArgumentPersistenceManager
arg
- The Promotion Argument to updatePersistenceObjectNotFoundException
- is thrown when the promotion argumentn cannot be found in persistence storage.PersistenceObjectWriteException
- is thrown when an error is encountered on writing a promotion argument to persistence storage.public void create(PromotionArgument arg) throws PersistenceObjectAlreadyExistsException, PersistenceCreateException
create
in interface PromotionArgumentPersistenceManager
arg
- The
Promotion Argument to be createdPersistenceObjectAlreadyExistsException
- is thrown if the promotion argument to create already exists.PersistenceCreateException
- is thrown when an error is encountered during the creation of the promotion argument.public void delete(OrderKey okey) throws PersistenceObjectNotFoundException, PersistenceRemoveException
delete
in interface PromotionArgumentPersistenceManager
okey
- Order Key of the promotion argument to remove.PersistenceObjectNotFoundException
- is thrown when the promotion argument cannot be found.PersistenceRemoveException
- is thrown when an error is encountered during the removal of the promotion argument.public void persist(PromotionArgument aPromotionArgument) throws PersistenceObjectReadException, PersistenceObjectWriteException, PersistenceRemoveException, PersistenceObjectNotFoundException, PersistenceObjectAlreadyExistsException, PersistenceCreateException
persist
in interface com.ibm.commerce.marketing.promotion.runtime.PromotionArgumentPersistenceManager2
aPromotionArgument
- the Promotion Arguement to persist.PersistenceObjectReadException
- is thrown when an error is encountered on reading the
promotion argument from persistence storage.PersistenceObjectWriteException
- is thrown when an error is encountered on writing the
promotion argument to persistence storage.PersistenceRemoveException
- is thrown when an error is encountered on removing the
promotion argument from persistence storage.PersistenceObjectNotFoundException
- is thrown when the promotion argument cannot be found in
persistence storage.PersistenceObjectAlreadyExistsException
- is thrown when a promotion argument already exists in
persistence storage.PersistenceCreateException
- is thrown when an error is encountered on creating a
promotion argument in persistence storage.public java.lang.String toXML() throws XMLizationException
XMLizable
toXML
in interface XMLizable
XMLizationException
- when this process failsXMLizable.toXML()
public void fromXML(org.w3c.dom.Node anXMLNode) throws DeXMLizationException
XMLizable
fromXML
in interface XMLizable
anXMLNode
- The node that represents an XMLizable objectDeXMLizationException
- when this process failsXMLizable.fromXML(org.w3c.dom.Node)