public class ChangePromotionBasePartMediator extends AbstractChangeBusinessObjectPartMediatorImpl
Constructor and Description |
---|
ChangePromotionBasePartMediator() |
Modifier and Type | Method and Description |
---|---|
void |
create(java.lang.Object aNoun,
java.lang.Object aNounPart)
This method performs no actions as creating noun is done by the
ChangePromotionMediator . |
void |
delete(java.lang.Object aNoun,
java.lang.Object aNounPart)
This method performs no actions as the deleting noun is done by the
ChangePromotionMediator . |
java.lang.Object |
findPhysicalEntity(java.lang.Object aNoun,
java.lang.Object aNounPart)
This method returns the
Promotion physical SDO from the
PhysicalDataContainer that was created in the
ChangePromotionMediator mediator. |
java.lang.Object |
findPhysicalEntityWithSameAdminName(java.lang.Object aNoun)
This method is used to find a promotion physical entity in the physical
data container which has the same administrative name as the passed
logical promotion noun.
|
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
Promotion object. |
java.util.List |
validateChange(java.lang.Object aNoun,
java.lang.Object aNounPart)
This method checks if the logical
PromotionType noun part
can be updated. |
java.util.List |
validateCreate(java.lang.Object aNoun,
java.lang.Object aNounPart)
This method performs no checking as the validation is done by the
ChangePromotionMediator . |
java.util.List |
validateDelete(java.lang.Object aNoun,
java.lang.Object aNounPart)
This method performs no checking as the validation is done by the
ChangePromotionMediator . |
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
ChangePromotionMediator
.aNoun
- The logical PromotionType
SDO business object.aNounPart
- The logical PromotionType
SDO business object.AbstractApplicationException
- when failed to create the noun part.public void update(java.lang.Object aNoun, java.lang.Object aNounPart) throws AbstractApplicationException
Promotion
object.aNoun
- The logical PromotionType
SDO business object
to update.aNounPart
- The logical PromotionType
SDO business object
to update.AbstractApplicationException
- When error happens.public void delete(java.lang.Object aNoun, java.lang.Object aNounPart) throws AbstractApplicationException
ChangePromotionMediator
.aNoun
- The logical PromotionType
SDO business object.aNounPart
- The logical PromotionType
SDO business object.AbstractApplicationException
- when failed to create the noun part.public java.util.List validateCreate(java.lang.Object aNoun, java.lang.Object aNounPart) throws DataMediatorException
ChangePromotionMediator
.aNoun
- The logical PromotionType
SDO business object.aNounPart
- The logical PromotionType
SDO business object.DataMediatorException
public java.util.List validateChange(java.lang.Object aNoun, java.lang.Object aNounPart) throws AbstractApplicationException
PromotionType
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 PromotionType
SDO business
object.ApplicationError
if
there are any errors, otherwise the list will be empty.AbstractApplicationException
- When error happens.public java.util.List validateDelete(java.lang.Object aNoun, java.lang.Object aNounPart) throws DataMediatorException
ChangePromotionMediator
.aNoun
- The logical PromotionType
SDO business object.aNounPart
- The logical PromotionType
SDO business object.DataMediatorException
public java.lang.Object findPhysicalEntityWithSameAdminName(java.lang.Object aNoun) throws DataMediatorException
aNoun
- The logical SDO.
Promotion
object if it is
found; otherwise it returns null.DataMediatorException
- when an error is encountered.public java.lang.Object findPhysicalEntity(java.lang.Object aNoun, java.lang.Object aNounPart) throws DataMediatorException
Promotion
physical SDO from the
PhysicalDataContainer
that was created in the
ChangePromotionMediator
mediator.aNoun
- The logical PromotionType
SDO.aNounPart
- The logical PromotionType
SDO.Promotion
object if it is
found, otherwise it returns null.DataMediatorException
- When error happens.