org.enhydra.jdbc.util
Class RequestCache
java.lang.Object
org.enhydra.jdbc.util.RequestCache
public class RequestCache
- extends Object
RequestCache
public RequestCache()
RequestCache
public RequestCache(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(String path)
readConfigurationFile
public void readConfigurationFile()
isInCache
public boolean isInCache(String req)
setResult
public void setResult(String req,
Object rset)
getResult
public Object getResult(String req)
getSqlPattern
public String getSqlPattern(String sql)
setLink
public void setLink(String sql,
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 String toString()
- Overrides:
toString in class Object
Copyright © 2011. All Rights Reserved.