Package org.apache.openjpa.kernel
Interface PreparedQueryCache.Exclusion
-
- All Known Implementing Classes:
PreparedQueryCacheImpl.StrongExclusion,PreparedQueryCacheImpl.WeakExclusion
- Enclosing interface:
- PreparedQueryCache
public static interface PreparedQueryCache.ExclusionA structure to describe the strength and reason for excluding a query from the cache.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetPattern()The pattern (either the exact query string or a regular expression) that denotes this exclusion.java.lang.StringgetReason()Gets the human-readable reason for excluding this query from being cached.booleanisStrong()Affirms if this exclusion is strong i.e. can never be reversed.booleanmatches(java.lang.String id)Affirms if this exclusion matches the given identifier.
-
-
-
Method Detail
-
isStrong
boolean isStrong()
Affirms if this exclusion is strong i.e. can never be reversed.
-
getReason
java.lang.String getReason()
Gets the human-readable reason for excluding this query from being cached.
-
getPattern
java.lang.String getPattern()
The pattern (either the exact query string or a regular expression) that denotes this exclusion.
-
matches
boolean matches(java.lang.String id)
Affirms if this exclusion matches the given identifier.
-
-