public interface PgxPreparedStatement
extends oracle.pgql.lang.PreparedStatement, oracle.pgql.lang.spatial.STPreparedStatement| Modifier and Type | Method and Description |
|---|---|
boolean |
execute()
Executes the PGQL statement in this PreparedStatement object, which may be any kind of PGQL statement.
|
PgxFuture<java.lang.Boolean> |
executeAsync()
Executes the PGQL statement in this PreparedStatement object, which may be any kind of PGQL statement.
|
PgqlResultSet |
executeQuery()
Blocking version of
executeQueryAsync(). |
PgxFuture<PgqlResultSet> |
executeQueryAsync()
Executes the PGQL query in this
PgxPreparedStatement object and returns the PgqlResultSet object generated by the query. |
PgqlResultSet |
getResultSet()
Retrieves the current result as a ResultSet object.
|
PgxFuture<PgqlResultSet> |
getResultSetAsync()
Retrieves the current result as a PgxFuture with the ResultSet object.
|
boolean execute()
throws oracle.pgql.lang.PgqlException
Returns: a boolean to indicate the form of the first result: true in case of a SELECT query, false otherwise. In case of a SELECT query you must call the method getResultSet to retrieve the result.
Throws: PgqlException - if a server-side error occurs or this method is called on a closed Statement
execute in interface oracle.pgql.lang.PreparedStatementoracle.pgql.lang.PgqlExceptionPgxFuture<java.lang.Boolean> executeAsync()
Returns: A PgxFuture with a boolean to indicate the form of the first result: true in case of a SELECT query, false otherwise. In case of a SELECT query you must call the method getResultSet to retrieve the result.
Throws: PgqlException - if a server-side error occurs or this method is called on a closed Statement
PgqlResultSet executeQuery() throws oracle.pgql.lang.PgqlException
executeQueryAsync(). Calls executeQueryAsync() and waits for the returned PgxFuture to complete.executeQuery in interface oracle.pgql.lang.PreparedStatementoracle.pgql.lang.PgqlException - if the caller thread gets interrupted while waiting for completion or if any exception occurred during asynchronous execution. The actual exception will be nested.PgxFuture<PgqlResultSet> executeQueryAsync()
PgxPreparedStatement object and returns the PgqlResultSet object generated by the query.PgqlResultSet object that contains the data produced by the query; never nullPgqlResultSet getResultSet() throws oracle.pgql.lang.PgqlException
Returns: current result as a ResultSet object or null if the query is not a SELECT query.
Throws: PgqlException - if a server-side error occurs or this method is called on a closed Statement
getResultSet in interface oracle.pgql.lang.PreparedStatementoracle.pgql.lang.PgqlExceptionPgxFuture<PgqlResultSet> getResultSetAsync() throws oracle.pgql.lang.PgqlException
Returns: current result as a ResultSet object or null if the query is not a SELECT query.
Throws: PgqlException - if a server-side error occurs or this method is called on a closed Statement
oracle.pgql.lang.PgqlExceptionCopyright © 2010, 2020 Oracle and/or its affiliates. All Rights Reserved.