Class PgViewResultSet
java.lang.Object
oracle.pg.rdbms.pgql.PgqlResultSetImpl
oracle.pg.rdbms.pgql.pgview.PgViewResultSet
- All Implemented Interfaces:
AutoCloseable, Iterable<oracle.pgql.lang.ResultAccess>, PgqlResultSet, oracle.pgql.lang.ResultAccess, oracle.pgql.lang.ResultSet<oracle.pgql.lang.ResultAccess>
public class PgViewResultSet
extends oracle.pg.rdbms.pgql.PgqlResultSetImpl
This class provides a ResultSet for a PGQL query execution. It uses a JDBC-style
ResultSet approach for consuming the query result.
-
Constructor Summary
ConstructorsConstructorDescriptionPgViewResultSet(ResultSet rs, Statement stmt, int fetchSize, oracle.pg.rdbms.pgql.QueryContext ctx, PgqlExecution ope, long id, boolean closeStatement) Constructor -
Method Summary
Modifier and TypeMethodDescriptiongetBoolean(int elementIdx) Gets the value of the designated element by element index as aBooleangetBoolean(String elementName) Gets the value of the designated element by element name as aBooleangetDate(int columnIdx) Retrieves the value of the designated column in the current row as aLocalDateRetrieves the value of the designated column in the current row as aLocalDategetDouble(int elementIdx) Gets the value of the designated element by element index as aDoubleGets the value of the designated element by element name as aDoublegetFloat(int elementIdx) Gets the value of the designated element by element index as aFloatGets the value of the designated element by element name as aFloatgetInteger(int elementIdx) Gets the value of the designated element by element index as anIntegergetInteger(String elementName) Gets the value of the designated element by element name as anIntegergetLong(int elementIdx) Gets the value of the designated element by element index as aLongGets the value of the designated element by element name as aLongoracle.pgql.lang.ResultSetMetaDataRetrieves the number and properties of thisResultSetobject's columns.getObject(int elementIdx) Gets the value of the designated element by element name as anObjectGets the value of the designated element by element name as anObjectgetString(int elementIdx) Gets the value of the designated element by element index as aStringGets the value of the designated element by element name as aStringgetTime(int columnIdx) Retrieves the value of the designated column in the current row as aLocalTimeRetrieves the value of the designated column in the current row as aLocalTimegetTimestamp(int columnIdx) Retrieves the value of the designated column in the current row as aLocalDateTimegetTimestamp(String columnName) Retrieves the value of the designated column in the current row as aLocalDateTimegetTimestampWithTimezone(int elementIdx) Gets the value of the designated element by element index as anOffsetDateTimegetTimestampWithTimezone(String elementName) Gets the value of the designated element by element name as anOffsetDateTimegetTimeWithTimezone(int columnIdx) Retrieves the value of the designated column in the current row as anOffsetTimegetTimeWithTimezone(String columnName) Retrieves the value of the designated column in the current row as anOffsetTimeintgetValueType(int elementIdx) Returns the type of value for the given element.intgetValueType(String elementName) Returns the type of value for the given element.Methods inherited from class oracle.pg.rdbms.pgql.PgqlResultSetImpl
absolute, afterLast, beforeFirst, close, first, getLegacyDate, getLegacyDate, getList, getList, getVertexLabels, getVertexLabels, iterator, last, next, previous, print, print, relativeMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterable
forEach, spliteratorMethods inherited from interface PgqlResultSet
print, print
-
Constructor Details
-
PgViewResultSet
public PgViewResultSet(ResultSet rs, Statement stmt, int fetchSize, oracle.pg.rdbms.pgql.QueryContext ctx, PgqlExecution ope, long id, boolean closeStatement) throws SQLException Constructor- Parameters:
rs- JDBC ResultSet object for the SQL translation of this PGQL querystmt- JDBC Statement used to create this result setfetchSize- the fetch size to use for the result setctx- the context for this query (flags, etc.)ope- the PgqlExecution object that generated this result setid- the id for this result setcloseStatement- true if JDBC Statement should be closed in close method, false otherwise- Throws:
SQLException- if a database access error occurs
-
-
Method Details
-
getMetaData
public oracle.pgql.lang.ResultSetMetaData getMetaData()Retrieves the number and properties of thisResultSetobject's columns.- Returns:
- the description of this
ResultSetobject's columns
-
getObject
-
getObject
-
getString
-
getString
-
getInteger
-
getInteger
-
getLong
-
getLong
-
getFloat
-
getFloat
-
getDouble
-
getDouble
-
getBoolean
-
getBoolean
-
getDate
Retrieves the value of the designated column in the current row as aLocalDate- Specified by:
getDatein interfaceoracle.pgql.lang.ResultAccess- Overrides:
getDatein classoracle.pg.rdbms.pgql.PgqlResultSetImpl- Parameters:
columnIdx- column index- Returns:
LocalDate- Throws:
oracle.pgql.lang.PgqlException
-
getDate
Retrieves the value of the designated column in the current row as aLocalDate- Specified by:
getDatein interfaceoracle.pgql.lang.ResultAccess- Overrides:
getDatein classoracle.pg.rdbms.pgql.PgqlResultSetImpl- Parameters:
columnName- column name- Returns:
LocalDate- Throws:
oracle.pgql.lang.PgqlException
-
getTime
Retrieves the value of the designated column in the current row as aLocalTime- Specified by:
getTimein interfaceoracle.pgql.lang.ResultAccess- Overrides:
getTimein classoracle.pg.rdbms.pgql.PgqlResultSetImpl- Parameters:
columnIdx- column index- Returns:
LocalTime- Throws:
oracle.pgql.lang.PgqlException
-
getTime
Retrieves the value of the designated column in the current row as aLocalTime- Specified by:
getTimein interfaceoracle.pgql.lang.ResultAccess- Overrides:
getTimein classoracle.pg.rdbms.pgql.PgqlResultSetImpl- Parameters:
columnName- column name- Returns:
LocalTime- Throws:
oracle.pgql.lang.PgqlException
-
getTimestamp
Retrieves the value of the designated column in the current row as aLocalDateTime- Specified by:
getTimestampin interfaceoracle.pgql.lang.ResultAccess- Overrides:
getTimestampin classoracle.pg.rdbms.pgql.PgqlResultSetImpl- Parameters:
columnIdx- column index- Returns:
LocalDateTime- Throws:
oracle.pgql.lang.PgqlException
-
getTimestamp
Retrieves the value of the designated column in the current row as aLocalDateTime- Specified by:
getTimestampin interfaceoracle.pgql.lang.ResultAccess- Overrides:
getTimestampin classoracle.pg.rdbms.pgql.PgqlResultSetImpl- Parameters:
columnName- column name- Returns:
LocalDateTime- Throws:
oracle.pgql.lang.PgqlException
-
getTimeWithTimezone
Retrieves the value of the designated column in the current row as anOffsetTime- Specified by:
getTimeWithTimezonein interfaceoracle.pgql.lang.ResultAccess- Overrides:
getTimeWithTimezonein classoracle.pg.rdbms.pgql.PgqlResultSetImpl- Parameters:
columnIdx- column index- Returns:
OffsetTime- Throws:
oracle.pgql.lang.PgqlException
-
getTimeWithTimezone
Retrieves the value of the designated column in the current row as anOffsetTime- Specified by:
getTimeWithTimezonein interfaceoracle.pgql.lang.ResultAccess- Overrides:
getTimeWithTimezonein classoracle.pg.rdbms.pgql.PgqlResultSetImpl- Parameters:
columnName- column name- Returns:
OffsetTime- Throws:
oracle.pgql.lang.PgqlException
-
getTimestampWithTimezone
public OffsetDateTime getTimestampWithTimezone(int elementIdx) throws oracle.pgql.lang.PgqlException Gets the value of the designated element by element index as anOffsetDateTime- Specified by:
getTimestampWithTimezonein interfaceoracle.pgql.lang.ResultAccess- Overrides:
getTimestampWithTimezonein classoracle.pg.rdbms.pgql.PgqlResultSetImpl- Parameters:
elementIdx- element index- Returns:
OffsetDateTime- Throws:
oracle.pgql.lang.PgqlException
-
getTimestampWithTimezone
public OffsetDateTime getTimestampWithTimezone(String elementName) throws oracle.pgql.lang.PgqlException Gets the value of the designated element by element name as anOffsetDateTime- Parameters:
elementName- element name- Returns:
OffsetDateTime- Throws:
oracle.pgql.lang.PgqlException
-
getValueType
public int getValueType(int elementIdx) throws oracle.pgql.lang.PgqlException Description copied from interface:PgqlResultSetReturns the type of value for the given element. The returned values correspond to values in the T column of the PG relational schema.- Parameters:
elementIdx- element index- Returns:
- the type of value
- Throws:
oracle.pgql.lang.PgqlException- when an error occurs while retrieving the value type
-
getValueType
Description copied from interface:PgqlResultSetReturns the type of value for the given element. The returned values correspond to values in the T column of the PG relational schema.- Parameters:
elementName- element name- Returns:
- the type of value
- Throws:
oracle.pgql.lang.PgqlException- when an error occurs while retrieving the value type
-