Package oracle.pg.rdbms.pgql
Interface PgqlResultSet
-
- All Superinterfaces:
java.lang.AutoCloseable,java.lang.Iterable<oracle.pgql.lang.ResultAccess>,oracle.pgql.lang.ResultAccess,oracle.pgql.lang.ResultSet<oracle.pgql.lang.ResultAccess>
- All Known Implementing Classes:
oracle.pg.rdbms.pgql.PgqlResultSetImpl,PgViewResultSet
public interface PgqlResultSet extends oracle.pgql.lang.ResultSet<oracle.pgql.lang.ResultAccess>This interface provides a ResultSet for a PGQL query execution. It extends the oracle.pgql.lang.ResultSet interface with methods to get meta data for the result set and also to determine the data type for a particular value.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidclose()Closes the underlying JDBC ResultSet and Statement.intgetValueType(int elementIdx)Returns the type of value for the given element.intgetValueType(java.lang.String elementName)Returns the type of value for the given element.PgqlResultSetprint()Prints all results toSystem.out.default PgqlResultSetprint(long numResults)PrintsnumResultsresults toSystem.out.default PgqlResultSetprint(long numResults, int from)PrintsnumResultsresults fromfromth result toSystem.out.PgqlResultSetprint(java.io.PrintStream printStream, long numResults, int from)Same asprint(long, int)except that this method prints content toprintStream.-
Methods inherited from interface oracle.pgql.lang.ResultAccess
getBoolean, getBoolean, getDate, getDate, getDouble, getDouble, getFloat, getFloat, getInteger, getInteger, getLegacyDate, getLegacyDate, getList, getList, getLong, getLong, getObject, getObject, getString, getString, getTime, getTime, getTimestamp, getTimestamp, getTimestampWithTimezone, getTimestampWithTimezone, getTimeWithTimezone, getTimeWithTimezone, getVertexLabels, getVertexLabels
-
-
-
-
Method Detail
-
getValueType
int getValueType(int elementIdx) throws oracle.pgql.lang.PgqlExceptionReturns 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
int getValueType(java.lang.String elementName) throws oracle.pgql.lang.PgqlExceptionReturns 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
-
close
void close() throws oracle.pgql.lang.PgqlExceptionCloses the underlying JDBC ResultSet and Statement.- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfaceoracle.pgql.lang.ResultSet<oracle.pgql.lang.ResultAccess>- Throws:
oracle.pgql.lang.PgqlException
-
print
PgqlResultSet print()
Prints all results toSystem.out.- Returns:
PgqlResultSet
-
print
default PgqlResultSet print(long numResults)
PrintsnumResultsresults toSystem.out. IfnumResultsis larger than the number of available results, only the number of available results are printed.- Parameters:
numResults- number of results- Returns:
PgqlResultSet
-
print
default PgqlResultSet print(long numResults, int from)
PrintsnumResultsresults fromfromth result toSystem.out.- Parameters:
numResults- number of resultsfrom- first result to be printed (start counting from 0)- Returns:
PgqlResultSet
-
print
PgqlResultSet print(java.io.PrintStream printStream, long numResults, int from)
Same asprint(long, int)except that this method prints content toprintStream.- Parameters:
printStream- stream to which results are printednumResults- number of resultsfrom- first result to be printed (start counting from 0)- Returns:
PgqlResultSet
-
-