oracle.jdbc.driver
Class LRUStatementCache

java.lang.Object
  |
  +--oracle.jdbc.driver.LRUStatementCache

public class LRUStatementCache
extends java.lang.Object

A Statement Caching based on LRU Scheme


Method Summary
 void close()
          Close all the cursors in the application cache
 int getCacheSize()
           
 boolean getExplicitCachingEnabled()
          getExplicitCachingEnabled Returns true if the explicit cache is currently enabled, false otherwise.
 boolean getImplicitCachingEnabled()
          getImplicitCachingEnabled Returns true if the implicit cache is currently enabled, false otherwise.
 void printCache(java.lang.String msg)
          printCache Prints the contents of the application cache to the screen.
 void setExplicitCachingEnabled(boolean cache)
          setExplicitCachingEnabled Enables or disables the explicit cache.
 void setImplicitCachingEnabled(boolean cache)
          setImplicitCachingEnabled Enables or disables the implicit cache.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setImplicitCachingEnabled

public void setImplicitCachingEnabled(boolean cache)
                               throws java.sql.SQLException
setImplicitCachingEnabled Enables or disables the implicit cache.
Parameters:
cache - If true, then implicit caching will be enabled. If false, then any existing statements will be purged and the implicit cache will be disabled.

getImplicitCachingEnabled

public boolean getImplicitCachingEnabled()
                                  throws java.sql.SQLException
getImplicitCachingEnabled Returns true if the implicit cache is currently enabled, false otherwise. Note that if the current statement cache size is 0, this method will also return false.

setExplicitCachingEnabled

public void setExplicitCachingEnabled(boolean cache)
                               throws java.sql.SQLException
setExplicitCachingEnabled Enables or disables the explicit cache.
Parameters:
cache - If true, then explicit caching will be enabled. If false, then any existing statements will be purged and the explicit cache will be disabled.

getExplicitCachingEnabled

public boolean getExplicitCachingEnabled()
                                  throws java.sql.SQLException
getExplicitCachingEnabled Returns true if the explicit cache is currently enabled, false otherwise. Note that if the current statement cache size is 0, this method will also return false.

getCacheSize

public int getCacheSize()

printCache

public void printCache(java.lang.String msg)
                throws java.sql.SQLException
printCache Prints the contents of the application cache to the screen. This is a debugging routine only.

close

public void close()
           throws java.sql.SQLException
Close all the cursors in the application cache