|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractCollection<E> java.util.AbstractList<E> java.util.ArrayList<Object> org.apache.openjpa.datacache.QueryResult
public class QueryResult
A query result.
Field Summary |
---|
Fields inherited from class java.util.AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
QueryResult(Collection<Object> data,
long ex)
Constructor to set internal data from a serializer. |
|
QueryResult(QueryKey key,
Collection<Object> data)
Constructor; supply corresponding query key and result data. |
Method Summary | |
---|---|
long |
getTimeoutTime()
Expiration time, or -1 for no timeout. |
long |
getTimestamp()
Returns the timestamp of the query result. |
boolean |
isTimedOut()
Whether this data is timed out. |
void |
setTimestamp(long ts)
Sets the timestamp of the query result. |
Methods inherited from class java.util.ArrayList |
---|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize |
Methods inherited from class java.util.AbstractList |
---|
equals, hashCode, iterator, listIterator, listIterator, subList |
Methods inherited from class java.util.AbstractCollection |
---|
containsAll, removeAll, retainAll, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList |
Constructor Detail |
---|
public QueryResult(QueryKey key, Collection<Object> data)
public QueryResult(Collection<Object> data, long ex)
Method Detail |
---|
public long getTimeoutTime()
public boolean isTimedOut()
public void setTimestamp(long ts)
ts
- -- Timestamp value in longpublic long getTimestamp()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |