public class ChangeGiftListPurchaseRecordPartMediator extends AbstractChangeGiftListPartMediator
Constructor and Description |
---|
ChangeGiftListPurchaseRecordPartMediator() |
Modifier and Type | Method and Description |
---|---|
void | applyChanges()
This method applies all the changes made to the entity objects stored by this physical data container.
|
void | create(java.lang.Object aNoun, java.lang.Object aNounPart)
This method creates the appropriate physical SDO and adds it to the physical data container.
|
void | delete(java.lang.Object aNoun, java.lang.Object aNounPart)
This method updates purchase record status to 1 (Marked for Delete) by appropriately updating the physical SDO from the physical data container.
|
java.lang.Object | findPhysicalEntity(java.lang.Object noun, java.lang.Object nounPart)
Finds a physical purchase record entity from the initialized physical data container.
|
java.lang.String[] | getNounPartXPaths()
This method gets the xpath for the noun part.
|
protected PhysicalDataContainer | initializePhysicalDataContainer(java.util.Map mapNounPart)
This method initializes the physical data container for this mediator.
|
protected boolean | resolveByExternalIdentifier(java.lang.Object aNoun, java.lang.Object aNounPart)
This method resolves the purchase record identifier based on the transaction ID.
|
void | update(java.lang.Object aNoun, java.lang.Object aNounPart)
This method updates the physical data container with the modified physical SDO object.
|
java.util.List | validateChange(java.lang.Object aNoun, java.lang.Object aNounPart)
This method checks if the noun part can be updated.
|
java.util.List | validateCreate(java.lang.Object aNoun, java.lang.Object aNounPart)
This method checks if the noun part can be created.
|
java.util.List | validateDelete(java.lang.Object aNoun, java.lang.Object aNounPart)
This method checks if the noun part can be deleted.
|
public ChangeGiftListPurchaseRecordPartMediator()
public void create(java.lang.Object aNoun, java.lang.Object aNounPart) throws AbstractApplicationException
public void update(java.lang.Object aNoun, java.lang.Object aNounPart) throws AbstractApplicationException
Database table column | XPath |
GRPURREC.REGISTRANTMEMO | GiftList/PurchaseRecord/RegistrantMemo |
GRPURREC.ISNOTESENT | GiftList/PurchaseRecord/NoteSent |
GRPURREC.PURCHASEQUANTITY | GiftList/PurchaseRecord/PurchaseItemDetails/Quantity |
The registrant or co-registrants are given access to update the first two attributes where as the third one I.e PURCHASEQUANTITY can be performed only by administrators.
public void delete(java.lang.Object aNoun, java.lang.Object aNounPart) throws AbstractApplicationException
public java.lang.String[] getNounPartXPaths()
protected PhysicalDataContainer initializePhysicalDataContainer(java.util.Map mapNounPart) throws java.lang.Exception
protected boolean resolveByExternalIdentifier(java.lang.Object aNoun, java.lang.Object aNounPart) throws java.lang.Exception
public java.util.List validateCreate(java.lang.Object aNoun, java.lang.Object aNounPart) throws AbstractApplicationException
public java.util.List validateChange(java.lang.Object aNoun, java.lang.Object aNounPart) throws AbstractApplicationException
public java.util.List validateDelete(java.lang.Object aNoun, java.lang.Object aNounPart) throws AbstractApplicationException
public java.lang.Object findPhysicalEntity(java.lang.Object noun, java.lang.Object nounPart) throws AbstractApplicationException
public void applyChanges() throws AbstractApplicationException