org.eclipse.jst.jsf.common.metadata.query
Class AbstractResultSet
java.lang.Object
org.eclipse.jst.jsf.common.metadata.query.AbstractResultSet
-
All Implemented Interfaces:
-
IResultSet
-
public abstract class AbstractResultSet
- extends java.lang.Object
- implements
IResultSet
Abstract implementation of
IResultSet
that developers may subclass.
Users should assume that the results are only valid at the time of the query. This may change in the future.
Provisional API - subject to change
Method Summary
|
void
|
close
()
Signal that the query results are no longer required allowing for any cleanup that may be required
Once a resultset is closed, a MetaDataException should be thrown if the next() or hasNext() is called. |
java.util.List
|
getResults
()
|
boolean
|
isClosed
()
|
Methods inherited from class java.lang.Object
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
|
AbstractResultSet
public AbstractResultSet()
getResults
public java.util.List getResults()
throws
MetaDataException
-
-
Specified by:
-
getResults
in interface
IResultSet
-
-
Returns:
- unmodifiable List of results. May NOT be null. Implementer must return Collections.EMPTY_LIST instead.
-
Throws:
-
MetaDataException
close
public final void close()
throws
MetaDataException
-
Description copied from interface:
IResultSet
- Signal that the query results are no longer required allowing for any cleanup that may be required
Once a resultset is closed, a MetaDataException should be thrown if the next() or hasNext() is called. Clients can check isClosed() first.
-
-
Specified by:
-
close
in interface
IResultSet
-
-
Throws:
-
MetaDataException
isClosed
public final boolean isClosed()
-
-
Specified by:
-
isClosed
in interface
IResultSet
-
-
Returns:
- true if this resultset has been closed.