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.BooleangetBoolean(int elementIdx)Gets the value of the designated element by element index as aBooleanjava.lang.BooleangetBoolean(java.lang.String elementName)Gets the value of the designated element by element name as aBooleanjava.time.LocalDategetDate(int elementIdx)Gets the value of the designated element by element index as aLocalDatejava.time.LocalDategetDate(java.lang.String elementName)Gets the value of the designated element by element name as aLocalDatejava.lang.DoublegetDouble(int elementIdx)Gets the value of the designated element by element index as aDoublejava.lang.DoublegetDouble(java.lang.String elementName)Gets the value of the designated element by element name as aDoublePgxEdgegetEdge(int elementIdx)Gets the value of the designated element by element index as aPgxEdgePgxEdgegetEdge(java.lang.String elementName)Gets the value of the designated element by element name as aPgxEdgejava.lang.FloatgetFloat(int elementIdx)Gets the value of the designated element by element index as aFloatjava.lang.FloatgetFloat(java.lang.String elementName)Gets the value of the designated element by element name as aFloatjava.lang.IntegergetInteger(int elementIdx)Gets the value of the designated element by element index as anIntegerjava.lang.IntegergetInteger(java.lang.String elementName)Gets the value of the designated element by element name as anIntegerjava.util.DategetLegacyDate(int elementIdx)Gets the value of the designated element by element index as aDatejava.util.DategetLegacyDate(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 anListjava.lang.LonggetLong(int elementIdx)Gets the value of the designated element by element index as aLongjava.lang.LonggetLong(java.lang.String elementName)Gets the value of the designated element by element name as aLongjava.lang.ObjectgetObject(int elementIdx)Gets the value of the designated element by element index as anObjectjava.lang.ObjectgetObject(java.lang.String elementName)Gets the value of the designated element by element index as anObjectoracle.pgql.lang.spatial.Point2DgetPoint2D(int elementIdx)Gets the value of the designated element by element index as aPoint2Doracle.pgql.lang.spatial.Point2DgetPoint2D(java.lang.String elementName)Gets the value of the designated element by element name as aPoint2Djava.lang.StringgetString(int elementIdx)Gets the value of the designated element by element index as aStringjava.lang.StringgetString(java.lang.String elementName)Gets the value of the designated element by element name as aStringjava.time.LocalTimegetTime(int elementIdx)Gets the value of the designated element by element index as aLocalTimejava.time.LocalTimegetTime(java.lang.String elementName)Gets the value of the designated element by element name as aLocalTimejava.time.LocalDateTimegetTimestamp(int elementIdx)Gets the value of the designated element by element index as aLocalDateTimejava.time.LocalDateTimegetTimestamp(java.lang.String elementName)Gets the value of the designated element by element name as aLocalDateTimejava.time.OffsetDateTimegetTimestampWithTimezone(int elementIdx)Gets the value of the designated element by element index as aOffsetDateTimejava.time.OffsetDateTimegetTimestampWithTimezone(java.lang.String elementName)Gets the value of the designated element by element name as aOffsetDateTimejava.time.OffsetTimegetTimeWithTimezone(int elementIdx)Gets the value of the designated element by element index as aOffsetTimejava.time.OffsetTimegetTimeWithTimezone(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 aPgxVertexjava.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.PgqlExceptionGets the value of the designated element by element index as anList- Specified by:
getListin 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.PgqlExceptionGets the value of the designated element by element index as anList- Specified by:
getListin 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.PgqlExceptionGets the value of the designated element by element index as anObject- Specified by:
getObjectin 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.PgqlExceptionGets the value of the designated element by element index as anObject- Specified by:
getObjectin 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.PgqlExceptionGets the value of the designated element by element index as aString- Specified by:
getStringin 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.PgqlExceptionGets the value of the designated element by element name as aString- Specified by:
getStringin 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.PgqlExceptionGets the value of the designated element by element index as anInteger- Specified by:
getIntegerin 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.PgqlExceptionGets the value of the designated element by element name as anInteger- Specified by:
getIntegerin 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.PgqlExceptionGets the value of the designated element by element index as aLong- Specified by:
getLongin 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.PgqlExceptionGets the value of the designated element by element name as aLong- Specified by:
getLongin 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.PgqlExceptionGets the value of the designated element by element index as aFloat- Specified by:
getFloatin 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.PgqlExceptionGets the value of the designated element by element name as aFloat- Specified by:
getFloatin 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.PgqlExceptionGets the value of the designated element by element index as aDouble- Specified by:
getDoublein 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.PgqlExceptionGets the value of the designated element by element name as aDouble- Specified by:
getDoublein 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.PgqlExceptionGets the value of the designated element by element index as aBoolean- Specified by:
getBooleanin 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.PgqlExceptionGets the value of the designated element by element name as aBoolean- Specified by:
getBooleanin 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.PgqlExceptionGets the value of the designated element by element index as vertex labels- Specified by:
getVertexLabelsin 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.PgqlExceptionGets the value of the designated element by element name as vertex labels- Specified by:
getVertexLabelsin 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.PgqlExceptionGets the value of the designated element by element index as aLocalDate- Specified by:
getDatein 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.PgqlExceptionGets the value of the designated element by element name as aLocalDate- Specified by:
getDatein 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.PgqlExceptionGets the value of the designated element by element index as aLocalTime- Specified by:
getTimein 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.PgqlExceptionGets the value of the designated element by element name as aLocalTime- Specified by:
getTimein 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.PgqlExceptionGets the value of the designated element by element index as aLocalDateTime- Specified by:
getTimestampin 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.PgqlExceptionGets the value of the designated element by element name as aLocalDateTime- Specified by:
getTimestampin 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.PgqlExceptionGets the value of the designated element by element index as aOffsetTime- Specified by:
getTimeWithTimezonein 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.PgqlExceptionGets the value of the designated element by element name as aOffsetTime- Specified by:
getTimeWithTimezonein 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.PgqlExceptionGets the value of the designated element by element index as aOffsetDateTime- Specified by:
getTimestampWithTimezonein 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.PgqlExceptionGets the value of the designated element by element name as aOffsetDateTime- Specified by:
getTimestampWithTimezonein 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.PgqlExceptionGets the value of the designated element by element index as aDate- Specified by:
getLegacyDatein 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.PgqlExceptionGets the value of the designated element by element name as aDate- Specified by:
getLegacyDatein 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.PgqlExceptionGets the value of the designated element by element index as aPoint2D- Specified by:
getPoint2Din 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.PgqlExceptionGets the value of the designated element by element name as aPoint2D- Specified by:
getPoint2Din 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
-
-