public class WSStatement extends AbstractStatement
| Modifier and Type | Field and Description |
|---|---|
protected AtomicBoolean |
closed |
protected String |
database |
protected ResultSet |
resultSet |
protected Transport |
transport |
protected ZoneId |
zoneId |
affectedRows, batchedArgs, instanceIdCLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO| Constructor and Description |
|---|
WSStatement(Transport transport,
String database,
AbstractConnection connection,
Long instanceId,
ZoneId zoneId) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkBlobSupport() |
void |
close() |
boolean |
execute(String sql) |
boolean |
execute(String sql,
Long reqId) |
ResultSet |
executeQuery(String sql) |
ResultSet |
executeQuery(String sql,
Long reqId) |
int |
executeUpdate(String sql) |
int |
executeUpdate(String sql,
Long reqId) |
Connection |
getConnection() |
int |
getQueryTimeout() |
ResultSet |
getResultSet() |
int |
getUpdateCount() |
boolean |
isClosed() |
void |
setQueryTimeout(int seconds) |
addBatch, cancel, clearBatch, clearWarnings, closeOnCompletion, execute, execute, execute, executeBatch, executeUpdate, executeUpdate, executeUpdate, getFetchDirection, getFetchSize, getGeneratedKeys, getInstanceId, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getWarnings, isCloseOnCompletion, isPoolable, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows, setPoolableisWrapperFor, unwrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecuteLargeBatch, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, getLargeMaxRows, getLargeUpdateCount, setLargeMaxRowsisWrapperFor, unwrapprotected Transport transport
protected String database
protected AtomicBoolean closed
protected ResultSet resultSet
protected final ZoneId zoneId
public WSStatement(Transport transport, String database, AbstractConnection connection, Long instanceId, ZoneId zoneId)
public ResultSet executeQuery(String sql) throws SQLException
executeQuery in interface StatementexecuteQuery in class AbstractStatementSQLExceptionpublic ResultSet executeQuery(String sql, Long reqId) throws SQLException
executeQuery in class AbstractStatementSQLExceptionpublic int executeUpdate(String sql) throws SQLException
executeUpdate in interface StatementexecuteUpdate in class AbstractStatementSQLExceptionpublic int executeUpdate(String sql, Long reqId) throws SQLException
executeUpdate in class AbstractStatementSQLExceptionpublic void close()
throws SQLException
close in interface AutoCloseableclose in interface Statementclose in class AbstractStatementSQLExceptionpublic boolean execute(String sql) throws SQLException
execute in interface Statementexecute in class AbstractStatementSQLExceptionpublic boolean execute(String sql, Long reqId) throws SQLException
execute in class AbstractStatementSQLExceptionpublic int getQueryTimeout()
throws SQLException
getQueryTimeout in interface StatementgetQueryTimeout in class AbstractStatementSQLExceptionpublic void setQueryTimeout(int seconds)
throws SQLException
setQueryTimeout in interface StatementsetQueryTimeout in class AbstractStatementSQLExceptionpublic ResultSet getResultSet() throws SQLException
getResultSet in interface StatementgetResultSet in class AbstractStatementSQLExceptionpublic int getUpdateCount()
throws SQLException
getUpdateCount in interface StatementgetUpdateCount in class AbstractStatementSQLExceptionpublic Connection getConnection() throws SQLException
getConnection in interface StatementgetConnection in class AbstractStatementSQLExceptionpublic boolean isClosed()
throws SQLException
isClosed in interface StatementisClosed in class AbstractStatementSQLExceptionprotected void checkBlobSupport()
throws SQLException
SQLExceptionCopyright © 2025. All rights reserved.