public class DruidPooledStatement extends PoolableWrapper implements Statement
CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO
Constructor and Description |
---|
DruidPooledStatement(DruidPooledConnection conn,
Statement stmt) |
isWrapperFor, unwrap
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
executeLargeBatch, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, getLargeMaxRows, getLargeUpdateCount, setLargeMaxRows
isWrapperFor, unwrap
public DruidPooledStatement(DruidPooledConnection conn, Statement stmt)
public int getFetchRowPeak()
public DruidPooledConnection getPoolableConnection()
public Statement getStatement()
public void incrementExecuteCount()
public final ResultSet executeQuery(String sql) throws SQLException
executeQuery
in interface Statement
SQLException
public final int executeUpdate(String sql) throws SQLException
executeUpdate
in interface Statement
SQLException
public final int executeUpdate(String sql, int autoGeneratedKeys) throws SQLException
executeUpdate
in interface Statement
SQLException
public final int executeUpdate(String sql, int[] columnIndexes) throws SQLException
executeUpdate
in interface Statement
SQLException
public final int executeUpdate(String sql, String[] columnNames) throws SQLException
executeUpdate
in interface Statement
SQLException
public final boolean execute(String sql, int autoGeneratedKeys) throws SQLException
execute
in interface Statement
SQLException
public final boolean execute(String sql, int[] columnIndexes) throws SQLException
execute
in interface Statement
SQLException
public final boolean execute(String sql, String[] columnNames) throws SQLException
execute
in interface Statement
SQLException
public int getMaxFieldSize() throws SQLException
getMaxFieldSize
in interface Statement
SQLException
public void close() throws SQLException
close
in interface AutoCloseable
close
in interface Statement
SQLException
public void setMaxFieldSize(int max) throws SQLException
setMaxFieldSize
in interface Statement
SQLException
public final int getMaxRows() throws SQLException
getMaxRows
in interface Statement
SQLException
public void setMaxRows(int max) throws SQLException
setMaxRows
in interface Statement
SQLException
public final void setEscapeProcessing(boolean enable) throws SQLException
setEscapeProcessing
in interface Statement
SQLException
public final int getQueryTimeout() throws SQLException
getQueryTimeout
in interface Statement
SQLException
public void setQueryTimeout(int seconds) throws SQLException
setQueryTimeout
in interface Statement
SQLException
public final void cancel() throws SQLException
cancel
in interface Statement
SQLException
public final SQLWarning getWarnings() throws SQLException
getWarnings
in interface Statement
SQLException
public final void clearWarnings() throws SQLException
clearWarnings
in interface Statement
SQLException
public final void setCursorName(String name) throws SQLException
setCursorName
in interface Statement
SQLException
public final boolean execute(String sql) throws SQLException
execute
in interface Statement
SQLException
public final ResultSet getResultSet() throws SQLException
getResultSet
in interface Statement
SQLException
public final int getUpdateCount() throws SQLException
getUpdateCount
in interface Statement
SQLException
public final boolean getMoreResults() throws SQLException
getMoreResults
in interface Statement
SQLException
public void setFetchDirection(int direction) throws SQLException
setFetchDirection
in interface Statement
SQLException
public final int getFetchDirection() throws SQLException
getFetchDirection
in interface Statement
SQLException
public void setFetchSize(int rows) throws SQLException
setFetchSize
in interface Statement
SQLException
public final int getFetchSize() throws SQLException
getFetchSize
in interface Statement
SQLException
public final int getResultSetConcurrency() throws SQLException
getResultSetConcurrency
in interface Statement
SQLException
public final int getResultSetType() throws SQLException
getResultSetType
in interface Statement
SQLException
public final void addBatch(String sql) throws SQLException
addBatch
in interface Statement
SQLException
public final void clearBatch() throws SQLException
clearBatch
in interface Statement
SQLException
public int[] executeBatch() throws SQLException
executeBatch
in interface Statement
SQLException
public final Connection getConnection() throws SQLException
getConnection
in interface Statement
SQLException
public final boolean getMoreResults(int current) throws SQLException
getMoreResults
in interface Statement
SQLException
public final ResultSet getGeneratedKeys() throws SQLException
getGeneratedKeys
in interface Statement
SQLException
public final int getResultSetHoldability() throws SQLException
getResultSetHoldability
in interface Statement
SQLException
public final boolean isClosed() throws SQLException
isClosed
in interface Statement
SQLException
public final void setPoolable(boolean poolable) throws SQLException
setPoolable
in interface Statement
SQLException
public final boolean isPoolable() throws SQLException
isPoolable
in interface Statement
SQLException
public void closeOnCompletion() throws SQLException
closeOnCompletion
in interface Statement
SQLException
public boolean isCloseOnCompletion() throws SQLException
isCloseOnCompletion
in interface Statement
SQLException
Copyright © 2013–2017 Alibaba Group. All rights reserved.