Package oracle.pgx.api
Class ResultImpl
- java.lang.Object
-
- oracle.pgx.api.ResultImpl
-
- All Implemented Interfaces:
oracle.pgql.lang.ResultAccess
,oracle.pgql.lang.spatial.STResultAccess
,PgxResult
public class ResultImpl extends java.lang.Object implements PgxResult
A result of a pattern matching query. The get methods can be used to access column values of the current result row. Just like the SQL ResultSet, columns are numbered from 1.
-
-
Constructor Summary
Constructors Constructor Description ResultImpl(oracle.pgx.api.internal.PgqlResultSetImpl resultSet, java.util.List<java.lang.Object> rawResult)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Boolean
getBoolean(int elementIdx)
Gets the value of the designated element by element index as aBoolean
java.lang.Boolean
getBoolean(java.lang.String elementName)
Gets the value of the designated element by element name as aBoolean
java.time.LocalDate
getDate(int elementIdx)
Gets the value of the designated element by element index as aLocalDate
java.time.LocalDate
getDate(java.lang.String elementName)
Gets the value of the designated element by element name as aLocalDate
java.lang.Double
getDouble(int elementIdx)
Gets the value of the designated element by element index as aDouble
java.lang.Double
getDouble(java.lang.String elementName)
Gets the value of the designated element by element name as aDouble
PgxEdge
getEdge(int elementIdx)
Gets the value of the designated element by element index as aPgxEdge
PgxEdge
getEdge(java.lang.String elementName)
Gets the value of the designated element by element name as aPgxEdge
java.lang.Float
getFloat(int elementIdx)
Gets the value of the designated element by element index as aFloat
java.lang.Float
getFloat(java.lang.String elementName)
Gets the value of the designated element by element name as aFloat
java.lang.Integer
getInteger(int elementIdx)
Gets the value of the designated element by element index as anInteger
java.lang.Integer
getInteger(java.lang.String elementName)
Gets the value of the designated element by element name as anInteger
java.util.Date
getLegacyDate(int elementIdx)
Gets the value of the designated element by element index as aDate
java.util.Date
getLegacyDate(java.lang.String elementName)
Gets the value of the designated element by element name as aDate
<T> java.util.List<T>
getList(int elementIdx)
Gets the value of the designated element by element index as anList
<T> java.util.List<T>
getList(java.lang.String elementName)
Gets the value of the designated element by element index as anList
java.lang.Long
getLong(int elementIdx)
Gets the value of the designated element by element index as aLong
java.lang.Long
getLong(java.lang.String elementName)
Gets the value of the designated element by element name as aLong
java.lang.Object
getObject(int elementIdx)
Gets the value of the designated element by element index as anObject
java.lang.Object
getObject(java.lang.String elementName)
Gets the value of the designated element by element index as anObject
oracle.pgql.lang.spatial.Point2D
getPoint2D(int elementIdx)
Gets the value of the designated element by element index as aPoint2D
oracle.pgql.lang.spatial.Point2D
getPoint2D(java.lang.String elementName)
Gets the value of the designated element by element name as aPoint2D
java.lang.String
getString(int elementIdx)
Gets the value of the designated element by element index as aString
java.lang.String
getString(java.lang.String elementName)
Gets the value of the designated element by element name as aString
java.time.LocalTime
getTime(int elementIdx)
Gets the value of the designated element by element index as aLocalTime
java.time.LocalTime
getTime(java.lang.String elementName)
Gets the value of the designated element by element name as aLocalTime
java.time.LocalDateTime
getTimestamp(int elementIdx)
Gets the value of the designated element by element index as aLocalDateTime
java.time.LocalDateTime
getTimestamp(java.lang.String elementName)
Gets the value of the designated element by element name as aLocalDateTime
java.time.OffsetDateTime
getTimestampWithTimezone(int elementIdx)
Gets the value of the designated element by element index as aOffsetDateTime
java.time.OffsetDateTime
getTimestampWithTimezone(java.lang.String elementName)
Gets the value of the designated element by element name as aOffsetDateTime
java.time.OffsetTime
getTimeWithTimezone(int elementIdx)
Gets the value of the designated element by element index as aOffsetTime
java.time.OffsetTime
getTimeWithTimezone(java.lang.String elementName)
Gets the value of the designated element by element name as aOffsetTime
<ID extends java.lang.Comparable<ID>>
PgxVertex<ID>getVertex(int elementIdx)
Gets the value of the designated element by element index as aPgxVertex
<ID extends java.lang.Comparable<ID>>
PgxVertex<ID>getVertex(java.lang.String elementName)
Gets the value of the designated element by element name as aPgxVertex
java.util.Set<java.lang.String>
getVertexLabels(int elementIdx)
Gets the value of the designated element by element index as vertex labelsjava.util.Set<java.lang.String>
getVertexLabels(java.lang.String elementName)
Gets the value of the designated element by element name as vertex labels
-
-
-
Method Detail
-
getList
public <T> java.util.List<T> getList(int elementIdx) throws oracle.pgql.lang.PgqlException
Gets the value of the designated element by element index as anList
- Specified by:
getList
in interfaceoracle.pgql.lang.ResultAccess
- Parameters:
elementIdx
- element index- Returns:
List
- Throws:
oracle.pgql.lang.PgqlException
- if the elementIdx in invalid; if this function is called on a closed result set or if a connection error occurs
-
getList
public <T> java.util.List<T> getList(java.lang.String elementName) throws oracle.pgql.lang.PgqlException
Gets the value of the designated element by element index as anList
- Specified by:
getList
in interfaceoracle.pgql.lang.ResultAccess
- Parameters:
elementName
- element index- Returns:
List
- Throws:
oracle.pgql.lang.PgqlException
- if the elementIdx in invalid; if this function is called on a closed result set or if a connection error occurs
-
getObject
public java.lang.Object getObject(int elementIdx) throws oracle.pgql.lang.PgqlException
Gets the value of the designated element by element index as anObject
- Specified by:
getObject
in interfaceoracle.pgql.lang.ResultAccess
- Parameters:
elementIdx
- element index- Returns:
Object
- Throws:
oracle.pgql.lang.PgqlException
- if the elementIdx in invalid; if this function is called on a closed result set or if a connection error occurs
-
getObject
public java.lang.Object getObject(java.lang.String elementName) throws oracle.pgql.lang.PgqlException
Gets the value of the designated element by element index as anObject
- Specified by:
getObject
in interfaceoracle.pgql.lang.ResultAccess
- Parameters:
elementName
- element index- Returns:
Object
- Throws:
oracle.pgql.lang.PgqlException
- if the elementIdx in invalid; if this function is called on a closed result set or if a connection error occurs
-
getString
public java.lang.String getString(int elementIdx) throws oracle.pgql.lang.PgqlException
Gets the value of the designated element by element index as aString
- Specified by:
getString
in interfaceoracle.pgql.lang.ResultAccess
- Parameters:
elementIdx
- element index- Returns:
String
- Throws:
oracle.pgql.lang.PgqlException
- if the elementIdx in invalid; if this function is called on a closed result set or if a connection error occurs
-
getString
public java.lang.String getString(java.lang.String elementName) throws oracle.pgql.lang.PgqlException
Gets the value of the designated element by element name as aString
- Specified by:
getString
in interfaceoracle.pgql.lang.ResultAccess
- Parameters:
elementName
- element name- Returns:
String
- Throws:
oracle.pgql.lang.PgqlException
- if the elementName in invalid; if this function is called on a closed result set or if a connection error occurs
-
getInteger
public java.lang.Integer getInteger(int elementIdx) throws oracle.pgql.lang.PgqlException
Gets the value of the designated element by element index as anInteger
- Specified by:
getInteger
in interfaceoracle.pgql.lang.ResultAccess
- Parameters:
elementIdx
- element index- Returns:
Integer
- Throws:
oracle.pgql.lang.PgqlException
- if the elementIdx in invalid, if this function is called on a closed result set or if a connection error occurs
-
getInteger
public java.lang.Integer getInteger(java.lang.String elementName) throws oracle.pgql.lang.PgqlException
Gets the value of the designated element by element name as anInteger
- Specified by:
getInteger
in interfaceoracle.pgql.lang.ResultAccess
- Parameters:
elementName
- element name- Returns:
Integer
- Throws:
oracle.pgql.lang.PgqlException
- if the elementName in invalid; if this function is called on a closed result set or if a connection error occurs
-
getLong
public java.lang.Long getLong(int elementIdx) throws oracle.pgql.lang.PgqlException
Gets the value of the designated element by element index as aLong
- Specified by:
getLong
in interfaceoracle.pgql.lang.ResultAccess
- Parameters:
elementIdx
- element index- Returns:
Long
- Throws:
oracle.pgql.lang.PgqlException
- if the elementIdx in invalid; if this function is called on a closed result set or if a connection error occurs
-
getLong
public java.lang.Long getLong(java.lang.String elementName) throws oracle.pgql.lang.PgqlException
Gets the value of the designated element by element name as aLong
- Specified by:
getLong
in interfaceoracle.pgql.lang.ResultAccess
- Parameters:
elementName
- element name- Returns:
Long
- Throws:
oracle.pgql.lang.PgqlException
- if the elementName in invalid; if this function is called on a closed result set or if a connection error occurs
-
getFloat
public java.lang.Float getFloat(int elementIdx) throws oracle.pgql.lang.PgqlException
Gets the value of the designated element by element index as aFloat
- Specified by:
getFloat
in interfaceoracle.pgql.lang.ResultAccess
- Parameters:
elementIdx
- element index- Returns:
Float
- Throws:
oracle.pgql.lang.PgqlException
- if the elementIdx in invalid; if this function is called on a closed result set or if a connection error occurs
-
getFloat
public java.lang.Float getFloat(java.lang.String elementName) throws oracle.pgql.lang.PgqlException
Gets the value of the designated element by element name as aFloat
- Specified by:
getFloat
in interfaceoracle.pgql.lang.ResultAccess
- Parameters:
elementName
- element name- Returns:
Float
- Throws:
oracle.pgql.lang.PgqlException
- if the elementName in invalid; if this function is called on a closed result set or if a connection error occurs
-
getDouble
public java.lang.Double getDouble(int elementIdx) throws oracle.pgql.lang.PgqlException
Gets the value of the designated element by element index as aDouble
- Specified by:
getDouble
in interfaceoracle.pgql.lang.ResultAccess
- Parameters:
elementIdx
- element index- Returns:
Double
- Throws:
oracle.pgql.lang.PgqlException
- if the elementIdx in invalid; if this function is called on a closed result set or if a connection error occurs
-
getDouble
public java.lang.Double getDouble(java.lang.String elementName) throws oracle.pgql.lang.PgqlException
Gets the value of the designated element by element name as aDouble
- Specified by:
getDouble
in interfaceoracle.pgql.lang.ResultAccess
- Parameters:
elementName
- element name- Returns:
Double
- Throws:
oracle.pgql.lang.PgqlException
- if the elementName in invalid; if this function is called on a closed result set or if a connection error occurs
-
getBoolean
public java.lang.Boolean getBoolean(int elementIdx) throws oracle.pgql.lang.PgqlException
Gets the value of the designated element by element index as aBoolean
- Specified by:
getBoolean
in interfaceoracle.pgql.lang.ResultAccess
- Parameters:
elementIdx
- element index- Returns:
Boolean
- Throws:
oracle.pgql.lang.PgqlException
- if the elementIdx in invalid; if this function is called on a closed result set or if a connection error occurs
-
getBoolean
public java.lang.Boolean getBoolean(java.lang.String elementName) throws oracle.pgql.lang.PgqlException
Gets the value of the designated element by element name as aBoolean
- Specified by:
getBoolean
in interfaceoracle.pgql.lang.ResultAccess
- Parameters:
elementName
- element name- Returns:
Boolean
- Throws:
oracle.pgql.lang.PgqlException
- if the elementName in invalid; if this function is called on a closed result set or if a connection error occurs
-
getVertexLabels
public java.util.Set<java.lang.String> getVertexLabels(int elementIdx) throws oracle.pgql.lang.PgqlException
Gets the value of the designated element by element index as vertex labels- Specified by:
getVertexLabels
in interfaceoracle.pgql.lang.ResultAccess
- Parameters:
elementIdx
- element index- Returns:
- vertex labels
- Throws:
oracle.pgql.lang.PgqlException
- if the elementIdx in invalid; if this function is called on a closed result set or if a connection error occurs
-
getVertexLabels
public java.util.Set<java.lang.String> getVertexLabels(java.lang.String elementName) throws oracle.pgql.lang.PgqlException
Gets the value of the designated element by element name as vertex labels- Specified by:
getVertexLabels
in interfaceoracle.pgql.lang.ResultAccess
- Parameters:
elementName
- element name- Returns:
- vertex labels
- Throws:
oracle.pgql.lang.PgqlException
- if the elementName in invalid; if this function is called on a closed result set or if a connection error occurs
-
getDate
public java.time.LocalDate getDate(int elementIdx) throws oracle.pgql.lang.PgqlException
Gets the value of the designated element by element index as aLocalDate
- Specified by:
getDate
in interfaceoracle.pgql.lang.ResultAccess
- Parameters:
elementIdx
- element index- Returns:
LocalDate
- Throws:
oracle.pgql.lang.PgqlException
- if the elementIdx in invalid; if this function is called on a closed result set or if a connection error occurs
-
getDate
public java.time.LocalDate getDate(java.lang.String elementName) throws oracle.pgql.lang.PgqlException
Gets the value of the designated element by element name as aLocalDate
- Specified by:
getDate
in interfaceoracle.pgql.lang.ResultAccess
- Parameters:
elementName
- element name- Returns:
LocalDate
- Throws:
oracle.pgql.lang.PgqlException
- if the elementName in invalid; if this function is called on a closed result set or if a connection error occurs
-
getTime
public java.time.LocalTime getTime(int elementIdx) throws oracle.pgql.lang.PgqlException
Gets the value of the designated element by element index as aLocalTime
- Specified by:
getTime
in interfaceoracle.pgql.lang.ResultAccess
- Parameters:
elementIdx
- element index- Returns:
LocalTime
- Throws:
oracle.pgql.lang.PgqlException
- if the elementIdx in invalid; if this function is called on a closed result set or if a connection error occurs
-
getTime
public java.time.LocalTime getTime(java.lang.String elementName) throws oracle.pgql.lang.PgqlException
Gets the value of the designated element by element name as aLocalTime
- Specified by:
getTime
in interfaceoracle.pgql.lang.ResultAccess
- Parameters:
elementName
- element name- Returns:
LocalTime
- Throws:
oracle.pgql.lang.PgqlException
- if the elementName in invalid; if this function is called on a closed result set or if a connection error occurs
-
getTimestamp
public java.time.LocalDateTime getTimestamp(int elementIdx) throws oracle.pgql.lang.PgqlException
Gets the value of the designated element by element index as aLocalDateTime
- Specified by:
getTimestamp
in interfaceoracle.pgql.lang.ResultAccess
- Parameters:
elementIdx
- element index- Returns:
LocalDateTime
- Throws:
oracle.pgql.lang.PgqlException
- if the elementIdx in invalid; if this function is called on a closed result set or if a connection error occurs
-
getTimestamp
public java.time.LocalDateTime getTimestamp(java.lang.String elementName) throws oracle.pgql.lang.PgqlException
Gets the value of the designated element by element name as aLocalDateTime
- Specified by:
getTimestamp
in interfaceoracle.pgql.lang.ResultAccess
- Parameters:
elementName
- element name- Returns:
LocalDateTime
- Throws:
oracle.pgql.lang.PgqlException
- if the elementName in invalid; if this function is called on a closed result set or if a connection error occurs
-
getTimeWithTimezone
public java.time.OffsetTime getTimeWithTimezone(int elementIdx) throws oracle.pgql.lang.PgqlException
Gets the value of the designated element by element index as aOffsetTime
- Specified by:
getTimeWithTimezone
in interfaceoracle.pgql.lang.ResultAccess
- Parameters:
elementIdx
- element index- Returns:
OffsetTime
- Throws:
oracle.pgql.lang.PgqlException
- if the elementIdx in invalid; if this function is called on a closed result set or if a connection error occurs
-
getTimeWithTimezone
public java.time.OffsetTime getTimeWithTimezone(java.lang.String elementName) throws oracle.pgql.lang.PgqlException
Gets the value of the designated element by element name as aOffsetTime
- Specified by:
getTimeWithTimezone
in interfaceoracle.pgql.lang.ResultAccess
- Parameters:
elementName
- element name- Returns:
OffsetTime
- Throws:
oracle.pgql.lang.PgqlException
- if the elementName in invalid; if this function is called on a closed result set or if a connection error occurs
-
getTimestampWithTimezone
public java.time.OffsetDateTime getTimestampWithTimezone(int elementIdx) throws oracle.pgql.lang.PgqlException
Gets the value of the designated element by element index as aOffsetDateTime
- Specified by:
getTimestampWithTimezone
in interfaceoracle.pgql.lang.ResultAccess
- Parameters:
elementIdx
- element index- Returns:
OffsetDateTime
- Throws:
oracle.pgql.lang.PgqlException
- if the elementIdx in invalid; if this function is called on a closed result set or if a connection error occurs
-
getTimestampWithTimezone
public java.time.OffsetDateTime getTimestampWithTimezone(java.lang.String elementName) throws oracle.pgql.lang.PgqlException
Gets the value of the designated element by element name as aOffsetDateTime
- Specified by:
getTimestampWithTimezone
in interfaceoracle.pgql.lang.ResultAccess
- Parameters:
elementName
- element name- Returns:
OffsetDateTime
- Throws:
oracle.pgql.lang.PgqlException
- if the elementName in invalid; if this function is called on a closed result set or if a connection error occurs
-
getLegacyDate
public java.util.Date getLegacyDate(int elementIdx) throws oracle.pgql.lang.PgqlException
Gets the value of the designated element by element index as aDate
- Specified by:
getLegacyDate
in interfaceoracle.pgql.lang.ResultAccess
- Parameters:
elementIdx
- element index- Returns:
Date
- Throws:
oracle.pgql.lang.PgqlException
- if the elementIdx in invalid; if this function is called on a closed result set or if a connection error occurs
-
getLegacyDate
public java.util.Date getLegacyDate(java.lang.String elementName) throws oracle.pgql.lang.PgqlException
Gets the value of the designated element by element name as aDate
- Specified by:
getLegacyDate
in interfaceoracle.pgql.lang.ResultAccess
- Parameters:
elementName
- element name- Returns:
Date
- Throws:
oracle.pgql.lang.PgqlException
- if the elementName in invalid; if this function is called on a closed result set or if a connection error occurs
-
getPoint2D
public oracle.pgql.lang.spatial.Point2D getPoint2D(int elementIdx) throws oracle.pgql.lang.PgqlException
Gets the value of the designated element by element index as aPoint2D
- Specified by:
getPoint2D
in interfaceoracle.pgql.lang.spatial.STResultAccess
- Parameters:
elementIdx
- element index- Returns:
Point2D
- Throws:
oracle.pgql.lang.PgqlException
- if the elementIdx in invalid; if this function is called on a closed result set or if a connection error occurs
-
getPoint2D
public oracle.pgql.lang.spatial.Point2D getPoint2D(java.lang.String elementName) throws oracle.pgql.lang.PgqlException
Gets the value of the designated element by element name as aPoint2D
- Specified by:
getPoint2D
in interfaceoracle.pgql.lang.spatial.STResultAccess
- Parameters:
elementName
- element name- Returns:
Point2D
- Throws:
oracle.pgql.lang.PgqlException
- if the elementName in invalid; if this function is called on a closed result set or if a connection error occurs
-
getEdge
public PgxEdge getEdge(int elementIdx) throws oracle.pgql.lang.PgqlException
Gets the value of the designated element by element index as aPgxEdge
-
getEdge
public PgxEdge getEdge(java.lang.String elementName) throws oracle.pgql.lang.PgqlException
Gets the value of the designated element by element name as aPgxEdge
-
getVertex
public <ID extends java.lang.Comparable<ID>> PgxVertex<ID> getVertex(int elementIdx) throws oracle.pgql.lang.PgqlException
Gets the value of the designated element by element index as aPgxVertex
-
-