|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gcube.contentmanagement.contentmanager.stubs.calls.iterators.RSCollection<T>
public class RSCollection<T>
A lazy collection backed by a result set that can be iterated over with an AsyncRSIterator
.
Constructor Summary | |
---|---|
RSCollection(java.net.URI l,
ResultParser<T> p)
Creates an instance with a result set locator and a result parser. |
|
RSCollection(java.net.URI l,
ResultParser<T> p,
FaultListener fl)
Creates an instance with a result set locator, a result parser, and a fault listener. |
|
RSCollection(java.net.URI l,
ResultParser<T> p,
int timeout)
Creates an instance with a result set locator, a result parser, and a read timeout. |
|
RSCollection(java.net.URI l,
ResultParser<T> p,
int timeout,
FaultListener fl)
Creates an instance with a result set locator, a result parser, a read timeout, and a fault listener. |
Method Summary | |
---|---|
java.net.URI |
getLocator()
Returns the result set locator of the underlying ResultSet. |
java.util.Iterator<T> |
iterator()
|
void |
setListener(FaultListener fl)
Sets a listener for iteration faults. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RSCollection(java.net.URI l, ResultParser<T> p) throws java.lang.Exception
l
- the locator.p
- the parser.
java.lang.Exception
- if the result set could not be accessed from the locator.public RSCollection(java.net.URI l, ResultParser<T> p, int timeout) throws java.lang.Exception
l
- the locator.p
- the parser.timeout
- the timeout, in seconds.
java.lang.Exception
- if the result set could not be accessed from the locator.public RSCollection(java.net.URI l, ResultParser<T> p, FaultListener fl) throws java.lang.Exception
l
- the locator.p
- the parser.fl
- the listener.
java.lang.Exception
- if the result set could not be accessed from the locator.public RSCollection(java.net.URI l, ResultParser<T> p, int timeout, FaultListener fl) throws java.lang.Exception
l
- the locator.p
- the parser.timeout
- the timeout, in seconds.fl
- the listener.
java.lang.Exception
- if the result set could not be accessed from the locator.Method Detail |
---|
public java.net.URI getLocator()
public void setListener(FaultListener fl)
fl
- the listener.public java.util.Iterator<T> iterator() throws java.lang.RuntimeException
iterator
in interface java.lang.Iterable<T>
java.lang.RuntimeException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |