com.bankframe.ei.txnhandler.persister
Class MasterEntityPersister

java.lang.Object
  extended bycom.bankframe.ei.txnhandler.persister.TxnPersister
      extended bycom.bankframe.ei.txnhandler.persister.CacheIndexPersister
          extended bycom.bankframe.ei.txnhandler.persister.MasterEntityPersister
All Implemented Interfaces:
EPersister, TxnHandlerBrokerPersister

public class MasterEntityPersister
extends CacheIndexPersister

This class is used to persist entities which have dependent objects. It works by merging the master and it's entities DataPackets into a single DataPacket.


Constructor Summary
MasterEntityPersister()
          Default Constructor
 
Method Summary
 void amend(EBMPEntity entityBean, java.lang.String methodName)
          This method is used to update some or all attributes in the data store
 void amend(EBMPEntity entityBean, java.lang.String methodName, DataPacket data)
          This method is used to update some or all attributes in the data store
 EPrimaryKey create(EBMPEntity entityBean)
          This method is used to create an entity in the data store
 java.util.Enumeration find(EBMPEntity entityBean, java.lang.String methodName, DataPacket finderData)
          This method is used to find an entity in the data store
 void load(EBMPEntity entityBean)
          This method is used to load an entity from the data store
 void remove(EBMPEntity entityBean)
          This method is used to remove an entity from the data store
 void store(EBMPEntity entityBean)
          This method is used to update all attributes in data store
 
Methods inherited from class com.bankframe.ei.txnhandler.persister.CacheIndexPersister
amend
 
Methods inherited from class com.bankframe.ei.txnhandler.persister.TxnPersister
amend, amend, find, removeFromCache
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MasterEntityPersister

public MasterEntityPersister()
Default Constructor

Method Detail

find

public java.util.Enumeration find(EBMPEntity entityBean,
                                  java.lang.String methodName,
                                  DataPacket finderData)
                           throws ProcessingErrorException
This method is used to find an entity in the data store

Specified by:
find in interface EPersister
Overrides:
find in class CacheIndexPersister
Parameters:
entityBean - entity to be found in the data store
Returns:
Enumeration returns an enumeration of primaryKeys
Throws:
ProcessingErrorException - thrown if an error occurs during processing

load

public void load(EBMPEntity entityBean)
          throws ProcessingErrorException
This method is used to load an entity from the data store

Specified by:
load in interface EPersister
Overrides:
load in class TxnPersister
Parameters:
entityBean - entity to be loaded from the data store
Throws:
ProcessingErrorException - thrown if an error occurs during processing

create

public EPrimaryKey create(EBMPEntity entityBean)
                   throws ProcessingErrorException
This method is used to create an entity in the data store

Specified by:
create in interface EPersister
Overrides:
create in class TxnPersister
Parameters:
entityBean - entity to be created in the data store
Returns:
EPrimaryKey returns the primaryKey of the entity
Throws:
ProcessingErrorException - thrown if an error occurs during processing

remove

public void remove(EBMPEntity entityBean)
            throws ProcessingErrorException
This method is used to remove an entity from the data store

Specified by:
remove in interface EPersister
Overrides:
remove in class TxnPersister
Parameters:
entityBean - entity to be removed from the data store
Throws:
ProcessingErrorException - thrown if an error occurs during processing

store

public void store(EBMPEntity entityBean)
           throws ProcessingErrorException
This method is used to update all attributes in data store

Specified by:
store in interface EPersister
Overrides:
store in class TxnPersister
Parameters:
entityBean - entity to be stored in the data store
Throws:
ProcessingErrorException - thrown if an error occurs during processing

amend

public void amend(EBMPEntity entityBean,
                  java.lang.String methodName)
           throws ProcessingErrorException
This method is used to update some or all attributes in the data store

Specified by:
amend in interface EPersister
Overrides:
amend in class TxnPersister
Parameters:
entityBean - entity to be updated in the data store
Throws:
ProcessingErrorException - thrown if an error occurs during processing

amend

public void amend(EBMPEntity entityBean,
                  java.lang.String methodName,
                  DataPacket data)
           throws ProcessingErrorException
This method is used to update some or all attributes in the data store

Specified by:
amend in interface EPersister
Overrides:
amend in class TxnPersister
Parameters:
entityBean - entity to be updated in the data store
data - the data to use for the amend operation
Throws:
ProcessingErrorException - thrown if an error occurs during processing


Copyright © 2005, 2007, Oracle. All rights reserved.