org.jboss.resource.adapter.jdbc
Class PreparedStatementCache

java.lang.Object
  extended byorg.jboss.util.LRUCachePolicy (src) 
      extended byorg.jboss.resource.adapter.jdbc.PreparedStatementCache
All Implemented Interfaces:
CachePolicy (src)

public class PreparedStatementCache
extends LRUCachePolicy (src)

LRU cache for PreparedStatements. When ps ages out, close it if its not in use.


Nested Class Summary
 
Nested classes inherited from class org.jboss.util.LRUCachePolicy (src)
LRUCachePolicy.LRUCacheEntry (src) , LRUCachePolicy.LRUList (src)
 
Field Summary
 
Fields inherited from class org.jboss.util.LRUCachePolicy (src)
m_list, m_map, m_maxCapacity, m_minCapacity
 
Constructor Summary
PreparedStatementCache(int max)
           
 
Method Summary
protected  void ageOut(LRUCachePolicy.LRUCacheEntry (src)  entry)
          Callback method called when the cache algorithm ages out of the cache the given entry.
 
Methods inherited from class org.jboss.util.LRUCachePolicy (src)
cacheMiss, create, createCacheEntry, createList, destroy, flush, get, insert, peek, remove, size, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PreparedStatementCache

public PreparedStatementCache(int max)
Method Detail

ageOut

protected void ageOut(LRUCachePolicy.LRUCacheEntry (src)  entry)
Description copied from class: LRUCachePolicy (src)
Callback method called when the cache algorithm ages out of the cache the given entry.
The implementation here is removing the given entry from the cache.

Overrides:
ageOut in class LRUCachePolicy (src)