Package org.apache.openjpa.kernel
Interface PreparedQueryCache.Exclusion
- All Known Implementing Classes:
PreparedQueryCacheImpl.StrongExclusion
,PreparedQueryCacheImpl.WeakExclusion
- Enclosing interface:
- PreparedQueryCache
public static interface PreparedQueryCache.Exclusion
A structure to describe the strength and reason for excluding a query from the cache.
-
Method Summary
Modifier and TypeMethodDescriptionThe 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.boolean
isStrong()
Affirms if this exclusion is strong i.e. can never be reversed.boolean
Affirms if this exclusion matches the given identifier.
-
Method Details
-
isStrong
boolean isStrong()Affirms if this exclusion is strong i.e. can never be reversed. -
getReason
String getReason()Gets the human-readable reason for excluding this query from being cached. -
getPattern
String getPattern()The pattern (either the exact query string or a regular expression) that denotes this exclusion. -
matches
Affirms if this exclusion matches the given identifier.
-