|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bankframe.ei.txnhandler.hostcache.DataBaseCache
com.bankframe.serives.cache package instead
public class DataBaseCache
A database only caching implementation of the Cache interface.
| Field Summary | |
|---|---|
static String |
PERSISTENCE_CACHE_TABLE_NAME
Deprecated. The name of the persistence table. |
| Method Summary | |
|---|---|
boolean |
checkPrimaryKeyInCache(DataPacket primaryKeyOfEntity,
long timeOutValue)
Deprecated. This method checks for the primary key in the cache table. |
void |
close()
Deprecated. This method closes the database connection. |
int |
flushPersistenceCacheTable()
Deprecated. This method flushes the persistence table of all its entries. |
int |
maxDbCacheSize()
Deprecated. This method returns the max allowed size of the 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 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. |
Vector |
remove(Vector pkOfEntitiesToRemove)
Deprecated. Removes elements from the cache. |
Vector |
remove(Vector pkOfEntitiesToRemove,
boolean persistenceTableToo)
Deprecated. Removes elements from the cache. |
DataPacket |
retrieve(DataPacket primaryKeyOfEntity)
Deprecated. This method retrieves the value associated with the pk passed in. |
void |
store(Map pkOfEntitiesToDataPacketResponses)
Deprecated. This method stores the key and value in the db. |
void |
store(Map pkOfEntitiesToDataPacketResponses,
boolean persistent)
Deprecated. This method stores the key and value in the db. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PERSISTENCE_CACHE_TABLE_NAME
| Method Detail |
|---|
public boolean checkPrimaryKeyInCache(DataPacket primaryKeyOfEntity,
long timeOutValue)
throws ProcessingErrorException
checkPrimaryKeyInCache in interface CacheprimaryKeyOfEntity - The pk to search on.timeOutValue - The timeout value.
ProcessingErrorException - If an exception occurred in accessing the database.
public void close()
throws ProcessingErrorException
close in interface CacheProcessingErrorException - If an error occurred in closing the db connection.
public int flushPersistenceCacheTable()
throws ProcessingErrorException
ProcessingErrorException - If an error occurred during processing.public int maxDbCacheSize()
maxDbCacheSize in interface Profilepublic int maxMemCacheSize()
maxMemCacheSize in interface Profile
public int numberEntriesInDbCache()
throws ProcessingErrorException
numberEntriesInDbCache in interface ProfileProcessingErrorException - If there was an exception thrown in the execution of the method.
public int numberEntriesInMemCache()
throws ProcessingErrorException
numberEntriesInMemCache in interface ProfileProcessingErrorException - If there was an exception thrown in the execution of the method.
public void open()
throws ProcessingErrorException
open in interface CacheProcessingErrorException - If there was an error opening the db connection.
public Vector remove(Vector pkOfEntitiesToRemove)
throws ProcessingErrorException
remove in interface CachepkOfEntitiesToRemove - A vector of pks to remove.
ProcessingErrorException - If an error occurred while communicating with the db.
public Vector remove(Vector pkOfEntitiesToRemove,
boolean persistenceTableToo)
throws ProcessingErrorException
remove in interface CachepkOfEntitiesToRemove - A vector of pks to remove.persistenceTableToo - This argument is ignored in this class.
ProcessingErrorException - If an error occurred while communicating with the db.
public DataPacket retrieve(DataPacket primaryKeyOfEntity)
throws ProcessingErrorException
retrieve in interface CacheprimaryKeyOfEntity - The pk to search on.
ProcessingErrorException - If an exception occurred in accessing the database.
public void store(Map pkOfEntitiesToDataPacketResponses)
throws ProcessingErrorException
store in interface CachepkOfEntitiesToDataPacketResponses - A Map of pks and values to be stored.
ProcessingErrorException - If an error occurred while communicating with the db.
public void store(Map pkOfEntitiesToDataPacketResponses,
boolean persistent)
throws ProcessingErrorException
store in interface CachepkOfEntitiesToDataPacketResponses - A Map of pks and values to be stored.persistent - This parameter is ignored in this class.
ProcessingErrorException - If an error occurred while communicating with the db.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||