Class PgqlExecution
- java.lang.Object
-
- oracle.pg.rdbms.pgql.PgqlExecution
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,PgqlPreparedStatement
,PgqlStatement
,oracle.pgql.lang.PreparedStatement
public class PgqlExecution extends java.lang.Object implements PgqlPreparedStatement
This class implements thePgqlStatement
andPgqlPreparedStatement
interfaces for executing PGQL queries against graphs stored in Oracle Database.Refer to the documentation of these interfaces for further explanation and sample code.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
USER_REQUESTED_CANCEL_ERROR
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cancel()
Allows to cancel currently running execute operation.void
close()
Releases this PgqlStatment's database and JDBC resources.static void
deleteCache(PgqlConnection pgqlConn, java.lang.String schema, java.lang.String graphName)
boolean
execute(int parallel, int dynamicSampling, java.lang.String matchOptions, java.lang.String options)
Executes a PGQL Query, Modify or Create/Drop operation on this instance's property graph.boolean
execute(java.lang.String pgql, int parallel, int dynamicSampling, java.lang.String matchOptions, java.lang.String options)
Executes a PGQL Query, Modify or Create/Drop operation on this instance's property graph.boolean
execute(java.lang.String matchOptions, java.lang.String options)
Executes a PGQL Query, Modify or Create/Drop operation on this instance's property graph.boolean
execute(java.lang.String pgql, java.lang.String matchOptions, java.lang.String options)
Executes a PGQL Query, Modify or Create/Drop operation on this instance's property graph.PgqlResultSet
executeQuery()
Translates this instance's PGQL statement into a SQL statement and executes the SQL against this instance's property graph.PgqlResultSet
executeQuery(int timeout, int parallel, int dynamicSampling, int maxResults, java.lang.String options)
Translates this instance's PGQL statement into a SQL statement and executes the SQL against this instance's property graph.PgqlResultSet
executeQuery(java.lang.String pgql, int timeout, int parallel, int dynamicSampling, int maxResults, java.lang.String options)
Translates this instance's PGQL statement into a SQL statement and executes the SQL against this instance's property graph.PgqlResultSet
executeQuery(java.lang.String pgql, java.lang.String options)
Translates this instance's PGQL statement into a SQL statement and executes the SQL against this instance's property graph.int
getBatchSize()
Returns the number of commands that should be batched when executing updatesint
getFetchSize()
Returns the the number of rows that should be fetched from the database when more rows are needed for a query result.long
getModifyCount()
Returns the number of rows that were modified by last execute operationPgqlResultSet
getResultSet()
Returns the current result as a PgqlResultSet object.void
setArray(int parameterIndex, java.util.List<?> x)
Sets the designated parameter to the given Java List value.void
setBatchSize(int batchSize)
Sets the number of commands that should be batched when executing updatesvoid
setBoolean(int parameterIndex, boolean x)
Sets the designated parameter to the given Java boolean value.void
setDate(int parameterIndex, java.time.LocalDate x)
Sets the designated parameter to the given Java LocalDate value.void
setDouble(int parameterIndex, double x)
Sets the designated parameter to the given Java double value.void
setFetchSize(int fetchSize)
Sets the number of rows that should be fetched from the database when more rows are needed for a query result.void
setFloat(int parameterIndex, float x)
Sets the designated parameter to the given Java float value.void
setInt(int parameterIndex, int x)
Sets the designated parameter to the given Java int value.void
setLong(int parameterIndex, long x)
Sets the designated parameter to the given Java long value.void
setString(int parameterIndex, java.lang.String x)
Sets the designated parameter to the given Java String value.void
setTime(int parameterIndex, java.time.LocalTime x)
Sets the designated parameter to the given Java LocalTime value.void
setTimestamp(int parameterIndex, java.sql.Timestamp x)
Sets the designated parameter to the given Java Timestamp value.void
setTimestamp(int parameterIndex, java.time.LocalDateTime x)
Sets the designated parameter to the given Java LocalDateTime value.void
setTimestampWithTimezone(int parameterIndex, java.time.OffsetDateTime x)
Sets the designated parameter to the given Java OffsetDateTime value.void
setTimeWithTimezone(int parameterIndex, java.time.OffsetTime x)
Sets the designated parameter to the given Java OffsetTime value.PgqlSqlQueryTrans
translateQuery()
Translates this instance's PGQL statement into a SQL statement.PgqlSqlQueryTrans
translateQuery(java.lang.String pgql, int parallel, int dynamicSampling, int maxResults, java.lang.String options)
Translates this instance's PGQL statement into a SQL statement.PgqlSqlQueryTrans
translateQuery(java.lang.String pgql, java.lang.String options)
Translates this instance's PGQL statement into a SQL statement.PgqlSqlTrans
translateStatement()
Translates this instance's PGQL statement into a series of SQL statements.PgqlSqlTrans
translateStatement(int parallel, int dynamicSampling, int maxResults, java.lang.String matchOptions, java.lang.String options)
Translates this instance's PGQL statement into a series of SQL statements.PgqlSqlTrans
translateStatement(java.lang.String pgql, int parallel, int dynamicSampling, int maxResults, java.lang.String matchOptions, java.lang.String options)
Translates the given PGQL statement into a series of SQL statements.PgqlSqlTrans
translateStatement(java.lang.String matchOptions, java.lang.String options)
Translates this instance's PGQL statement into a series of SQL statements.PgqlSqlTrans
translateStatement(java.lang.String pgql, java.lang.String matchOptions, java.lang.String options)
Translates the given PGQL statement into a series of SQL statements.-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface oracle.pg.rdbms.pgql.PgqlPreparedStatement
execute, translateQuery
-
Methods inherited from interface oracle.pg.rdbms.pgql.PgqlStatement
execute, executeQuery, translateQuery, translateStatement
-
-
-
-
Field Detail
-
USER_REQUESTED_CANCEL_ERROR
public static final java.lang.String USER_REQUESTED_CANCEL_ERROR
- See Also:
- Constant Field Values
-
-
Method Detail
-
getResultSet
public PgqlResultSet getResultSet()
Returns the current result as a PgqlResultSet object.- Specified by:
getResultSet
in interfacePgqlStatement
- Specified by:
getResultSet
in interfaceoracle.pgql.lang.PreparedStatement
- Returns:
- a
PgqlResultSet
object with the result of the last executed PGQL query, or null if the query last executed PGQL was not a Select statement
-
getModifyCount
public long getModifyCount()
Description copied from interface:PgqlStatement
Returns the number of rows that were modified by last execute operation- Specified by:
getModifyCount
in interfacePgqlStatement
- Returns:
- The number of rows modified
-
setBoolean
public void setBoolean(int parameterIndex, boolean x)
Sets the designated parameter to the given Java boolean value.- Specified by:
setBoolean
in interfacePgqlPreparedStatement
- Specified by:
setBoolean
in interfaceoracle.pgql.lang.PreparedStatement
- Parameters:
parameterIndex
- the first parameter is 1, the second is 2, ...x
- the parameter value
-
setDouble
public void setDouble(int parameterIndex, double x)
Sets the designated parameter to the given Java double value.- Specified by:
setDouble
in interfacePgqlPreparedStatement
- Specified by:
setDouble
in interfaceoracle.pgql.lang.PreparedStatement
- Parameters:
parameterIndex
- the first parameter is 1, the second is 2, ...x
- the parameter value
-
setFloat
public void setFloat(int parameterIndex, float x)
Sets the designated parameter to the given Java float value.- Specified by:
setFloat
in interfacePgqlPreparedStatement
- Specified by:
setFloat
in interfaceoracle.pgql.lang.PreparedStatement
- Parameters:
parameterIndex
- the first parameter is 1, the second is 2, ...x
- the parameter value
-
setInt
public void setInt(int parameterIndex, int x)
Sets the designated parameter to the given Java int value.- Specified by:
setInt
in interfacePgqlPreparedStatement
- Specified by:
setInt
in interfaceoracle.pgql.lang.PreparedStatement
- Parameters:
parameterIndex
- the first parameter is 1, the second is 2, ...x
- the parameter value
-
setLong
public void setLong(int parameterIndex, long x)
Sets the designated parameter to the given Java long value.- Specified by:
setLong
in interfacePgqlPreparedStatement
- Specified by:
setLong
in interfaceoracle.pgql.lang.PreparedStatement
- Parameters:
parameterIndex
- the first parameter is 1, the second is 2, ...x
- the parameter value
-
setString
public void setString(int parameterIndex, java.lang.String x)
Sets the designated parameter to the given Java String value.- Specified by:
setString
in interfacePgqlPreparedStatement
- Specified by:
setString
in interfaceoracle.pgql.lang.PreparedStatement
- Parameters:
parameterIndex
- the first parameter is 1, the second is 2, ...x
- the parameter value
-
setTimestamp
public void setTimestamp(int parameterIndex, java.sql.Timestamp x)
Sets the designated parameter to the given Java Timestamp value.Timestamp values are assumed to be in Coordinated Universal Time (UTC).
- Specified by:
setTimestamp
in interfacePgqlPreparedStatement
- Parameters:
parameterIndex
- the first parameter is 1, the second is 2, ...x
- the parameter value
-
setDate
public void setDate(int parameterIndex, java.time.LocalDate x)
Sets the designated parameter to the given Java LocalDate value.- Specified by:
setDate
in interfaceoracle.pgql.lang.PreparedStatement
- Parameters:
parameterIndex
- the first parameter is 1, the second is 2, ...x
- the parameter value
-
setTime
public void setTime(int parameterIndex, java.time.LocalTime x)
Sets the designated parameter to the given Java LocalTime value.- Specified by:
setTime
in interfaceoracle.pgql.lang.PreparedStatement
- Parameters:
parameterIndex
- the first parameter is 1, the second is 2, ...x
- the parameter value
-
setTimestamp
public void setTimestamp(int parameterIndex, java.time.LocalDateTime x)
Sets the designated parameter to the given Java LocalDateTime value.- Specified by:
setTimestamp
in interfaceoracle.pgql.lang.PreparedStatement
- Parameters:
parameterIndex
- the first parameter is 1, the second is 2, ...x
- the parameter value
-
setTimeWithTimezone
public void setTimeWithTimezone(int parameterIndex, java.time.OffsetTime x)
Sets the designated parameter to the given Java OffsetTime value.- Specified by:
setTimeWithTimezone
in interfaceoracle.pgql.lang.PreparedStatement
- Parameters:
parameterIndex
- the first parameter is 1, the second is 2, ...x
- the parameter value
-
setTimestampWithTimezone
public void setTimestampWithTimezone(int parameterIndex, java.time.OffsetDateTime x)
Sets the designated parameter to the given Java OffsetDateTime value.- Specified by:
setTimestampWithTimezone
in interfaceoracle.pgql.lang.PreparedStatement
- Parameters:
parameterIndex
- the first parameter is 1, the second is 2, ...x
- the parameter value
-
setArray
public void setArray(int parameterIndex, java.util.List<?> x)
Sets the designated parameter to the given Java List value.- Specified by:
setArray
in interfaceoracle.pgql.lang.PreparedStatement
- Parameters:
parameterIndex
- the first parameter is 1, the second is 2, ...x
- the parameter value
-
translateQuery
public PgqlSqlQueryTrans translateQuery() throws PgqlToSqlException, oracle.pgql.lang.PgqlException
Translates this instance's PGQL statement into a SQL statement.- Specified by:
translateQuery
in interfacePgqlPreparedStatement
- Returns:
- a
PgqlSqlQueryTrans
object with the SQL translation and column metadata for the provided PGQL query - Throws:
PgqlToSqlException
- if a server-side error occurs during translationoracle.pgql.lang.PgqlException
- if a server-side error occurs or this method is called on a closed Statement
-
translateQuery
public PgqlSqlQueryTrans translateQuery(java.lang.String pgql, java.lang.String options) throws PgqlToSqlException, oracle.pgql.lang.PgqlException
Translates this instance's PGQL statement into a SQL statement.Supported query options are:
USE_RW=F Use CONNECT BY instead of recursive WITH for unbounded path traversals.
MAX_PATH_LEN=n Traverse at most n hops when evaluating unbounded path traversals.
- Specified by:
translateQuery
in interfacePgqlStatement
- Parameters:
pgql
- the PGQL query to translateoptions
- additional options used to influence query translation- Returns:
- a
PgqlSqlQueryTrans
object with the SQL translation and column metadata for the provided PGQL query - Throws:
PgqlToSqlException
- if a server-side error occurs during translationoracle.pgql.lang.PgqlException
- if a server-side error occurs or this method is called on a closed Statement
-
translateQuery
public PgqlSqlQueryTrans translateQuery(java.lang.String pgql, int parallel, int dynamicSampling, int maxResults, java.lang.String options) throws PgqlToSqlException, oracle.pgql.lang.PgqlException
Translates this instance's PGQL statement into a SQL statement.Supported query options are:
USE_RW=F Use CONNECT BY instead of recursive WITH for unbounded path traversals.
MAX_PATH_LEN=n Traverse at most n hops when evaluating unbounded path traversals.
- Specified by:
translateQuery
in interfacePgqlStatement
- Parameters:
pgql
- the PGQL query to translateparallel
- the degree of parallelism to use for query executiondynamicSampling
- the value for dynamic samplingmaxResults
- the maximum number of rows returnedoptions
- additional options used to influence query translation- Returns:
- a
PgqlSqlQueryTrans
object with the SQL translation and column metadata for the provided PGQL query - Throws:
PgqlToSqlException
- if a server-side error occurs during translationoracle.pgql.lang.PgqlException
- if a server-side error occurs or this method is called on a closed Statement
-
translateStatement
public PgqlSqlTrans translateStatement() throws PgqlToSqlException, oracle.pgql.lang.PgqlException
Description copied from interface:PgqlPreparedStatement
Translates this instance's PGQL statement into a series of SQL statements.- Specified by:
translateStatement
in interfacePgqlPreparedStatement
- Returns:
- the SQL statements and metadata necessary to execute the provided SQL statement
- Throws:
PgqlToSqlException
- if a server-side error occurs during translationoracle.pgql.lang.PgqlException
- if a server-side error occurs or this method is called on a closed Statement
-
translateStatement
public PgqlSqlTrans translateStatement(java.lang.String matchOptions, java.lang.String options) throws PgqlToSqlException, oracle.pgql.lang.PgqlException
Description copied from interface:PgqlPreparedStatement
Translates this instance's PGQL statement into a series of SQL statements.- Specified by:
translateStatement
in interfacePgqlPreparedStatement
- Parameters:
matchOptions
- additional options used to influence query translation and executionoptions
- additional options used to influence DDL/DML translation and execution- Returns:
- the SQL statements and metadata necessary to execute the provided SQL statement
- Throws:
PgqlToSqlException
- if a server-side error occurs during translationoracle.pgql.lang.PgqlException
- if a server-side error occurs or this method is called on a closed Statement
-
translateStatement
public PgqlSqlTrans translateStatement(java.lang.String pgql, java.lang.String matchOptions, java.lang.String options) throws PgqlToSqlException, oracle.pgql.lang.PgqlException
Description copied from interface:PgqlStatement
Translates the given PGQL statement into a series of SQL statements.- Specified by:
translateStatement
in interfacePgqlStatement
- Parameters:
pgql
- the PGQL statement to translatematchOptions
- additional options used to influence query translation and executionoptions
- additional options used to influence DDL/DML translation and execution- Returns:
- the SQL statements and metadata necessary to execute the provided SQL statement
- Throws:
PgqlToSqlException
- if a server-side error occurs during translationoracle.pgql.lang.PgqlException
- if a server-side error occurs or this method is called on a closed Statement
-
translateStatement
public PgqlSqlTrans translateStatement(int parallel, int dynamicSampling, int maxResults, java.lang.String matchOptions, java.lang.String options) throws PgqlToSqlException, oracle.pgql.lang.PgqlException
Description copied from interface:PgqlPreparedStatement
Translates this instance's PGQL statement into a series of SQL statements.- Specified by:
translateStatement
in interfacePgqlPreparedStatement
- Parameters:
parallel
- the degree of parallelism to use for query executiondynamicSampling
- the value for dynamic samplingmaxResults
- the maximum number of rows returnedmatchOptions
- additional options used to influence query translation and executionoptions
- additional options used to influence DDL/DML translation and execution- Returns:
- the SQL statements and metadata necessary to execute the provided SQL statement
- Throws:
PgqlToSqlException
- if a server-side error occurs during translationoracle.pgql.lang.PgqlException
- if a server-side error occurs or this method is called on a closed Statement
-
translateStatement
public PgqlSqlTrans translateStatement(java.lang.String pgql, int parallel, int dynamicSampling, int maxResults, java.lang.String matchOptions, java.lang.String options) throws PgqlToSqlException, oracle.pgql.lang.PgqlException
Description copied from interface:PgqlStatement
Translates the given PGQL statement into a series of SQL statements.- Specified by:
translateStatement
in interfacePgqlStatement
- Parameters:
pgql
- the PGQL statement to translateparallel
- the degree of parallelism to use for query executiondynamicSampling
- the value for dynamic samplingmaxResults
- the maximum number of rows returnedmatchOptions
- additional options used to influence query translation and executionoptions
- additional options used to influence DDL/DML translation and execution- Returns:
- the SQL statements and metadata necessary to execute the provided SQL statement
- Throws:
PgqlToSqlException
- if a server-side error occurs during translationoracle.pgql.lang.PgqlException
- if a server-side error occurs or this method is called on a closed Statement
-
executeQuery
public PgqlResultSet executeQuery() throws PgqlToSqlException, oracle.pgql.lang.PgqlException
Translates this instance's PGQL statement into a SQL statement and executes the SQL against this instance's property graph.- Specified by:
executeQuery
in interfacePgqlPreparedStatement
- Specified by:
executeQuery
in interfaceoracle.pgql.lang.PreparedStatement
- Returns:
- a
PgqlResultSet
object with the result of the provided PGQL query - Throws:
PgqlToSqlException
- if a server-side error occurs during translation or SQL executionoracle.pgql.lang.PgqlException
- if a server-side error occurs or this method is called on a closed Statement
-
executeQuery
public PgqlResultSet executeQuery(java.lang.String pgql, java.lang.String options) throws PgqlToSqlException, oracle.pgql.lang.PgqlException
Translates this instance's PGQL statement into a SQL statement and executes the SQL against this instance's property graph.Supported query options are:
USE_RW=F Use CONNECT BY instead of recursive WITH for unbounded path traversals.
MAX_PATH_LEN=n Traverse at most n hops when evaluating unbounded path traversals.
- Specified by:
executeQuery
in interfacePgqlStatement
- Parameters:
pgql
- the PGQL query to executeoptions
- additional options used to influence query translation and execution- Returns:
- a
PgqlResultSet
object with the result of the provided PGQL query - Throws:
PgqlToSqlException
- if a server-side error occurs during translation or SQL executionoracle.pgql.lang.PgqlException
- if a server-side error occurs or this method is called on a closed Statement
-
executeQuery
public PgqlResultSet executeQuery(int timeout, int parallel, int dynamicSampling, int maxResults, java.lang.String options) throws PgqlToSqlException, oracle.pgql.lang.PgqlException
Translates this instance's PGQL statement into a SQL statement and executes the SQL against this instance's property graph.Supported query options are:
USE_RW=F Use CONNECT BY instead of recursive WITH for unbounded path traversals.
MAX_PATH_LEN=n Traverse at most n hops when evaluating unbounded path traversals.
- Specified by:
executeQuery
in interfacePgqlPreparedStatement
- Parameters:
timeout
- the number of seconds for query execution to finishparallel
- the degree of parallelism to use for query executiondynamicSampling
- the value for dynamic samplingmaxResults
- the maximum number of rows returnedoptions
- additional options used to influence query translation and execution- Returns:
- a
PgqlResultSet
object with the result of the provided PGQL query - Throws:
PgqlToSqlException
- if a server-side error occurs during translation or SQL executionoracle.pgql.lang.PgqlException
- if a server-side error occurs or this method is called on a closed Statement
-
executeQuery
public PgqlResultSet executeQuery(java.lang.String pgql, int timeout, int parallel, int dynamicSampling, int maxResults, java.lang.String options) throws PgqlToSqlException, oracle.pgql.lang.PgqlException
Translates this instance's PGQL statement into a SQL statement and executes the SQL against this instance's property graph.Supported query options are:
USE_RW=F Use CONNECT BY instead of recursive WITH for unbounded path traversals.
MAX_PATH_LEN=n Traverse at most n hops when evaluating unbounded path traversals.
- Specified by:
executeQuery
in interfacePgqlStatement
- Parameters:
pgql
- the PGQL query to executetimeout
- the number of seconds for query execution to finishparallel
- the degree of parallelism to use for query executiondynamicSampling
- the value for dynamic samplingmaxResults
- the maximum number of rows returnedoptions
- additional options used to influence query translation and execution- Returns:
- a
PgqlResultSet
object with the result of the provided PGQL query - Throws:
PgqlToSqlException
- if a server-side error occurs during translation or SQL executionoracle.pgql.lang.PgqlException
- if a server-side error occurs or this method is called on a closed Statement
-
execute
public boolean execute(java.lang.String matchOptions, java.lang.String options) throws PgqlToSqlException, oracle.pgql.lang.PgqlException
Executes a PGQL Query, Modify or Create/Drop operation on this instance's property graph.Supported query options (matchOptions) are the same as those for executeQuery.
Supported modify options are:
STREAMING=T Use result sets instead of temporary tables to perform update.
AUTO_COMMIT=F Do not commit after performing the modify operation.
DELETE_CASCADE=F Do not delete incoming/outgoing edges when deleting a vertex.
- Specified by:
execute
in interfacePgqlPreparedStatement
- Parameters:
matchOptions
- additional options used to influence query translation and executionoptions
- additional options used to influence modify translation and execution- Returns:
- true if the provided PGQL query is a select, false for other statements
- Throws:
PgqlToSqlException
- if a server-side error occurs during translation or SQL executionoracle.pgql.lang.PgqlException
- if a server-side error occurs or this method is called on a closed Statement
-
execute
public boolean execute(java.lang.String pgql, java.lang.String matchOptions, java.lang.String options) throws PgqlToSqlException, oracle.pgql.lang.PgqlException
Executes a PGQL Query, Modify or Create/Drop operation on this instance's property graph.Supported query options (matchOptions) are the same as those for executeQuery.
Supported modify options are:
STREAMING=T Use result sets instead of temporary tables to perform the update.
AUTO_COMMIT=F Do not commit after performing the modify operation.
DELETE_CASCADE=F Do not delete incoming/outgoing edges when deleting a vertex.
- Specified by:
execute
in interfacePgqlStatement
- Parameters:
pgql
- the PGQL to executematchOptions
- additional options used to influence query translation and executionoptions
- additional options used to influence modify translation and execution- Returns:
- true if the provided PGQL query is a select, false for other statements
- Throws:
PgqlToSqlException
- if a server-side error occurs during translation or SQL executionoracle.pgql.lang.PgqlException
- if a server-side error occurs or this method is called on a closed Statement
-
execute
public boolean execute(int parallel, int dynamicSampling, java.lang.String matchOptions, java.lang.String options) throws PgqlToSqlException, oracle.pgql.lang.PgqlException
Executes a PGQL Query, Modify or Create/Drop operation on this instance's property graph.Supported query options (matchOptions) are the same as those for executeQuery.
Supported modify options are:
STREAMING=T Use result sets instead of temporary tables to perform the update.
AUTO_COMMIT=F Do not commit after performing the modify operation.
DELETE_CASCADE=F Do not delete incoming/outgoing edges when deleting a vertex.
- Specified by:
execute
in interfacePgqlPreparedStatement
- Parameters:
parallel
- the degree of parallelism to use for query and modify executiondynamicSampling
- the value for dynamic samplingmatchOptions
- additional options used to influence query translation and executionoptions
- additional options used to influence modify translation and execution- Returns:
- true if the provided PGQL query is a select, false for other statements
- Throws:
PgqlToSqlException
- if a server-side error occurs during translation or SQL executionoracle.pgql.lang.PgqlException
- if a server-side error occurs or this method is called on a closed Statement
-
execute
public boolean execute(java.lang.String pgql, int parallel, int dynamicSampling, java.lang.String matchOptions, java.lang.String options) throws PgqlToSqlException, oracle.pgql.lang.PgqlException
Executes a PGQL Query, Modify or Create/Drop operation on this instance's property graph.Supported query options (matchOptions) are the same as those for executeQuery.
Supported modify options are:
STREAMING=T Use result sets instead of temporary tables to perform the update.
AUTO_COMMIT=F Do not commit after performing the modify operation.
DELETE_CASCADE=F Do not delete incoming/outgoing edges when deleting a vertex.
- Specified by:
execute
in interfacePgqlStatement
- Parameters:
pgql
- the PGQL modify to executeparallel
- the degree of parallelism to use for query and update executiondynamicSampling
- the value for dynamic samplingmatchOptions
- additional options used to influence query translation and executionoptions
- additional options used to influence modify translation and execution- Returns:
- true if the provided PGQL query is a select, false for other statements
- Throws:
PgqlToSqlException
- if a server-side error occurs during translation or SQL executionoracle.pgql.lang.PgqlException
- if a server-side error occurs or this method is called on a closed Statement
-
setBatchSize
public void setBatchSize(int batchSize)
Sets the number of commands that should be batched when executing updates- Specified by:
setBatchSize
in interfacePgqlStatement
- Parameters:
batchSize
- the update batch size
-
setFetchSize
public void setFetchSize(int fetchSize)
Sets the number of rows that should be fetched from the database when more rows are needed for a query result.- Specified by:
setFetchSize
in interfacePgqlStatement
- Parameters:
fetchSize
- the query fetch size
-
getBatchSize
public int getBatchSize()
Returns the number of commands that should be batched when executing updates- Specified by:
getBatchSize
in interfacePgqlStatement
- Returns:
- the update batch size
-
getFetchSize
public int getFetchSize()
Returns the the number of rows that should be fetched from the database when more rows are needed for a query result.- Specified by:
getFetchSize
in interfacePgqlStatement
- Returns:
- the query fetch size
-
close
public void close() throws oracle.pgql.lang.PgqlException
Releases this PgqlStatment's database and JDBC resources. Closing this PgqlStatement will close all PgqlResultSets that were created from it.- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacePgqlStatement
- Specified by:
close
in interfaceoracle.pgql.lang.PreparedStatement
- Throws:
oracle.pgql.lang.PgqlException
-
cancel
public void cancel() throws oracle.pgql.lang.PgqlException
Description copied from interface:PgqlStatement
Allows to cancel currently running execute operation. Note that cancel does not rollback already executed modifications.- Specified by:
cancel
in interfacePgqlStatement
- Throws:
oracle.pgql.lang.PgqlException
- When an error occurs while canceling current operation.
-
deleteCache
public static void deleteCache(PgqlConnection pgqlConn, java.lang.String schema, java.lang.String graphName)
-
-