public class QueryKey extends Object implements Externalizable
Constructor and Description |
---|
QueryKey()
Public constructor for externalization only.
|
Modifier and Type | Method and Description |
---|---|
boolean |
changeInvalidatesQuery(Collection<Class<?>> changed)
Returns
true if modifications to any of the
classes in changed results in a possible
invalidation of this query; otherwise returns
false . |
boolean |
equals(Object ob)
Determine equality based on identifying information.
|
Set<String> |
getAcessPathClassNames()
Returns the set of the accessPathClassnames that exists in the query
|
String |
getCandidateTypeName()
Returns the candidate class name for this query.
|
int |
getTimeout()
Return the amount of time this key is good for.
|
int |
hashCode()
Define a hashing algorithm corresponding to the
equals(java.lang.Object)
method defined above. |
static QueryKey |
newInstance(Query q)
Return a key for the given query, or null if it is not cacheable.
|
static QueryKey |
newInstance(Query q,
Map<Object,Object> args)
Return a key for the given query, or null if it is not cacheable.
|
static QueryKey |
newInstance(Query q,
Object[] args)
Return a key for the given query, or null if it is not cacheable.
|
void |
readExternal(ObjectInput in) |
String |
toString() |
void |
writeExternal(ObjectOutput out) |
public static QueryKey newInstance(Query q)
public static QueryKey newInstance(Query q, Object[] args)
public static QueryKey newInstance(Query q, Map<Object,Object> args)
public String getCandidateTypeName()
public int getTimeout()
public boolean changeInvalidatesQuery(Collection<Class<?>> changed)
true
if modifications to any of the
classes in changed
results in a possible
invalidation of this query; otherwise returns
false
. Invalidation is possible if one or more of
the classes in this query key's access path has been changed.public boolean equals(Object ob)
public int hashCode()
equals(java.lang.Object)
method defined above.public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
Copyright © 2006–2019 Apache Software Foundation. All rights reserved.