|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.objectweb.cjdbc.controller.cache.result.ResultCacheRule
This is the to define cache rules in the cache. A ResultCacheRule
is defined by a queryPattern, set to 'default' if default rule, and a CacheBehavior
.
Field Summary | |
private boolean |
applyToSkeleton
|
private CacheBehavior |
behavior
|
private boolean |
isCaseSensitive
|
(package private) Trace |
logger
|
private org.apache.regexp.RE |
queryPattern
|
private java.lang.String |
queryString
|
private long |
timestampResolution
|
Fields inherited from interface org.objectweb.cjdbc.common.xml.XmlComponent |
DOCTYPE_CONTROLLER, DOCTYPE_DB, XML_VERSION |
Constructor Summary | |
ResultCacheRule(java.lang.String queryString,
boolean caseSensitive,
boolean applyToSkeleton,
long timestampResolution)
Creates a new ResultCacheRule |
Method Summary | |
CacheBehavior |
getCacheBehavior()
Get the cache behavior |
org.apache.regexp.RE |
getQueryPattern()
Get the query pattern |
long |
getTimestampResolution()
Retrieve the timestamp resolution of this scheduler |
java.lang.String |
getXml()
Get xml formatted representation of this cjdbc component |
CacheBehavior |
matches(AbstractRequest request)
|
void |
setCacheBehavior(CacheBehavior behavior)
Set the cache behavior |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
Trace logger
private org.apache.regexp.RE queryPattern
private java.lang.String queryString
private boolean isCaseSensitive
private boolean applyToSkeleton
private long timestampResolution
private CacheBehavior behavior
Constructor Detail |
public ResultCacheRule(java.lang.String queryString, boolean caseSensitive, boolean applyToSkeleton, long timestampResolution) throws org.apache.regexp.RESyntaxException
ResultCacheRule
queryString
- for this rulecaseSensitive
- true if matching is case sensitiveapplyToSkeleton
- true if rule apply to query skeletontimestampResolution
- timestamp resolution for NOW() macro
org.apache.regexp.RESyntaxException
- if the query pattern is invalidMethod Detail |
public org.apache.regexp.RE getQueryPattern()
ResultCacheRule
public CacheBehavior getCacheBehavior()
CacheBehavior
for this ResultCacheRule
public void setCacheBehavior(CacheBehavior behavior)
behavior
- behavior for this rulepublic long getTimestampResolution()
public CacheBehavior matches(AbstractRequest request)
request
- we may want to add to the cache
public java.lang.String getXml()
XmlComponent
getXml
in interface XmlComponent
XmlComponent.getXml()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |