|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bankframe.ei.txnhandler.hostcache.DataBaseCache
com.bankframe.serives.cache
package instead
A database only caching implementation of the Cache interface.
Field Summary | |
static java.lang.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. |
java.util.Vector |
remove(java.util.Vector pkOfEntitiesToRemove)
Deprecated. Removes elements from the cache. |
java.util.Vector |
remove(java.util.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(java.util.Map pkOfEntitiesToDataPacketResponses)
Deprecated. This method stores the key and value in the db. |
void |
store(java.util.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 java.lang.String PERSISTENCE_CACHE_TABLE_NAME
Method Detail |
public boolean checkPrimaryKeyInCache(DataPacket primaryKeyOfEntity, long timeOutValue) throws ProcessingErrorException
checkPrimaryKeyInCache
in interface Cache
primaryKeyOfEntity
- 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 Cache
ProcessingErrorException
- 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 Profile
public int maxMemCacheSize()
maxMemCacheSize
in interface Profile
public int numberEntriesInDbCache() throws ProcessingErrorException
numberEntriesInDbCache
in interface Profile
ProcessingErrorException
- If there was an exception thrown in the execution of the method.public int numberEntriesInMemCache() throws ProcessingErrorException
numberEntriesInMemCache
in interface Profile
ProcessingErrorException
- If there was an exception thrown in the execution of the method.public void open() throws ProcessingErrorException
open
in interface Cache
ProcessingErrorException
- If there was an error opening the db connection.public java.util.Vector remove(java.util.Vector pkOfEntitiesToRemove) throws ProcessingErrorException
remove
in interface Cache
pkOfEntitiesToRemove
- A vector of pks to remove.
ProcessingErrorException
- If an error occurred while communicating with the db.public java.util.Vector remove(java.util.Vector pkOfEntitiesToRemove, boolean persistenceTableToo) throws ProcessingErrorException
remove
in interface Cache
pkOfEntitiesToRemove
- 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 Cache
primaryKeyOfEntity
- The pk to search on.
ProcessingErrorException
- If an exception occurred in accessing the database.public void store(java.util.Map pkOfEntitiesToDataPacketResponses) throws ProcessingErrorException
store
in interface Cache
pkOfEntitiesToDataPacketResponses
- A Map of pks and values to be stored.
ProcessingErrorException
- If an error occurred while communicating with the db.public void store(java.util.Map pkOfEntitiesToDataPacketResponses, boolean persistent) throws ProcessingErrorException
store
in interface Cache
pkOfEntitiesToDataPacketResponses
- 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 |