com.bankframe.ei.txnhandler.persister
Class CacheIndexPersister
java.lang.Object
|
+--com.bankframe.ei.txnhandler.persister.TxnPersister
|
+--com.bankframe.ei.txnhandler.persister.CacheIndexPersister
- All Implemented Interfaces:
- EPersister, TxnHandlerBrokerPersister
- Direct Known Subclasses:
- MasterEntityPersister
- public class CacheIndexPersister
- extends TxnPersister
Transaction Handler Persister that can use an indexable cache.
Method Summary |
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. |
java.util.Enumeration |
find(EBMPEntity entityBean,
java.lang.String methodName,
DataPacket finderData)
This method is used to find an entity in the data store. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CacheIndexPersister
public CacheIndexPersister()
- Default constructor
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. It overrides a method in the superclass.
The PersisterTxnMap values are used to determine if a cache is used for a given entityName and methodName.
If a cache is not used, then the Transaction Handler is invoked to build and fire a host transaction.
When a PersisterTxnMap indicates that the cache can be used to retrieve data then this method will check
if an index should be used, or look up the cache by primary key. In either case, if no entry is found in the cache
then a Transaction Handler is invoked.
- Specified by:
find
in interface EPersister
- Overrides:
find
in class TxnPersister
- 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
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. It overrides
a method from the superclass. The additional step performed in this method is that after storing
the response in the main cache, any relevant cache indices are updated also.
- Specified by:
amend
in interface TxnHandlerBrokerPersister
- Overrides:
amend
in class TxnPersister
- Parameters:
ejbName
- is the name of the entity to be updated in the data storedata
- the amend dataprimaryKeys
- The primary keys to amend/remove from the cacheremoveOperation
- True if the operation involves removing data from the host false otherwise
- 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
Copyright © 2005 Siebel Systems, Inc. All rights reserved.