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() |
long |
getQueryTimeoutInMs() |
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 final Transport transport
protected String database
protected final 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
SQLExceptionpublic ResultSet executeQuery(String sql, Long reqId) throws SQLException
executeQuery in class AbstractStatementSQLExceptionpublic int executeUpdate(String sql) throws SQLException
SQLExceptionpublic int executeUpdate(String sql, Long reqId) throws SQLException
executeUpdate in class AbstractStatementSQLExceptionpublic void close()
throws SQLException
SQLExceptionpublic boolean execute(String sql) throws SQLException
SQLExceptionpublic boolean execute(String sql, Long reqId) throws SQLException
execute in class AbstractStatementSQLExceptionpublic int getQueryTimeout()
throws SQLException
getQueryTimeout in interface StatementgetQueryTimeout in class AbstractStatementSQLExceptionpublic long getQueryTimeoutInMs()
public void setQueryTimeout(int seconds)
throws SQLException
setQueryTimeout in interface StatementsetQueryTimeout in class AbstractStatementSQLExceptionpublic ResultSet getResultSet() throws SQLException
SQLExceptionpublic int getUpdateCount()
throws SQLException
SQLExceptionpublic Connection getConnection() throws SQLException
SQLExceptionpublic boolean isClosed()
throws SQLException
SQLExceptionprotected void checkBlobSupport()
throws SQLException
SQLExceptionCopyright © 2026. All rights reserved.