public 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.lang.Boolean |
getBoolean(java.lang.String elementName)
Gets the value of the designated element by element name 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.Double |
getDouble(java.lang.String elementName)
Gets the value of the designated element by element name as a
Double |
java.lang.Float |
getFloat(int elementIdx)
Gets the value of the designated element by element index as a
Float |
java.lang.Float |
getFloat(java.lang.String elementName)
Gets the value of the designated element by element name as a
Float |
java.lang.Integer |
getInteger(int elementIdx)
Gets the value of the designated element by element index as an
Integer |
java.lang.Integer |
getInteger(java.lang.String elementName)
Gets the value of the designated element by element name 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.Long |
getLong(java.lang.String elementName)
Gets the value of the designated element by element name as a
Long |
oracle.pgql.lang.ResultSetMetaData |
getMetaData()
Retrieves the number and properties of this
ResultSet object's columns. |
java.lang.Object |
getObject(int elementIdx)
Gets the value of the designated element by element name as an
Object |
java.lang.Object |
getObject(java.lang.String elementName)
Gets the value of the designated element by element name as an
Object |
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.OffsetDateTime |
getTimestampWithTimezone(java.lang.String elementName)
Gets the value of the designated element by element name 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 |
int |
getValueType(int elementIdx)
Returns the type of value for elements with PgqlColumnDescriptor.Type.VALUE column type.
|
int |
getValueType(java.lang.String elementName)
Returns the type of value for elements with PgqlColumnDescriptor.Type.VALUE column type.
|
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<PgqlResultSet> |
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, wait
print, print
public boolean absolute(long row) throws oracle.pgql.lang.PgqlException
absolute
in interface oracle.pgql.lang.ResultSet
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.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.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.AutoCloseable
close
in interface PgqlResultSet
close
in interface oracle.pgql.lang.ResultSet
oracle.pgql.lang.PgqlException
public boolean first() throws oracle.pgql.lang.PgqlException
first
in interface oracle.pgql.lang.ResultSet
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
Boolean
getBoolean
in interface oracle.pgql.lang.ResultAccess
elementIdx
- element indexBoolean
oracle.pgql.lang.PgqlException
public java.lang.Boolean getBoolean(java.lang.String elementName) throws oracle.pgql.lang.PgqlException
Boolean
getBoolean
in interface oracle.pgql.lang.ResultAccess
elementName
- element nameBoolean
oracle.pgql.lang.PgqlException
public java.time.LocalDate getDate(int elementIdx) throws oracle.pgql.lang.PgqlException
LocalDate
getDate
in interface oracle.pgql.lang.ResultAccess
elementIdx
- element indexLocalDate
oracle.pgql.lang.PgqlException
public java.time.LocalDate getDate(java.lang.String elementName) throws oracle.pgql.lang.PgqlException
LocalDate
getDate
in interface oracle.pgql.lang.ResultAccess
elementName
- element nameLocalDate
oracle.pgql.lang.PgqlException
public java.lang.Double getDouble(int elementIdx) throws oracle.pgql.lang.PgqlException
Double
getDouble
in interface oracle.pgql.lang.ResultAccess
elementIdx
- element indexDouble
oracle.pgql.lang.PgqlException
public java.lang.Double getDouble(java.lang.String elementName) throws oracle.pgql.lang.PgqlException
Double
getDouble
in interface oracle.pgql.lang.ResultAccess
elementName
- element nameDouble
oracle.pgql.lang.PgqlException
public java.lang.Float getFloat(int elementIdx) throws oracle.pgql.lang.PgqlException
Float
getFloat
in interface oracle.pgql.lang.ResultAccess
elementIdx
- element indexFloat
oracle.pgql.lang.PgqlException
public java.lang.Float getFloat(java.lang.String elementName) throws oracle.pgql.lang.PgqlException
Float
getFloat
in interface oracle.pgql.lang.ResultAccess
elementName
- element nameFloat
oracle.pgql.lang.PgqlException
public java.lang.Integer getInteger(int elementIdx) throws oracle.pgql.lang.PgqlException
Integer
getInteger
in interface oracle.pgql.lang.ResultAccess
elementIdx
- element indexInteger
oracle.pgql.lang.PgqlException
public java.lang.Integer getInteger(java.lang.String elementName) throws oracle.pgql.lang.PgqlException
Integer
getInteger
in interface oracle.pgql.lang.ResultAccess
elementName
- element nameInteger
oracle.pgql.lang.PgqlException
public java.util.Date getLegacyDate(int elementIdx) throws oracle.pgql.lang.PgqlException
Date
getLegacyDate
in interface oracle.pgql.lang.ResultAccess
elementIdx
- element indexDate
oracle.pgql.lang.PgqlException
public java.util.Date getLegacyDate(java.lang.String elementName) throws oracle.pgql.lang.PgqlException
Date
getLegacyDate
in interface oracle.pgql.lang.ResultAccess
elementName
- element nameDate
oracle.pgql.lang.PgqlException
public <T> java.util.List<T> getList(int elementIdx) throws oracle.pgql.lang.PgqlException
List
getList
in interface oracle.pgql.lang.ResultAccess
elementIdx
- element indexList
oracle.pgql.lang.PgqlException
public <T> java.util.List<T> getList(java.lang.String elementName) throws oracle.pgql.lang.PgqlException
List
getList
in interface oracle.pgql.lang.ResultAccess
elementName
- element nameList
oracle.pgql.lang.PgqlException
public java.lang.Long getLong(int elementIdx) throws oracle.pgql.lang.PgqlException
Long
getLong
in interface oracle.pgql.lang.ResultAccess
elementIdx
- element indexLong
oracle.pgql.lang.PgqlException
public java.lang.Long getLong(java.lang.String elementName) throws oracle.pgql.lang.PgqlException
Long
getLong
in interface oracle.pgql.lang.ResultAccess
elementName
- element nameLong
oracle.pgql.lang.PgqlException
public oracle.pgql.lang.ResultSetMetaData getMetaData()
ResultSet
object's columns.getMetaData
in interface oracle.pgql.lang.ResultSet
ResultSet
object's columnspublic java.lang.Object getObject(int elementIdx) throws oracle.pgql.lang.PgqlException
Object
getObject
in interface oracle.pgql.lang.ResultAccess
elementIdx
- element indexObject
oracle.pgql.lang.PgqlException
public java.lang.Object getObject(java.lang.String elementName) throws oracle.pgql.lang.PgqlException
Object
getObject
in interface oracle.pgql.lang.ResultAccess
elementName
- element nameObject
oracle.pgql.lang.PgqlException
public java.lang.String getString(int elementIdx) throws oracle.pgql.lang.PgqlException
String
getString
in interface oracle.pgql.lang.ResultAccess
elementIdx
- element indexString
oracle.pgql.lang.PgqlException
public java.lang.String getString(java.lang.String elementName) throws oracle.pgql.lang.PgqlException
String
getString
in interface oracle.pgql.lang.ResultAccess
elementName
- element nameString
oracle.pgql.lang.PgqlException
public java.time.LocalTime getTime(int elementIdx) throws oracle.pgql.lang.PgqlException
LocalTime
getTime
in interface oracle.pgql.lang.ResultAccess
elementIdx
- element indexLocalTime
oracle.pgql.lang.PgqlException
public java.time.LocalTime getTime(java.lang.String elementName) throws oracle.pgql.lang.PgqlException
LocalTime
getTime
in interface oracle.pgql.lang.ResultAccess
elementName
- element nameLocalTime
oracle.pgql.lang.PgqlException
public java.time.LocalDateTime getTimestamp(int elementIdx) throws oracle.pgql.lang.PgqlException
LocalDateTime
getTimestamp
in interface oracle.pgql.lang.ResultAccess
elementIdx
- element indexLocalDateTime
oracle.pgql.lang.PgqlException
public java.time.LocalDateTime getTimestamp(java.lang.String elementName) throws oracle.pgql.lang.PgqlException
LocalDateTime
getTimestamp
in interface oracle.pgql.lang.ResultAccess
elementName
- element nameLocalDateTime
oracle.pgql.lang.PgqlException
public java.time.OffsetDateTime getTimestampWithTimezone(int elementIdx) throws oracle.pgql.lang.PgqlException
OffsetDateTime
getTimestampWithTimezone
in interface oracle.pgql.lang.ResultAccess
elementIdx
- element indexOffsetDateTime
oracle.pgql.lang.PgqlException
public java.time.OffsetDateTime getTimestampWithTimezone(java.lang.String elementName) throws oracle.pgql.lang.PgqlException
OffsetDateTime
getTimestampWithTimezone
in interface oracle.pgql.lang.ResultAccess
elementName
- element nameOffsetDateTime
oracle.pgql.lang.PgqlException
public java.time.OffsetTime getTimeWithTimezone(int elementIdx) throws oracle.pgql.lang.PgqlException
OffsetTime
getTimeWithTimezone
in interface oracle.pgql.lang.ResultAccess
elementIdx
- element indexOffsetTime
oracle.pgql.lang.PgqlException
public java.time.OffsetTime getTimeWithTimezone(java.lang.String elementName) throws oracle.pgql.lang.PgqlException
OffsetTime
getTimeWithTimezone
in interface oracle.pgql.lang.ResultAccess
elementName
- element nameOffsetTime
oracle.pgql.lang.PgqlException
public int getValueType(int elementIdx) throws oracle.pgql.lang.PgqlException
getValueType
in interface PgqlResultSet
elementIdx
- element indexoracle.pgql.lang.PgqlException
- when an error occurs while retrieving
the value typepublic int getValueType(java.lang.String elementName) throws oracle.pgql.lang.PgqlException
getValueType
in interface PgqlResultSet
elementName
- element nameoracle.pgql.lang.PgqlException
- when an error occurs while retrieving
the value typepublic java.util.Set<java.lang.String> getVertexLabels(int elementIdx) throws oracle.pgql.lang.PgqlException
getVertexLabels
in interface oracle.pgql.lang.ResultAccess
elementIdx
- element indexoracle.pgql.lang.PgqlException
public java.util.Set<java.lang.String> getVertexLabels(java.lang.String elementName) throws oracle.pgql.lang.PgqlException
getVertexLabels
in interface oracle.pgql.lang.ResultAccess
elementName
- element nameoracle.pgql.lang.PgqlException
public java.util.Iterator<PgqlResultSet> iterator()
iterator
in interface java.lang.Iterable
public boolean last() throws oracle.pgql.lang.PgqlException
last
in interface oracle.pgql.lang.ResultSet
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
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
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 PgqlResultSet
PgqlResultSet
public 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 PgqlResultSet
printStream
- stream to which results are printednumResults
- number of resultsfrom
- first result to be printed (start counting from 0)PgqlResultSet
public boolean relative(long rows) throws oracle.pgql.lang.PgqlException
relative
in interface oracle.pgql.lang.ResultSet
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 setCopyright © 2015 - 2020 Oracle and/or its affiliates. All Rights Reserved.