public abstract class PgqlResultSetImpl extends java.lang.Object implements PgqlResultSet
| Modifier and Type | Method and Description |
|---|---|
boolean |
absolute(long row)
Places the cursor to the given row number in this ResultSet object.
|
void |
afterLast()
Place the cursor after the last row.
|
void |
beforeFirst()
Place the cursor before the first row.
|
void |
close()
Closes the underlying JDBC ResultSet and Statement.
|
boolean |
first()
Moves the cursor to the first row in the result set.
|
java.lang.Boolean |
getBoolean(int elementIdx)
Gets the value of the designated element by element index as a
Boolean |
java.time.LocalDate |
getDate(int elementIdx)
Gets the value of the designated element by element index as a
LocalDate |
java.time.LocalDate |
getDate(java.lang.String elementName)
Gets the value of the designated element by element name as a
LocalDate |
java.lang.Double |
getDouble(int elementIdx)
Gets the value of the designated element by element index as a
Double |
java.lang.Float |
getFloat(int elementIdx)
Gets the value of the designated element by element index as a
Float |
java.lang.Integer |
getInteger(int elementIdx)
Gets the value of the designated element by element index as an
Integer |
java.util.Date |
getLegacyDate(int elementIdx)
Gets the value of the designated element by element index as a
Date |
java.util.Date |
getLegacyDate(java.lang.String elementName)
Gets the value of the designated element by element name as a
Date |
<T> java.util.List<T> |
getList(int elementIdx)
Gets the value of the designated element by element index as a
List |
<T> java.util.List<T> |
getList(java.lang.String elementName)
Gets the value of the designated element by element name as a
List |
java.lang.Long |
getLong(int elementIdx)
Gets the value of the designated element by element index as a
Long |
java.lang.String |
getString(int elementIdx)
Gets the value of the designated element by element index as a
String |
java.lang.String |
getString(java.lang.String elementName)
Gets the value of the designated element by element name as a
String |
java.time.LocalTime |
getTime(int elementIdx)
Gets the value of the designated element by element index as a
LocalTime |
java.time.LocalTime |
getTime(java.lang.String elementName)
Gets the value of the designated element by element name as a
LocalTime |
java.time.LocalDateTime |
getTimestamp(int elementIdx)
Gets the value of the designated element by element index as a
LocalDateTime |
java.time.LocalDateTime |
getTimestamp(java.lang.String elementName)
Gets the value of the designated element by element name as a
LocalDateTime |
java.time.OffsetDateTime |
getTimestampWithTimezone(int elementIdx)
Gets the value of the designated element by element index as an
OffsetDateTime |
java.time.OffsetTime |
getTimeWithTimezone(int elementIdx)
Gets the value of the designated element by element index as an
OffsetTime |
java.time.OffsetTime |
getTimeWithTimezone(java.lang.String elementName)
Gets the value of the designated element by element name as an
OffsetTime |
java.util.Set<java.lang.String> |
getVertexLabels(int elementIdx)
Gets the value of the designated element by element index as vertex labels
|
java.util.Set<java.lang.String> |
getVertexLabels(java.lang.String elementName)
Gets the value of the designated element by element name as vertex labels
|
java.util.Iterator<oracle.pgql.lang.ResultAccess> |
iterator()
Returns an iterator for this query result.
|
boolean |
last()
Moves the cursor to the last row in the result set.
|
boolean |
next()
Moves the cursor forward one row from its current position.
|
boolean |
previous()
Moves the cursor to the previous row from its current position.
|
PgqlResultSet |
print()
Prints all results to
System.out. |
PgqlResultSet |
print(java.io.PrintStream printStream, long numResults, int from)
Same as
PgqlResultSet.print(long, int) except that this method prints content to printStream. |
boolean |
relative(long rows)
Moves the cursor a relative number of row with repect to the current position.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetValueType, getValueType, print, printpublic boolean absolute(long row)
throws oracle.pgql.lang.PgqlException
absolute in interface oracle.pgql.lang.ResultSet<oracle.pgql.lang.ResultAccess>true if the cursor is moved to a position in the ResultSet object; false if the cursor is moved before the first or after the last roworacle.pgql.lang.PgqlException - if a connection error occurs or when this method is called on a closed result setpublic void afterLast()
throws oracle.pgql.lang.PgqlException
afterLast in interface oracle.pgql.lang.ResultSet<oracle.pgql.lang.ResultAccess>oracle.pgql.lang.PgqlException - if a connection error occurs or when this method is called on a closed result setpublic void beforeFirst()
throws oracle.pgql.lang.PgqlException
beforeFirst in interface oracle.pgql.lang.ResultSet<oracle.pgql.lang.ResultAccess>oracle.pgql.lang.PgqlException - if a connection error occurs or when this method is called on a closed result setpublic void close()
throws oracle.pgql.lang.PgqlException
close in interface java.lang.AutoCloseableclose in interface PgqlResultSetclose in interface oracle.pgql.lang.ResultSet<oracle.pgql.lang.ResultAccess>oracle.pgql.lang.PgqlExceptionpublic boolean first()
throws oracle.pgql.lang.PgqlException
first in interface oracle.pgql.lang.ResultSet<oracle.pgql.lang.ResultAccess>false if there are no rows in the result set; true otherwiseoracle.pgql.lang.PgqlException - if a connection error occurs or when this method is called on a closed result setpublic java.lang.Boolean getBoolean(int elementIdx)
throws oracle.pgql.lang.PgqlException
BooleangetBoolean in interface oracle.pgql.lang.ResultAccesselementIdx - element indexBooleanoracle.pgql.lang.PgqlExceptionpublic java.time.LocalDate getDate(int elementIdx)
throws oracle.pgql.lang.PgqlException
LocalDategetDate in interface oracle.pgql.lang.ResultAccesselementIdx - element indexLocalDateoracle.pgql.lang.PgqlExceptionpublic java.time.LocalDate getDate(java.lang.String elementName)
throws oracle.pgql.lang.PgqlException
LocalDategetDate in interface oracle.pgql.lang.ResultAccesselementName - element nameLocalDateoracle.pgql.lang.PgqlExceptionpublic java.lang.Double getDouble(int elementIdx)
throws oracle.pgql.lang.PgqlException
DoublegetDouble in interface oracle.pgql.lang.ResultAccesselementIdx - element indexDoubleoracle.pgql.lang.PgqlExceptionpublic java.lang.Float getFloat(int elementIdx)
throws oracle.pgql.lang.PgqlException
FloatgetFloat in interface oracle.pgql.lang.ResultAccesselementIdx - element indexFloatoracle.pgql.lang.PgqlExceptionpublic java.lang.Integer getInteger(int elementIdx)
throws oracle.pgql.lang.PgqlException
IntegergetInteger in interface oracle.pgql.lang.ResultAccesselementIdx - element indexIntegeroracle.pgql.lang.PgqlExceptionpublic java.util.Date getLegacyDate(int elementIdx)
throws oracle.pgql.lang.PgqlException
DategetLegacyDate in interface oracle.pgql.lang.ResultAccesselementIdx - element indexDateoracle.pgql.lang.PgqlExceptionpublic java.util.Date getLegacyDate(java.lang.String elementName)
throws oracle.pgql.lang.PgqlException
DategetLegacyDate in interface oracle.pgql.lang.ResultAccesselementName - element nameDateoracle.pgql.lang.PgqlExceptionpublic <T> java.util.List<T> getList(int elementIdx)
throws oracle.pgql.lang.PgqlException
ListgetList in interface oracle.pgql.lang.ResultAccesselementIdx - element indexListoracle.pgql.lang.PgqlExceptionpublic <T> java.util.List<T> getList(java.lang.String elementName)
throws oracle.pgql.lang.PgqlException
ListgetList in interface oracle.pgql.lang.ResultAccesselementName - element nameListoracle.pgql.lang.PgqlExceptionpublic java.lang.Long getLong(int elementIdx)
throws oracle.pgql.lang.PgqlException
LonggetLong in interface oracle.pgql.lang.ResultAccesselementIdx - element indexLongoracle.pgql.lang.PgqlExceptionpublic java.lang.String getString(int elementIdx)
throws oracle.pgql.lang.PgqlException
StringgetString in interface oracle.pgql.lang.ResultAccesselementIdx - element indexStringoracle.pgql.lang.PgqlExceptionpublic java.lang.String getString(java.lang.String elementName)
throws oracle.pgql.lang.PgqlException
StringgetString in interface oracle.pgql.lang.ResultAccesselementName - element nameStringoracle.pgql.lang.PgqlExceptionpublic java.time.LocalTime getTime(int elementIdx)
throws oracle.pgql.lang.PgqlException
LocalTimegetTime in interface oracle.pgql.lang.ResultAccesselementIdx - element indexLocalTimeoracle.pgql.lang.PgqlExceptionpublic java.time.LocalTime getTime(java.lang.String elementName)
throws oracle.pgql.lang.PgqlException
LocalTimegetTime in interface oracle.pgql.lang.ResultAccesselementName - element nameLocalTimeoracle.pgql.lang.PgqlExceptionpublic java.time.LocalDateTime getTimestamp(int elementIdx)
throws oracle.pgql.lang.PgqlException
LocalDateTimegetTimestamp in interface oracle.pgql.lang.ResultAccesselementIdx - element indexLocalDateTimeoracle.pgql.lang.PgqlExceptionpublic java.time.LocalDateTime getTimestamp(java.lang.String elementName)
throws oracle.pgql.lang.PgqlException
LocalDateTimegetTimestamp in interface oracle.pgql.lang.ResultAccesselementName - element nameLocalDateTimeoracle.pgql.lang.PgqlExceptionpublic java.time.OffsetDateTime getTimestampWithTimezone(int elementIdx)
throws oracle.pgql.lang.PgqlException
OffsetDateTimegetTimestampWithTimezone in interface oracle.pgql.lang.ResultAccesselementIdx - element indexOffsetDateTimeoracle.pgql.lang.PgqlExceptionpublic java.time.OffsetTime getTimeWithTimezone(int elementIdx)
throws oracle.pgql.lang.PgqlException
OffsetTimegetTimeWithTimezone in interface oracle.pgql.lang.ResultAccesselementIdx - element indexOffsetTimeoracle.pgql.lang.PgqlExceptionpublic java.time.OffsetTime getTimeWithTimezone(java.lang.String elementName)
throws oracle.pgql.lang.PgqlException
OffsetTimegetTimeWithTimezone in interface oracle.pgql.lang.ResultAccesselementName - element nameOffsetTimeoracle.pgql.lang.PgqlExceptionpublic java.util.Set<java.lang.String> getVertexLabels(int elementIdx)
throws oracle.pgql.lang.PgqlException
getVertexLabels in interface oracle.pgql.lang.ResultAccesselementIdx - element indexoracle.pgql.lang.PgqlExceptionpublic java.util.Set<java.lang.String> getVertexLabels(java.lang.String elementName)
throws oracle.pgql.lang.PgqlException
getVertexLabels in interface oracle.pgql.lang.ResultAccesselementName - element nameoracle.pgql.lang.PgqlExceptionpublic java.util.Iterator<oracle.pgql.lang.ResultAccess> iterator()
iterator in interface java.lang.Iterable<oracle.pgql.lang.ResultAccess>public boolean last()
throws oracle.pgql.lang.PgqlException
last in interface oracle.pgql.lang.ResultSet<oracle.pgql.lang.ResultAccess>false if there are no rows in the result set; true otherwiseoracle.pgql.lang.PgqlException - if a connection error occurs or when this method is called on a closed result setpublic boolean next()
throws oracle.pgql.lang.PgqlException
next in interface oracle.pgql.lang.ResultSet<oracle.pgql.lang.ResultAccess>true if the new current row is valid; false if the new cursor is positioned after the last roworacle.pgql.lang.PgqlException - if a connection error occurs or when this method is called on a closed result setpublic boolean previous()
throws oracle.pgql.lang.PgqlException
previous in interface oracle.pgql.lang.ResultSet<oracle.pgql.lang.ResultAccess>true if the new current row is valid; false if the new cursor is positioned before the first roworacle.pgql.lang.PgqlException - if a connection error occurs or when this method is called on a closed result setpublic PgqlResultSet print()
System.out.print in interface PgqlResultSetPgqlResultSetpublic PgqlResultSet print(java.io.PrintStream printStream, long numResults, int from)
PgqlResultSet.print(long, int) except that this method prints content to printStream.print in interface PgqlResultSetprintStream - stream to which results are printednumResults - number of resultsfrom - first result to be printed (start counting from 0)PgqlResultSetpublic boolean relative(long rows)
throws oracle.pgql.lang.PgqlException
relative in interface oracle.pgql.lang.ResultSet<oracle.pgql.lang.ResultAccess>true if the cursor is moved to a position in the ResultSet object; false if the cursor is moved before the first or after the last roworacle.pgql.lang.PgqlException - if a connection error occurs or when this method is called on a closed result set