org.apache.openjpa.datacache
Class QueryResult
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList
org.apache.openjpa.datacache.QueryResult
- All Implemented Interfaces:
- Serializable, Cloneable, Iterable, Collection, List, RandomAccess
public class QueryResult
- extends ArrayList
A query result.
- Author:
- Abe White
- See Also:
- Serialized Form
Method Summary |
long |
getTimeoutTime()
Expiration time, or -1 for no timeout. |
boolean |
isTimedOut()
Whether this data is timed out. |
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 |
QueryResult
public QueryResult(QueryKey key,
Collection data)
- Constructor; supply corresponding query key and result data.
QueryResult
public QueryResult(Collection data,
long ex)
- Constructor to set internal data from a serializer.
getTimeoutTime
public long getTimeoutTime()
- Expiration time, or -1 for no timeout.
isTimedOut
public boolean isTimedOut()
- Whether this data is timed out.
Copyright © 2006 Apache Software Foundation. All Rights Reserved.