org.jboss.jca.adapters.jdbc
Class PreparedStatementCache

java.lang.Object
  extended by org.jboss.util.LRUCachePolicy
      extended by org.jboss.jca.adapters.jdbc.PreparedStatementCache
All Implemented Interfaces:
org.jboss.util.CachePolicy

public class PreparedStatementCache
extends org.jboss.util.LRUCachePolicy

LRU cache for PreparedStatements. When ps ages out, close it.

Version:
$Revision: 73034 $
Author:
Bill Burke, Adrian Brock, Scott.Stark@jboss.org

Nested Class Summary
static class PreparedStatementCache.Key
          Ket class
 
Nested classes/interfaces inherited from class org.jboss.util.LRUCachePolicy
org.jboss.util.LRUCachePolicy.LRUCacheEntry, org.jboss.util.LRUCachePolicy.LRUList
 
Field Summary
 
Fields inherited from class org.jboss.util.LRUCachePolicy
m_list, m_map, m_maxCapacity, m_minCapacity
 
Constructor Summary
PreparedStatementCache(int max)
          Constructor
 
Method Summary
protected  void ageOut(org.jboss.util.LRUCachePolicy.LRUCacheEntry entry)
          Age out an entry
 String toString()
          
 
Methods inherited from class org.jboss.util.LRUCachePolicy
cacheMiss, create, createCacheEntry, createList, createMap, destroy, flush, get, insert, peek, remove, size, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PreparedStatementCache

public PreparedStatementCache(int max)
Constructor

Parameters:
max - The max value
Method Detail

ageOut

protected void ageOut(org.jboss.util.LRUCachePolicy.LRUCacheEntry entry)
Age out an entry

Overrides:
ageOut in class org.jboss.util.LRUCachePolicy
Parameters:
entry - The entry

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2008 Red Hat Middleware LLC (http://www.jboss.com/)