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
 String getPattern()
          The pattern (either the exact query string or a regular expression) that denotes this exclusion.
 String getReason()
          Gets the human-readable reason for excluding this query from being cached.
 boolean isStrong()
          Affirms if this exclusion is strong i.e.
 boolean matches(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

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

boolean matches(String id)
Affirms if this exclusion matches the given identifier.



Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.