edu.cmu.mse.vault.client
Class VaultJNDICacheManager.VaultJNDICache

java.lang.Object
  extended byedu.cmu.mse.vault.client.VaultJNDICacheManager.VaultJNDICache
Enclosing class:
VaultJNDICacheManager

public class VaultJNDICacheManager.VaultJNDICache
extends java.lang.Object

Author:
Jinhee Lee Inner class : VaultJNDICache This class contais three Hashtables for maintaining the object reference of all three sessionEJBs

Constructor Summary
VaultJNDICacheManager.VaultJNDICache()
          VaultJNDICache constructor
 
Method Summary
 void addAccountRef(java.lang.String index, java.lang.Object jndiName, java.lang.Object accRef)
          addAccountRef method is a method to add a new set of index(refID) as a key, the jndi string name and its object reference for the account session EJB
 void addCustomerRef(java.lang.String index, java.lang.Object jndiName, java.lang.Object custRef)
          addCustomerRef method is a method to add a new set of index(refID) as a key, the jndi string name and its object reference for the customer session EJB
 void addTransactionRef(java.lang.String index, java.lang.Object jndiName, java.lang.Object transRef)
          addTransactionRef method is a method to add a new set of index(refID) as a key, the jndi string name and its object reference for the transaction session EJB
 void clearAccountCache()
          accountCache This method remove all elements from the accountCache Hashtable
 void clearCustomerCache()
          clearCustomerCache This method remove all elements from the customerCache Hashtable
 void clearTransactionCache()
          clearTransactionCache This method remove all elements from the transactionCache Hashtable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VaultJNDICacheManager.VaultJNDICache

public VaultJNDICacheManager.VaultJNDICache()
VaultJNDICache constructor

Method Detail

addTransactionRef

public void addTransactionRef(java.lang.String index,
                              java.lang.Object jndiName,
                              java.lang.Object transRef)
addTransactionRef method is a method to add a new set of index(refID) as a key, the jndi string name and its object reference for the transaction session EJB

Parameters:
index - : key of the hashtable
jndiName - : 1st value of the hashtable
transRef - : 2nd value of the hashtable

addAccountRef

public void addAccountRef(java.lang.String index,
                          java.lang.Object jndiName,
                          java.lang.Object accRef)
addAccountRef method is a method to add a new set of index(refID) as a key, the jndi string name and its object reference for the account session EJB

Parameters:
index - : key of the hashtable
jndiName - : 1st value of the hashtable
accRef - : 2nd value of the hashtable

addCustomerRef

public void addCustomerRef(java.lang.String index,
                           java.lang.Object jndiName,
                           java.lang.Object custRef)
addCustomerRef method is a method to add a new set of index(refID) as a key, the jndi string name and its object reference for the customer session EJB

Parameters:
index - : key of the hashtable
jndiName - : 1st value of the hashtable
custRef - : 2nd value of the hashtable

clearCustomerCache

public void clearCustomerCache()
clearCustomerCache This method remove all elements from the customerCache Hashtable


clearTransactionCache

public void clearTransactionCache()
clearTransactionCache This method remove all elements from the transactionCache Hashtable


clearAccountCache

public void clearAccountCache()
accountCache This method remove all elements from the accountCache Hashtable