com.bankframe.ei.txnhandler.persister
Class TxnPersister

java.lang.Object
  extended bycom.bankframe.ei.txnhandler.persister.TxnPersister
All Implemented Interfaces:
EPersister, TxnHandlerBrokerPersister
Direct Known Subclasses:
MasterEntityPersister, StoreAndForwardPersister, TxnSessionAmendPersister

public class TxnPersister
extends java.lang.Object
implements EPersister, TxnHandlerBrokerPersister

This class is the Transaction Handler implementation of the EPersister and SessionAmendPersister interfaces, it is responsible for entity communication with the Cache and the Transaction Handler

Author:
Engineering

Constructor Summary
TxnPersister()
          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, boolean removeOperation)
          This method is used to update some or all attributes in the data store
 void amend(EBMPEntity entityBean, java.lang.String methodName, DataPacket amendData)
          This method is used to update some or all attributes in the data store using the specified amendData rather that the entityBean's attributes
 void amend(EBMPEntity entityBean, java.lang.String methodName, DataPacket amendData, boolean removeOperation)
          This method is used to update some or all attributes in the data store using the specified amendData rather that the entityBean's attributes
 java.util.Vector amend(java.lang.String ejbName, java.lang.String methodName, DataPacket data, java.util.Vector primaryKeys, boolean removeOperation)
          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
 java.util.Vector find(java.lang.String ejbName, 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 removeFromCache(EBMPEntity entityBean)
          This method is used to remove an entity from the cache only.
 void store(EBMPEntity entityBean)
          This method is used to update all attributes in data store
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TxnPersister

public TxnPersister()
Default Constructor

Method Detail

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
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 amendData)
           throws ProcessingErrorException
This method is used to update some or all attributes in the data store using the specified amendData rather that the entityBean's attributes

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

amend

public java.util.Vector amend(java.lang.String ejbName,
                              java.lang.String methodName,
                              DataPacket data,
                              java.util.Vector primaryKeys,
                              boolean removeOperation)
                       throws ProcessingErrorException
This method is used to update some or all attributes in the data store

Specified by:
amend in interface TxnHandlerBrokerPersister
Parameters:
ejbName - is the name of the entity to be updated in the data store
data - the amend data
primaryKeys - The primary keys to amend/remove from the cache
removeOperation - True if the operation involves removing data from the host false otherwise
methodName - the name of the method doing the amend
Returns:
Vector of results from the host system, used if this is a session amend call to the host system
Throws:
ProcessingErrorException - thrown if an error occurs during processing

amend

public void amend(EBMPEntity entityBean,
                  java.lang.String methodName,
                  DataPacket amendData,
                  boolean removeOperation)
           throws ProcessingErrorException
This method is used to update some or all attributes in the data store using the specified amendData rather that the entityBean's attributes

Parameters:
entityBean - entity to be updated in the data store
amendData - the data to use for the amend operation
removeOperation - True if the operation involves removing data from the host false otherwise
Throws:
ProcessingErrorException - thrown if an error occurs during processing

amend

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

Parameters:
entityBean - entity to be updated in the data store
removeOperation - True if the operation involves removing data from the host false otherwise
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
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

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
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

find

public java.util.Vector find(java.lang.String ejbName,
                             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 TxnHandlerBrokerPersister
Parameters:
ejbName - entity to be updated in the data store
methodName - the name of the method doing the amend
finderData -
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
Parameters:
entityBean - entity to be loaded from the data store
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
Parameters:
entityBean - entity to be removed from the data store
Throws:
ProcessingErrorException - thrown if an error occurs during processing

removeFromCache

public void removeFromCache(EBMPEntity entityBean)
                     throws ProcessingErrorException
This method is used to remove an entity from the cache only.

Specified by:
removeFromCache in interface EPersister
Parameters:
entityBean - entity to be removed from the cache
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
Parameters:
entityBean - entity to be stored in the data store
Throws:
ProcessingErrorException - thrown if an error occurs during processing


Copyright © 2004 Siebel Systems, Inc. All rights reserved.