org.enhydra.jdbc.util
Class RequestCache

java.lang.Object
  extended byorg.enhydra.jdbc.util.RequestCache

public class RequestCache
extends java.lang.Object


Constructor Summary
RequestCache()
           
RequestCache(java.lang.String path)
           
 
Method Summary
static RequestCache getInstance()
          This method is used to obtain the cache, if it does not exist, it creates it
static RequestCache getInstance(java.lang.String path)
           
 java.lang.Object getResult(java.lang.String req)
           
 java.lang.String getSqlPattern(java.lang.String sql)
           
 boolean isInCache(java.lang.String req)
           
 void readConfigurationFile()
           
 void reset()
           
 void setLink(java.lang.String sql, java.lang.String pattern)
          make the link between a application request (sql) and the pattern found in the key of the cache_ object
 void setResult(java.lang.String req, java.lang.Object rset)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RequestCache

public RequestCache()

RequestCache

public RequestCache(java.lang.String path)
Method Detail

getInstance

public static RequestCache getInstance()
This method is used to obtain the cache, if it does not exist, it creates it


getInstance

public static RequestCache getInstance(java.lang.String path)

readConfigurationFile

public void readConfigurationFile()

isInCache

public boolean isInCache(java.lang.String req)

setResult

public void setResult(java.lang.String req,
                      java.lang.Object rset)

getResult

public java.lang.Object getResult(java.lang.String req)

getSqlPattern

public java.lang.String getSqlPattern(java.lang.String sql)

setLink

public void setLink(java.lang.String sql,
                    java.lang.String pattern)
make the link between a application request (sql) and the pattern found in the key of the cache_ object

Parameters:
pattern - : may be "null" String

reset

public void reset()

toString

public java.lang.String toString()