Package org.apache.openjpa.jdbc.kernel
Class PreparedQueryCacheImpl.WeakExclusion
java.lang.Object
org.apache.openjpa.jdbc.kernel.PreparedQueryCacheImpl.WeakExclusion
- All Implemented Interfaces:
PreparedQueryCache.Exclusion
- Enclosing class:
- PreparedQueryCacheImpl
Weak exclusion.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanEquals by strength and pattern (not by reason).The pattern (either the exact query string or a regular expression) that denotes this exclusion.Gets the human-readable reason for excluding this query from being cached.inthashCode()booleanisStrong()Affirms if this exclusion is strong i.e. can never be reversed.booleanAffirms if this exclusion matches the given identifier.toString()
-
Constructor Details
-
WeakExclusion
-
-
Method Details
-
getPattern
Description copied from interface:PreparedQueryCache.ExclusionThe pattern (either the exact query string or a regular expression) that denotes this exclusion.- Specified by:
getPatternin interfacePreparedQueryCache.Exclusion
-
getReason
Description copied from interface:PreparedQueryCache.ExclusionGets the human-readable reason for excluding this query from being cached.- Specified by:
getReasonin interfacePreparedQueryCache.Exclusion
-
isStrong
public boolean isStrong()Description copied from interface:PreparedQueryCache.ExclusionAffirms if this exclusion is strong i.e. can never be reversed.- Specified by:
isStrongin interfacePreparedQueryCache.Exclusion
-
matches
Description copied from interface:PreparedQueryCache.ExclusionAffirms if this exclusion matches the given identifier.- Specified by:
matchesin interfacePreparedQueryCache.Exclusion
-
equals
Equals by strength and pattern (not by reason). -
hashCode
public int hashCode() -
toString
-