public class ChangePromotionElementPartMediator extends AbstractChangeBusinessObjectPartMediatorImpl
Constructor and Description |
---|
ChangePromotionElementPartMediator() |
Modifier and Type | Method and Description |
---|---|
void |
create(java.lang.Object aNoun,
java.lang.Object aNounPart)
This method creates the PromotionElement noun part.
|
void |
delete(java.lang.Object aNoun,
java.lang.Object aNounPart)
This method deletes the PromotionElement noun part of a Promotion.
|
java.lang.Object |
findPhysicalEntity(java.lang.Object aNoun,
java.lang.Object aNounPart)
This method returns the
PromotionElementType physical SDO
from the PhysicalDataContainer that was created in the
ChangePromotionMediator mediator. |
java.lang.String[] |
getNounPartXPaths()
This method gets the xpath for the noun part.
|
void |
update(java.lang.Object aNoun,
java.lang.Object aNounPart)
This method updates the physical data container with the modified
PromotionElement object. |
java.util.List |
validateChange(java.lang.Object aNoun,
java.lang.Object aNounPart)
This method checks if the logical
PromotionElementType
noun part can be updated. |
java.util.List |
validateCreate(java.lang.Object aNoun,
java.lang.Object aNounPart)
This method checks if the logical
PromotionElementType
noun part can be created. |
java.util.List |
validateDelete(java.lang.Object aNoun,
java.lang.Object aNounPart)
This method checks if the logical
PromotionElementType
noun part can be deleted. |
applyChanges, convertToBigDecimal, convertToDate, convertToDouble, convertToInteger, convertToLong, getNounParts, getParentPhysicalDataContainer, getPhysicalDataContainer, initialize
getUpdateAccessProfile, setUpdateAccessProfile
initializeConfig
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getUpdateAccessProfile, setUpdateAccessProfile
initializeConfig
public java.lang.String[] getNounPartXPaths()
public void create(java.lang.Object aNoun, java.lang.Object aNounPart) throws AbstractApplicationException
aNoun
- The logical PromotionType
SDO business object.aNounPart
- The noun part PromotionElementType
SDO business
object.AbstractApplicationException
- when failed to create the noun part.public void update(java.lang.Object aNoun, java.lang.Object aNounPart) throws AbstractApplicationException
PromotionElement
object.aNoun
- The logical PromotionType
SDO business object
to update.aNounPart
- The noun part PromotionElementType
SDO business
object to update.AbstractApplicationException
- When failed to update the noun part.public void delete(java.lang.Object aNoun, java.lang.Object aNounPart) throws AbstractApplicationException
aNoun
- The logical PromotionType
SDO business object.aNounPart
- The noun part PromotionElementType
SDO business
object.AbstractApplicationException
- when failed to delete the noun part.public java.util.List validateCreate(java.lang.Object aNoun, java.lang.Object aNounPart) throws DataMediatorException
PromotionElementType
noun part can be created. It checks that the noun exists in the physical
data container. If the noun part cannot be created, the appropriate error
exception is added to the list of exceptions to be returned to the
caller.aNoun
- The logical PromotionType
SDO business object
to validate.aNounPart
- The noun part PromotionElementType
SDO business
object.ApplicationError
if
there are any errors, otherwise the list will be empty.DataMediatorException
- When error happens.public java.util.List validateChange(java.lang.Object aNoun, java.lang.Object aNounPart) throws DataMediatorException
PromotionElementType
noun part can be updated. It checks that the noun exists in the physical
data container. If the noun part cannot be updated, the appropriate error
exception is added to the list of exceptions to be returned to the
caller.aNoun
- The logical PromotionType
SDO business object
to validate.aNounPart
- The noun part PromotionElementType
SDO business
object.ApplicationError
if
there are any errors, otherwise the list will be empty.DataMediatorException
- When error happens.public java.util.List validateDelete(java.lang.Object aNoun, java.lang.Object aNounPart) throws DataMediatorException
PromotionElementType
noun part can be deleted. It checks that the noun exists in the physical
data container. If the noun part cannot be deleted, the appropriate error
exception is added to the list of exceptions to be returned to the
caller.aNoun
- The logical PromotionType
SDO business object
to validate.aNounPart
- The noun part PromotionElementType
SDO business
object.ApplicationError
if
there are any errors, otherwise the list will be empty.DataMediatorException
- When error happens.public java.lang.Object findPhysicalEntity(java.lang.Object aNoun, java.lang.Object aNounPart) throws DataMediatorException
PromotionElementType
physical SDO
from the PhysicalDataContainer
that was created in the
ChangePromotionMediator
mediator.aNoun
- The logical PromotionType
SDO.aNounPart
- The noun part PromotionElementType
SDO.Px_element
object if it is
found, otherwise it returns null.DataMediatorException
- When error happens.