# Uses of Class
oracle.kv.query.ExecuteOptions

Packages that use ExecuteOptions
Package
Description
oracle.kv
This package contains the public API for using Oracle NoSQL Database.
oracle.kv.query
This package contains the majority of the public API for using Oracle NoSQL Database query language.

- ## Uses of ExecuteOptions in oracle.kv

  Methods in oracle.kv with parameters of type ExecuteOptions
  Modifier and Type
  Method
  Description
  `ExecutionFuture`
  KVStore.`execute(char[] statement, ExecuteOptions options)`
  This method is equivalent to `KVStore.execute(String, ExecuteOptions)`, but the statement is given as a char[].
  `ExecutionFuture`
  KVStore.`execute(String statement, ExecuteOptions options)`
  This method is equivalent to `KVStore.execute(String)`, but it allows its users to specify execution options that override the defaults.
  `Publisher<RecordValue>`
  KVStore.`executeAsync(String statement, ExecuteOptions options)`
  Returns a publisher that can be used to subscribe to the results of the asynchronous execution of an SQL statement.
  `Publisher<RecordValue>`
  KVStore.`executeAsync(Statement statement, ExecuteOptions options)`
  Returns a publisher that can be used to subscribe to the results of the asynchronous execution of a table statement, either a `PreparedStatement` or a `BoundStatement`.
  `StatementResult`
  KVStore.`executeSync(char[] statement, ExecuteOptions options)`
  Synchronously execute an SQL statement.
  `StatementResult`
  KVStore.`executeSync(String statement, ExecuteOptions options)`
  Synchronously execute an SQL statement.
  `StatementResult`
  KVStore.`executeSync(Statement statement, ExecuteOptions options)`
  Synchronously execute a prepared SQL statement provided as a `PreparedStatement` or `BoundStatement`.

- ## Uses of ExecuteOptions in oracle.kv.query

  Methods in oracle.kv.query that return ExecuteOptions
  Modifier and Type
  Method
  Description
  `ExecuteOptions`
  ExecuteOptions.`setConsistency(Consistency consistency)`
  Sets the execution consistency.
  `ExecuteOptions`
  ExecuteOptions.`setDurability(Durability durability)`
  Sets the execution durability.
  `ExecuteOptions`
  ExecuteOptions.`setMathContext(MathContext mathContext)`
  Sets the `MathContext` used for `BigDecimal` and `BigInteger` operations.
  `ExecuteOptions`
  ExecuteOptions.`setMaxConcurrentRequests(int maxConcurrentRequests)`
  Sets the maximum number of concurrent requests.
  `ExecuteOptions`
  ExecuteOptions.`setNamespace(String namespace)`
  Sets the namespace to use for the query.
  `ExecuteOptions`
  ExecuteOptions.`setQueryName(String n)`
  `ExecuteOptions`
  ExecuteOptions.`setResultsBatchSize(int resultsBatchSize)`
  Sets the max number of query results to be generated during the execution of the query over a partition or shard (which takes place at a replication node (RN) that contains the target partition/shard).
  `ExecuteOptions`
  ExecuteOptions.`setRowMetadata(String rowMetadata)`
  This method is **EXPERIMENTAL** and its behavior, signature, or even its existence may change without prior notice in future versions.
  `ExecuteOptions`
  ExecuteOptions.`setTimeout(long timeout, TimeUnit timeoutUnit)`
  The `timeout` parameter is an upper bound on the time interval for processing one of the KVStore.execute(...) methods (`KVStore.execute(String, ExecuteOptions)`, `KVStore.executeSync(String, ExecuteOptions)`, or `KVStore.executeSync(Statement, ExecuteOptions)`) and any of the subsequent next() and hasNext() invocations of `StatementResult.iterator()`.