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
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Equals 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.int
hashCode()
boolean
isStrong()
Affirms if this exclusion is strong i.e. can never be reversed.boolean
Affirms if this exclusion matches the given identifier.toString()
-
Constructor Details
-
WeakExclusion
-
-
Method Details
-
getPattern
Description copied from interface:PreparedQueryCache.Exclusion
The pattern (either the exact query string or a regular expression) that denotes this exclusion.- Specified by:
getPattern
in interfacePreparedQueryCache.Exclusion
-
getReason
Description copied from interface:PreparedQueryCache.Exclusion
Gets the human-readable reason for excluding this query from being cached.- Specified by:
getReason
in interfacePreparedQueryCache.Exclusion
-
isStrong
public boolean isStrong()Description copied from interface:PreparedQueryCache.Exclusion
Affirms if this exclusion is strong i.e. can never be reversed.- Specified by:
isStrong
in interfacePreparedQueryCache.Exclusion
-
matches
Description copied from interface:PreparedQueryCache.Exclusion
Affirms if this exclusion matches the given identifier.- Specified by:
matches
in interfacePreparedQueryCache.Exclusion
-
equals
Equals by strength and pattern (not by reason). -
hashCode
public int hashCode() -
toString
-