public class DataCloudStatement extends Object implements Statement
| Modifier and Type | Field and Description |
|---|---|
protected static String |
BATCH_EXECUTION_IS_NOT_SUPPORTED |
protected DataCloudConnection |
dataCloudConnection |
static int |
DEFAULT_QUERY_TIMEOUT |
protected QueryStatusListener |
listener |
protected static String |
NOT_SUPPORTED_IN_DATACLOUD_QUERY |
protected ResultSet |
resultSet |
CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO| Constructor and Description |
|---|
DataCloudStatement(@NonNull DataCloudConnection connection) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecuteLargeBatch, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, getLargeMaxRows, getLargeUpdateCount, setLargeMaxRowsprotected ResultSet resultSet
protected static final String NOT_SUPPORTED_IN_DATACLOUD_QUERY
protected static final String BATCH_EXECUTION_IS_NOT_SUPPORTED
public static final int DEFAULT_QUERY_TIMEOUT
protected final DataCloudConnection dataCloudConnection
protected QueryStatusListener listener
public DataCloudStatement(@NonNull
@NonNull DataCloudConnection connection)
protected HyperGrpcClientExecutor getQueryExecutor()
protected HyperGrpcClientExecutor getQueryExecutor(QueryParam additionalQueryParams)
public boolean isReady()
public boolean execute(String sql) throws SQLException
execute in interface StatementSQLExceptionpublic ResultSet executeQuery(String sql) throws SQLException
executeQuery in interface StatementSQLExceptionpublic DataCloudResultSet executeSyncQuery(String sql) throws SQLException
SQLExceptionprotected DataCloudResultSet executeSyncQuery(String sql, HyperGrpcClientExecutor client) throws SQLException
SQLExceptionpublic DataCloudResultSet executeAdaptiveQuery(String sql) throws SQLException
SQLExceptionprotected DataCloudResultSet executeAdaptiveQuery(String sql, HyperGrpcClientExecutor client, Duration timeout) throws SQLException
SQLExceptionpublic DataCloudStatement executeAsyncQuery(String sql) throws SQLException
SQLExceptionprotected DataCloudStatement executeAsyncQuery(String sql, HyperGrpcClientExecutor client) throws SQLException
SQLExceptionpublic int executeUpdate(String sql) throws SQLException
executeUpdate in interface StatementSQLExceptionpublic void close()
throws SQLException
close in interface AutoCloseableclose in interface StatementSQLExceptionpublic int getMaxFieldSize()
getMaxFieldSize in interface Statementpublic void setMaxFieldSize(int max)
setMaxFieldSize in interface Statementpublic int getMaxRows()
getMaxRows in interface Statementpublic void setMaxRows(int max)
setMaxRows in interface Statementpublic void setEscapeProcessing(boolean enable)
setEscapeProcessing in interface Statementpublic int getQueryTimeout()
getQueryTimeout in interface Statementpublic void setQueryTimeout(int seconds)
setQueryTimeout in interface Statementpublic SQLWarning getWarnings()
getWarnings in interface Statementpublic void clearWarnings()
clearWarnings in interface Statementpublic void setCursorName(String name)
setCursorName in interface Statementpublic ResultSet getResultSet() throws SQLException
getResultSet in interface StatementSQLExceptionpublic int getUpdateCount()
getUpdateCount in interface Statementpublic boolean getMoreResults()
getMoreResults in interface Statementpublic void setFetchDirection(int direction)
setFetchDirection in interface Statementpublic int getFetchDirection()
getFetchDirection in interface Statementpublic void setFetchSize(int rows)
setFetchSize in interface Statementpublic int getFetchSize()
getFetchSize in interface Statementpublic int getResultSetConcurrency()
getResultSetConcurrency in interface Statementpublic int getResultSetType()
getResultSetType in interface Statementpublic void addBatch(String sql) throws SQLException
addBatch in interface StatementSQLExceptionpublic void clearBatch()
throws SQLException
clearBatch in interface StatementSQLExceptionpublic int[] executeBatch()
throws SQLException
executeBatch in interface StatementSQLExceptionpublic Connection getConnection()
getConnection in interface Statementpublic boolean getMoreResults(int current)
getMoreResults in interface Statementpublic ResultSet getGeneratedKeys()
getGeneratedKeys in interface Statementpublic int executeUpdate(String sql, int autoGeneratedKeys) throws SQLException
executeUpdate in interface StatementSQLExceptionpublic int executeUpdate(String sql, int[] columnIndexes) throws SQLException
executeUpdate in interface StatementSQLExceptionpublic int executeUpdate(String sql, String[] columnNames) throws SQLException
executeUpdate in interface StatementSQLExceptionpublic boolean execute(String sql, int autoGeneratedKeys) throws SQLException
execute in interface StatementSQLExceptionpublic boolean execute(String sql, int[] columnIndexes) throws SQLException
execute in interface StatementSQLExceptionpublic boolean execute(String sql, String[] columnNames) throws SQLException
execute in interface StatementSQLExceptionpublic int getResultSetHoldability()
getResultSetHoldability in interface Statementpublic void setPoolable(boolean poolable)
setPoolable in interface Statementpublic boolean isPoolable()
isPoolable in interface Statementpublic void closeOnCompletion()
closeOnCompletion in interface Statementpublic boolean isCloseOnCompletion()
isCloseOnCompletion in interface Statementpublic <T> T unwrap(Class<T> iFace) throws SQLException
unwrap in interface WrapperSQLExceptionpublic boolean isWrapperFor(Class<?> iFace)
isWrapperFor in interface WrapperCopyright © 2025. All rights reserved.