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 void
close()
Closes the underlying JDBC ResultSet and Statement.int
getValueType(int elementIdx)
Returns the type of value for the given element.int
getValueType(java.lang.String elementName)
Returns the type of value for the given element.PgqlResultSet
print()
Prints all results toSystem.out
.default PgqlResultSet
print(long numResults)
PrintsnumResults
results toSystem.out
.default PgqlResultSet
print(long numResults, int from)
PrintsnumResults
results fromfrom
th result toSystem.out
.PgqlResultSet
print(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.PgqlException
Returns 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.PgqlException
Returns 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.PgqlException
Closes the underlying JDBC ResultSet and Statement.- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in 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)
PrintsnumResults
results toSystem.out
. IfnumResults
is 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)
PrintsnumResults
results fromfrom
th 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
-
-