org.enhydra.jdbc.standard
Class PreparedStatementCache

java.lang.Object
  extended by org.enhydra.jdbc.util.LRUCache
      extended by org.enhydra.jdbc.standard.PreparedStatementCache

public class PreparedStatementCache
extends LRUCache

Implementation of LRUCache to handle prepared statements TODO: Override put to check type


Field Summary
 
Fields inherited from class org.enhydra.jdbc.util.LRUCache
log
 
Constructor Summary
PreparedStatementCache(int maxSize)
          Constructor
 
Method Summary
protected  void cleanupObject(java.lang.Object obj)
          Overriden to close the statement
 
Methods inherited from class org.enhydra.jdbc.util.LRUCache
cacheSize, cleanupAll, get, LRUSize, put, remove, resize, setLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PreparedStatementCache

public PreparedStatementCache(int maxSize)
Constructor

Method Detail

cleanupObject

protected void cleanupObject(java.lang.Object obj)
Overriden to close the statement

Overrides:
cleanupObject in class LRUCache