Statement Object
- Last Updated: May 12, 2026
- 2 minute read
- OpenAccess SDK
- Version 8.1
- Documentation
| Statement Method | Version Introduced | Supported | Comments |
| void addBatch (String) | 2.0 Core | Yes | |
| void cancel () | 1.0 | Yes | Cancel can be used to cancel a function running synchronously on a statement, using a different thread. Whether Cancel will actually cancel the running function depends on the data store. |
| void clearBatch () | 2.0 Core | Yes | |
| void clearWarnings () | 1.0 | Yes | |
| void close () | 1.0 | Yes | |
| boolean execute (String) | 1.0 | Yes | |
| boolean execute (String, int) | 3.0 | No | Throws “unsupported method” exception. |
| boolean execute (String, int []) | 3.0 | No | Throws “unsupported method” exception. |
| boolean execute (String, String []) | 3.0 | No | Throws “unsupported method” exception. |
| int [] executeBatch () | 2.0 Core | Yes | |
| ResultSet executeQuery (String) | 1.0 | Yes | |
| int executeUpdate (String) | 1.0 | Yes | |
| int executeUpdate (String, int) | 3.0 | No | Throws “unsupported method” exception. |
| int executeUpdate (String, int []) | 3.0 | No | Throws “unsupported method” exception. |
| int executeUpdate (String, String []) | 3.0 | No | Throws “unsupported method” exception. |
| Connection getConnection () | 2.0 Core | Yes | |
| int getFetchDirection () | 2.0 Core | Yes | OpenAccess SDK supports this method, but ignores this hint provided by the application. |
| int getFetchSize () | 2.0 Core | Yes | OpenAccess SDK supports this method, but ignores this hint provided by the application. |
| ResultSet getGeneratedKeys () | 3.0 | No | Throws “unsupported method” exception. |
| int getMaxFieldSize () | 1.0 | Yes | |
| int getMaxRows () | 1.0 | Yes | |
| boolean getMoreResults () | 1.0 | Yes | |
| boolean getMoreResults (int) | 3.0 | No | Throws “unsupported method” exception. |
| int getQueryTimeout () | 1.0 | Yes | Set the DataSourceQueryTimeout service attribute to a value greater than 0. |
| ResultSet getResultSet () | 1.0 | Yes | |
| int getResultSetConcurrency () | 2.0 Core | Yes | |
| int getResultSetHoldability () | 3.0 | No | Throws “unsupported method” exception. |
| int getResultSetType () | 2.0 Core | Yes | |
| int getUpdateCount () | 1.0 | Yes | |
| SQLWarning getWarnings () | 1.0 | Yes | |
| boolean isClosed() | 4.0 | Yes | |
| boolean isPoolable() | 4.0 | Yes | |
| boolean isWrapperFor(Class<?> iface) | 4.0 | Yes | |
| void setCursorName (String) | 1.0 | No | |
| void setEscapeProcessing (boolean) | 1.0 | Yes | |
| void setFetchDirection (int) | 2.0 Core | Yes | |
| void setFetchSize (int) | 2.0 Core | Yes | |
| void setMaxFieldSize (int) | 1.0 | Yes | |
| void setMaxRows (int) | 1.0 | Yes | |
| void setPoolable(boolean) | 4.0 | Yes | |
| void setQueryTimeout (int) | 1.0 | Yes | Set the DataSourceQueryTimeout service attribute to a value greater than 0. |
| <T> T unwrap(Class<T> iface) | 4.0 | Yes |