public class PromotionArgumentJDBCPersistenceManager extends com.ibm.commerce.marketing.promotion.persistence.JDBCPersistenceManager implements PromotionArgumentPersistenceManager
PromotionArgument
objects.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM Copyright
|
Constructor and Description |
---|
PromotionArgumentJDBCPersistenceManager()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
create(PromotionArgument arg)
Creates a promotion argument
|
void |
delete(OrderKey okey)
Removes a promotion argument
|
void |
fromXML(org.w3c.dom.Node anXMLNode)
Transforms the XML node into its corresponding real Object.
|
PromotionArgument |
load(OrderKey okey)
Loads promotion argument from persistence storage
|
void |
save(PromotionArgument arg)
Saves a promotion argument
|
java.lang.String |
toXML()
Converts the object into its corresponding XML format representation.
|
public static final java.lang.String COPYRIGHT
public PromotionArgumentJDBCPersistenceManager()
public PromotionArgument load(OrderKey okey) throws PersistenceObjectNotFoundException, PersistenceObjectReadException
PromotionArgumentPersistenceManager
load
in interface PromotionArgumentPersistenceManager
okey
- key of the order associated with this promotion argumentPersistenceObjectNotFoundException
- when the object does not existPersistenceObjectReadException
- when read operation failsPromotionArgumentPersistenceManager.load(com.ibm.commerce.marketing.promotion.dependency.OrderKey)
public void save(PromotionArgument arg) throws PersistenceObjectNotFoundException, PersistenceObjectWriteException
PromotionArgumentPersistenceManager
save
in interface PromotionArgumentPersistenceManager
arg
- the argument to be savedPersistenceObjectNotFoundException
- when the object does not existPersistenceObjectWriteException
- when the write process failsPromotionArgumentPersistenceManager.save(com.ibm.commerce.marketing.promotion.runtime.PromotionArgument)
public void create(PromotionArgument arg) throws PersistenceObjectAlreadyExistsException, PersistenceCreateException
PromotionArgumentPersistenceManager
create
in interface PromotionArgumentPersistenceManager
arg
- the argument to be createdPersistenceObjectAlreadyExistsException
- when the argument already existsPersistenceCreateException
- when creation failsPromotionArgumentPersistenceManager.create(com.ibm.commerce.marketing.promotion.runtime.PromotionArgument)
public void delete(OrderKey okey) throws PersistenceObjectNotFoundException, PersistenceRemoveException
PromotionArgumentPersistenceManager
delete
in interface PromotionArgumentPersistenceManager
okey
- key of the order with which the promotion argument is associatedPersistenceObjectNotFoundException
- when the promotion argument object to be deleted does not exist.PersistenceRemoveException
- when removal failsPromotionArgumentPersistenceManager.delete(com.ibm.commerce.marketing.promotion.dependency.OrderKey)
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)