Class 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 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
      PgxEdge getEdge​(int elementIdx)
      Gets the value of the designated element by element index as a PgxEdge
      PgxEdge getEdge​(java.lang.String elementName)
      Gets the value of the designated element by element name as a PgxEdge
      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 an List
      <T> java.util.List<T> getList​(java.lang.String elementName)
      Gets the value of the designated element by element index as an 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
      java.lang.Object getObject​(int elementIdx)
      Gets the value of the designated element by element index as an Object
      java.lang.Object getObject​(java.lang.String elementName)
      Gets the value of the designated element by element index as an Object
      oracle.pgql.lang.spatial.Point2D getPoint2D​(int elementIdx)
      Gets the value of the designated element by element index as a Point2D
      oracle.pgql.lang.spatial.Point2D getPoint2D​(java.lang.String elementName)
      Gets the value of the designated element by element name as a Point2D
      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 a OffsetDateTime
      java.time.OffsetDateTime getTimestampWithTimezone​(java.lang.String elementName)
      Gets the value of the designated element by element name as a OffsetDateTime
      java.time.OffsetTime getTimeWithTimezone​(int elementIdx)
      Gets the value of the designated element by element index as a OffsetTime
      java.time.OffsetTime getTimeWithTimezone​(java.lang.String elementName)
      Gets the value of the designated element by element name as a OffsetTime
      <ID extends java.lang.Comparable<ID>>
      PgxVertex<ID>
      getVertex​(int elementIdx)
      Gets the value of the designated element by element index as a PgxVertex
      <ID extends java.lang.Comparable<ID>>
      PgxVertex<ID>
      getVertex​(java.lang.String elementName)
      Gets the value of the designated element by element name as a PgxVertex
      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
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ResultImpl

        public ResultImpl​(oracle.pgx.api.internal.PgqlResultSetImpl resultSet,
                          java.util.List<java.lang.Object> rawResult)
    • 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 an List
        Specified by:
        getList in interface oracle.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 an List
        Specified by:
        getList in interface oracle.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 an Object
        Specified by:
        getObject in interface oracle.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 an Object
        Specified by:
        getObject in interface oracle.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 a String
        Specified by:
        getString in interface oracle.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 a String
        Specified by:
        getString in interface oracle.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 an Integer
        Specified by:
        getInteger in interface oracle.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 an Integer
        Specified by:
        getInteger in interface oracle.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 a Long
        Specified by:
        getLong in interface oracle.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 a Long
        Specified by:
        getLong in interface oracle.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 a Float
        Specified by:
        getFloat in interface oracle.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 a Float
        Specified by:
        getFloat in interface oracle.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 a Double
        Specified by:
        getDouble in interface oracle.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 a Double
        Specified by:
        getDouble in interface oracle.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 a Boolean
        Specified by:
        getBoolean in interface oracle.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 a Boolean
        Specified by:
        getBoolean in interface oracle.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 interface oracle.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 interface oracle.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 a LocalDate
        Specified by:
        getDate in interface oracle.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 a LocalDate
        Specified by:
        getDate in interface oracle.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 a LocalTime
        Specified by:
        getTime in interface oracle.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 a LocalTime
        Specified by:
        getTime in interface oracle.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 a LocalDateTime
        Specified by:
        getTimestamp in interface oracle.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 a LocalDateTime
        Specified by:
        getTimestamp in interface oracle.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 a OffsetTime
        Specified by:
        getTimeWithTimezone in interface oracle.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 a OffsetTime
        Specified by:
        getTimeWithTimezone in interface oracle.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 a OffsetDateTime
        Specified by:
        getTimestampWithTimezone in interface oracle.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 a OffsetDateTime
        Specified by:
        getTimestampWithTimezone in interface oracle.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 a Date
        Specified by:
        getLegacyDate in interface oracle.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 a Date
        Specified by:
        getLegacyDate in interface oracle.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 a Point2D
        Specified by:
        getPoint2D in interface oracle.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 a Point2D
        Specified by:
        getPoint2D in interface oracle.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 a PgxEdge
        Specified by:
        getEdge in interface PgxResult
        Parameters:
        elementIdx - element index
        Returns:
        PgxEdge
        Throws:
        oracle.pgql.lang.PgqlException
      • getEdge

        public PgxEdge getEdge​(java.lang.String elementName)
                        throws oracle.pgql.lang.PgqlException
        Gets the value of the designated element by element name as a PgxEdge
        Specified by:
        getEdge in interface PgxResult
        Parameters:
        elementName - element name
        Returns:
        PgxEdge
        Throws:
        oracle.pgql.lang.PgqlException
      • 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 a PgxVertex
        Specified by:
        getVertex in interface PgxResult
        Parameters:
        elementIdx - element index
        Returns:
        PgxVertex
        Throws:
        oracle.pgql.lang.PgqlException
      • getVertex

        public <ID extends java.lang.Comparable<ID>> PgxVertex<ID> getVertex​(java.lang.String elementName)
                                                                      throws oracle.pgql.lang.PgqlException
        Gets the value of the designated element by element name as a PgxVertex
        Specified by:
        getVertex in interface PgxResult
        Parameters:
        elementName - element name
        Returns:
        PgxVertex
        Throws:
        oracle.pgql.lang.PgqlException