|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.openjpa.datacache.QueryKey
public class QueryKey
This class stores information about a particular invocation of a query. It contains a reference to the external properties of the query that was executed, as well as any parameters used to execute that query, with one exception: first-class objects used as parameter values are converted to OIDs.
| Constructor Summary | |
|---|---|
QueryKey()
Public constructor for externalization only. |
|
| Method Summary | |
|---|---|
boolean |
changeInvalidatesQuery(java.util.Collection 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(java.lang.Object ob)
Determine equality based on identifying information. |
java.lang.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,
java.util.Map args)
Return a key for the given query, or null if it is not cacheable. |
static QueryKey |
newInstance(Query q,
java.lang.Object[] args)
Return a key for the given query, or null if it is not cacheable. |
void |
readExternal(java.io.ObjectInput in)
|
java.lang.String |
toString()
|
void |
writeExternal(java.io.ObjectOutput out)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public QueryKey()
| Method Detail |
|---|
public static QueryKey newInstance(Query q)
public static QueryKey newInstance(Query q,
java.lang.Object[] args)
public static QueryKey newInstance(Query q,
java.util.Map args)
public java.lang.String getCandidateTypeName()
public int getTimeout()
public boolean changeInvalidatesQuery(java.util.Collection 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(java.lang.Object ob)
equals in class java.lang.Objectpublic int hashCode()
equals(java.lang.Object)
method defined above.
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOException
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOException
java.lang.ClassNotFoundException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||