public class StatementProxyImpl extends WrapperProxyImpl implements StatementProxy
CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO
Constructor and Description |
---|
StatementProxyImpl(ConnectionProxy connection,
Statement statement,
long id) |
clearAttributes, getAttribute, getAttributes, getAttributesSize, getId, putAttribute
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
executeLargeBatch, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, getLargeMaxRows, getLargeUpdateCount, setLargeMaxRows
clearAttributes, getAttribute, getAttributes, getAttributesSize, getId, putAttribute
public StatementProxyImpl(ConnectionProxy connection, Statement statement, long id)
public ConnectionProxy getConnectionProxy()
getConnectionProxy
in interface StatementProxy
public Statement getRawObject()
getRawObject
in interface StatementProxy
getRawObject
in interface WrapperProxy
getRawObject
in class WrapperProxyImpl
public FilterChainImpl createChain()
createChain
in class WrapperProxyImpl
public void recycleFilterChain(FilterChainImpl chain)
public void addBatch(String sql) throws SQLException
addBatch
in interface Statement
SQLException
public void cancel() throws SQLException
cancel
in interface Statement
SQLException
public void clearBatch() throws SQLException
clearBatch
in interface Statement
SQLException
public void clearWarnings() throws SQLException
clearWarnings
in interface Statement
SQLException
public void close() throws SQLException
close
in interface AutoCloseable
close
in interface Statement
SQLException
public boolean execute(String sql) throws SQLException
execute
in interface Statement
SQLException
public boolean execute(String sql, int autoGeneratedKeys) throws SQLException
execute
in interface Statement
SQLException
public boolean execute(String sql, int[] columnIndexes) throws SQLException
execute
in interface Statement
SQLException
public boolean execute(String sql, String[] columnNames) throws SQLException
execute
in interface Statement
SQLException
public int[] executeBatch() throws SQLException
executeBatch
in interface Statement
SQLException
public ResultSet executeQuery(String sql) throws SQLException
executeQuery
in interface Statement
SQLException
public int executeUpdate(String sql) throws SQLException
executeUpdate
in interface Statement
SQLException
public int executeUpdate(String sql, int autoGeneratedKeys) throws SQLException
executeUpdate
in interface Statement
SQLException
public int executeUpdate(String sql, int[] columnIndexes) throws SQLException
executeUpdate
in interface Statement
SQLException
public int executeUpdate(String sql, String[] columnNames) throws SQLException
executeUpdate
in interface Statement
SQLException
public Connection getConnection() throws SQLException
getConnection
in interface Statement
SQLException
public int getFetchDirection() throws SQLException
getFetchDirection
in interface Statement
SQLException
public int getFetchSize() throws SQLException
getFetchSize
in interface Statement
SQLException
public ResultSet getGeneratedKeys() throws SQLException
getGeneratedKeys
in interface Statement
SQLException
public int getMaxFieldSize() throws SQLException
getMaxFieldSize
in interface Statement
SQLException
public int getMaxRows() throws SQLException
getMaxRows
in interface Statement
SQLException
public boolean getMoreResults() throws SQLException
getMoreResults
in interface Statement
SQLException
public boolean getMoreResults(int current) throws SQLException
getMoreResults
in interface Statement
SQLException
public int getQueryTimeout() throws SQLException
getQueryTimeout
in interface Statement
SQLException
public ResultSet getResultSet() throws SQLException
getResultSet
in interface Statement
SQLException
public int getResultSetConcurrency() throws SQLException
getResultSetConcurrency
in interface Statement
SQLException
public int getResultSetHoldability() throws SQLException
getResultSetHoldability
in interface Statement
SQLException
public int getResultSetType() throws SQLException
getResultSetType
in interface Statement
SQLException
public int getUpdateCount() throws SQLException
getUpdateCount
in interface Statement
SQLException
public SQLWarning getWarnings() throws SQLException
getWarnings
in interface Statement
SQLException
public boolean isClosed() throws SQLException
isClosed
in interface Statement
SQLException
public boolean isPoolable() throws SQLException
isPoolable
in interface Statement
SQLException
public void setCursorName(String name) throws SQLException
setCursorName
in interface Statement
SQLException
public void setEscapeProcessing(boolean enable) throws SQLException
setEscapeProcessing
in interface Statement
SQLException
public void setFetchDirection(int direction) throws SQLException
setFetchDirection
in interface Statement
SQLException
public void setFetchSize(int rows) throws SQLException
setFetchSize
in interface Statement
SQLException
public void setMaxFieldSize(int max) throws SQLException
setMaxFieldSize
in interface Statement
SQLException
public void setMaxRows(int max) throws SQLException
setMaxRows
in interface Statement
SQLException
public void setPoolable(boolean poolable) throws SQLException
setPoolable
in interface Statement
SQLException
public void setQueryTimeout(int seconds) throws SQLException
setQueryTimeout
in interface Statement
SQLException
public List<String> getBatchSqlList()
getBatchSqlList
in interface StatementProxy
public String getBatchSql()
getBatchSql
in interface StatementProxy
public String getLastExecuteSql()
getLastExecuteSql
in interface StatementProxy
public void closeOnCompletion() throws SQLException
closeOnCompletion
in interface Statement
SQLException
public boolean isCloseOnCompletion() throws SQLException
isCloseOnCompletion
in interface Statement
SQLException
public Map<Integer,JdbcParameter> getParameters()
getParameters
in interface StatementProxy
public JdbcSqlStat getSqlStat()
getSqlStat
in interface StatementProxy
public void setSqlStat(JdbcSqlStat sqlStat)
setSqlStat
in interface StatementProxy
public long getLastExecuteTimeNano()
getLastExecuteTimeNano
in interface StatementProxy
public void setLastExecuteTimeNano(long lastExecuteTimeNano)
setLastExecuteTimeNano
in interface StatementProxy
public void setLastExecuteTimeNano()
setLastExecuteTimeNano
in interface StatementProxy
public long getLastExecuteStartNano()
getLastExecuteStartNano
in interface StatementProxy
public void setLastExecuteStartNano(long lastExecuteStartNano)
setLastExecuteStartNano
in interface StatementProxy
public void setLastExecuteStartNano()
setLastExecuteStartNano
in interface StatementProxy
public StatementExecuteType getLastExecuteType()
getLastExecuteType
in interface StatementProxy
public boolean isFirstResultSet()
isFirstResultSet
in interface StatementProxy
public <T> T unwrap(Class<T> iface) throws SQLException
unwrap
in interface Wrapper
unwrap
in class WrapperProxyImpl
SQLException
public boolean isWrapperFor(Class<?> iface) throws SQLException
isWrapperFor
in interface Wrapper
isWrapperFor
in class WrapperProxyImpl
SQLException
public int getParametersSize()
getParametersSize
in interface StatementProxy
public JdbcParameter getParameter(int i)
getParameter
in interface StatementProxy
Copyright © 2013–2017 Alibaba Group. All rights reserved.