org.enhydra.jdbc.util
Class RequestCache
java.lang.Object
org.enhydra.jdbc.util.RequestCache
- public class RequestCache
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
RequestCache
public RequestCache()
RequestCache
public RequestCache(java.lang.String path)
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()