com.bankframe.ei.txnhandler.hostcache
Class SingleJvmCache

java.lang.Object
  extended bycom.bankframe.ei.txnhandler.hostcache.SingleJvmCache
All Implemented Interfaces:
Cache, Profile

Deprecated. Use the com.bankframe.serives.cache package instead

public class SingleJvmCache
extends java.lang.Object
implements Cache

A single jvm only implementation of the Cache interface.


Method Summary
 boolean checkPrimaryKeyInCache(DataPacket primaryKeyOfEntity, long timeOutValue)
          Deprecated. This method checks the cache for the designated pk.
 void close()
          Deprecated. This method closes the database connection.
 int findEntry(DataPacket primaryKeyOfEntity, long timeOutValue)
          Deprecated. This method finds the key in the cache.
 int maxDbCacheSize()
          Deprecated. This method returns the max allowed size of database cache.
 int maxMemCacheSize()
          Deprecated. This method returns the max allowed size of the memory cache.
 int numberEntriesInDbCache()
          Deprecated. This method returns the number of items currently in the overflow database cache.
 int numberEntriesInMemCache()
          Deprecated. This method returns the number of items currently in the memory cache.
 void open()
          Deprecated. This method opens the database connection.
 java.util.Vector remove(java.util.Vector pkOfEntitiesToRemove)
          Deprecated. Please see the Cache interface for a description of this method.
 java.util.Vector remove(java.util.Vector pkOfEntitiesToRemove, boolean persistenceTableToo)
          Deprecated. Please see the Cache interface for a description of this method.
 DataPacket retrieve(DataPacket primaryKeyOfEntity)
          Deprecated. This method retieves the value assoc.
 void store(java.util.Map pkOfEntitiesToDataPacketResponses)
          Deprecated. Please see the Cache interface for a description of this method.
 void store(java.util.Map pkOfEntitiesToDataPacketResponses, boolean persistent)
          Deprecated. Please see the Cache interface for a description of this method.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

checkPrimaryKeyInCache

public boolean checkPrimaryKeyInCache(DataPacket primaryKeyOfEntity,
                                      long timeOutValue)
                               throws ProcessingErrorException
Deprecated. 
This method checks the cache for the designated pk.

Specified by:
checkPrimaryKeyInCache in interface Cache
Parameters:
primaryKeyOfEntity - The key to search on.
timeOutValue - The timeout value of the key.
Returns:
Returns true if the key is in the cache and has not timed out. Otherwise it returns false.
Throws:
ProcessingErrorException - If an error occurred during processing.

close

public void close()
           throws ProcessingErrorException
Deprecated. 
This method closes the database connection.

Specified by:
close in interface Cache
Throws:
ProcessingErrorException - If an error occurred in closing the db connection.

findEntry

public int findEntry(DataPacket primaryKeyOfEntity,
                     long timeOutValue)
              throws ProcessingErrorException
Deprecated. 
This method finds the key in the cache.

Parameters:
primaryKeyOfEntity - The key to search on.
timeOutValue - The timeout value of the key.
Returns:
Returns IN_MEM_CACHE, IN_DB_CACHE, NOT_IN_CACHE if the key was in the memory cache, in the database cache or not in the cache, respectively.
Throws:
ProcessingErrorException - If an error occurred during processing.

maxDbCacheSize

public int maxDbCacheSize()
Deprecated. 
This method returns the max allowed size of database cache.

Specified by:
maxDbCacheSize in interface Profile
Returns:
int max size of cache.

maxMemCacheSize

public int maxMemCacheSize()
Deprecated. 
This method returns the max allowed size of the memory cache.

Specified by:
maxMemCacheSize in interface Profile
Returns:
int max size of cache.

numberEntriesInDbCache

public int numberEntriesInDbCache()
                           throws ProcessingErrorException
Deprecated. 
This method returns the number of items currently in the overflow database cache.

Specified by:
numberEntriesInDbCache in interface Profile
Returns:
int The number of elements currently in the cache.
Throws:
ProcessingErrorException - If there was an exception thrown in the execution of the method.

numberEntriesInMemCache

public int numberEntriesInMemCache()
                            throws ProcessingErrorException
Deprecated. 
This method returns the number of items currently in the memory cache.

Specified by:
numberEntriesInMemCache in interface Profile
Returns:
int The number of elements currently in the cache.
Throws:
ProcessingErrorException - If there was an exception thrown in the execution of the method.

open

public void open()
          throws ProcessingErrorException
Deprecated. 
This method opens the database connection.

Specified by:
open in interface Cache
Throws:
ProcessingErrorException - If there was an error opening the db connection.

remove

public java.util.Vector remove(java.util.Vector pkOfEntitiesToRemove)
                        throws ProcessingErrorException
Deprecated. 
Please see the Cache interface for a description of this method.

Specified by:
remove in interface Cache
Parameters:
pkOfEntitiesToRemove - Please see the Cache interface for a description of this method.
Returns:
Please see the Cache interface for a description of this method.
Throws:
ProcessingErrorException - Please see the Cache interface for a description of this method.

remove

public java.util.Vector remove(java.util.Vector pkOfEntitiesToRemove,
                               boolean persistenceTableToo)
                        throws ProcessingErrorException
Deprecated. 
Please see the Cache interface for a description of this method.

Specified by:
remove in interface Cache
Parameters:
pkOfEntitiesToRemove - Please see the Cache interface for a description of this method.
persistenceTableToo - Please see the Cache interface for a description of this method.
Returns:
Please see the Cache interface for a description of this method.
Throws:
ProcessingErrorException - Please see the Cache interface for a description of this method.

retrieve

public DataPacket retrieve(DataPacket primaryKeyOfEntity)
                    throws ProcessingErrorException
Deprecated. 
This method retieves the value assoc. with the key passed in as an argument.

Specified by:
retrieve in interface Cache
Parameters:
primaryKeyOfEntity - The key to search on.
Returns:
The value corresponding the the argument passed in or null if there is no entry in the cache.
Throws:
ProcessingErrorException - If an error occurred during processing.

store

public void store(java.util.Map pkOfEntitiesToDataPacketResponses)
           throws ProcessingErrorException
Deprecated. 
Please see the Cache interface for a description of this method.

Specified by:
store in interface Cache
Parameters:
pkOfEntitiesToDataPacketResponses - Please see the Cache interface for a description of this method.
Throws:
ProcessingErrorException - Please see the Cache interface for a description of this method.

store

public void store(java.util.Map pkOfEntitiesToDataPacketResponses,
                  boolean persistent)
           throws ProcessingErrorException
Deprecated. 
Please see the Cache interface for a description of this method.

Specified by:
store in interface Cache
Parameters:
pkOfEntitiesToDataPacketResponses - Please see the Cache interface for a description of this method.
persistent - Please see the Cache interface for a description of this method.
Throws:
ProcessingErrorException - Please see the Cache interface for a description of this method.


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