com.bankframe.ei.txnhandler.impl.persistertxnmap
Class PersisterTxnMapCMPBean

java.lang.Object
  extended bycom.bankframe.ei.txnhandler.persistertxnmap.PersisterTxnMapBean
      extended bycom.bankframe.ei.txnhandler.impl.persistertxnmap.PersisterTxnMapBean
          extended bycom.bankframe.ei.txnhandler.impl.persistertxnmap.PersisterTxnMapCMPBean
All Implemented Interfaces:
EEntity, javax.ejb.EnterpriseBean, javax.ejb.EntityBean, java.io.Serializable

public class PersisterTxnMapCMPBean
extends PersisterTxnMapBean
implements javax.ejb.EntityBean

This class maps an entity and a method to a Host transaction. It uses the entity's name and the methods name to map it to the host by txnCode and txnType.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.bankframe.ei.txnhandler.persistertxnmap.PersisterTxnMapBean
cachePolicy, entityName, indexName, methodName, timeOutValue, txnCode, txnType
 
Fields inherited from interface com.bankframe.ejb.EEntity
serialVersionUID
 
Constructor Summary
PersisterTxnMapCMPBean()
          Default constructor
 
Method Summary
 void ejbActivate()
           
 PersisterTxnMapPK ejbCreate(java.lang.String entityName, java.lang.String methodName, java.lang.String txnCode, java.lang.String txnType, java.lang.String cachePolicy, java.lang.String timeOutValue, java.lang.String indexName)
          This method initialises a new instance of the PersisterTxnMap entity.
 void ejbLoad()
           
 void ejbPassivate()
           
 void ejbPostCreate(java.lang.String entityName, java.lang.String methodName, java.lang.String txnCode, java.lang.String txnType, java.lang.String cachePolicy, java.lang.String timeOutValue, java.lang.String indexName)
          This method called after a new instance of the DestinationEjbMap entity has been initialised.
 void ejbRemove()
           
 void ejbStore()
           
 void setEntityContext(javax.ejb.EntityContext entityContext)
           
 void unsetEntityContext()
           
 
Methods inherited from class com.bankframe.ei.txnhandler.impl.persistertxnmap.PersisterTxnMapBean
toDataPacket
 
Methods inherited from class com.bankframe.ei.txnhandler.persistertxnmap.PersisterTxnMapBean
getCachePolicy, getEntityName, getIndexName, getMethodName, getTimeOutValue, getTxnCode, getTxnType, setCachePolicy, setEntityName, setIndexName, setMethodName, setTimeOutValue, setTxnCode, setTxnType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersisterTxnMapCMPBean

public PersisterTxnMapCMPBean()
Default constructor

Method Detail

ejbActivate

public void ejbActivate()
Specified by:
ejbActivate in interface javax.ejb.EntityBean

ejbCreate

public PersisterTxnMapPK ejbCreate(java.lang.String entityName,
                                   java.lang.String methodName,
                                   java.lang.String txnCode,
                                   java.lang.String txnType,
                                   java.lang.String cachePolicy,
                                   java.lang.String timeOutValue,
                                   java.lang.String indexName)
                            throws javax.ejb.CreateException,
                                   java.rmi.RemoteException
This method initialises a new instance of the PersisterTxnMap entity.

Parameters:
entityName - name of the calling entity
methodName - name of the method being called
txnCode - contains the code number for the host transaction
txnType - identifies the middleware associated with a transaction such as MQSeries, IMS, TUXEDO, CICS
cachePolicy - whether or not the transaction response can be read from the cache
timeOutValue - amount of time the data in the cache remains valid
indexName - name of the index to use to lookup data in cache
Throws:
javax.ejb.CreateException
java.rmi.RemoteException

ejbLoad

public void ejbLoad()
Specified by:
ejbLoad in interface javax.ejb.EntityBean

ejbPassivate

public void ejbPassivate()
Specified by:
ejbPassivate in interface javax.ejb.EntityBean

ejbPostCreate

public void ejbPostCreate(java.lang.String entityName,
                          java.lang.String methodName,
                          java.lang.String txnCode,
                          java.lang.String txnType,
                          java.lang.String cachePolicy,
                          java.lang.String timeOutValue,
                          java.lang.String indexName)
                   throws java.rmi.RemoteException
This method called after a new instance of the DestinationEjbMap entity has been initialised.

Parameters:
entityName - name of the calling entity
methodName - name of the method being called
txnCode - contains the code number for the host transaction
txnType - identifies the middleware associated with a transaction such as MQSeries, IMS, TUXEDO, CICS
cachePolicy - whether or not the transaction response can be read from the cache
timeOutValue - amount of time the data in the cache remains valid
indexName - name of the index to use to lookup data in cache
Throws:
java.rmi.RemoteException - not used

ejbRemove

public void ejbRemove()
Specified by:
ejbRemove in interface javax.ejb.EntityBean

ejbStore

public void ejbStore()
Specified by:
ejbStore in interface javax.ejb.EntityBean

setEntityContext

public void setEntityContext(javax.ejb.EntityContext entityContext)
Specified by:
setEntityContext in interface javax.ejb.EntityBean

unsetEntityContext

public void unsetEntityContext()
Specified by:
unsetEntityContext in interface javax.ejb.EntityBean


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