Package com.alibaba.druid.proxy.jdbc
Class StatementProxyImpl
java.lang.Object
com.alibaba.druid.proxy.jdbc.WrapperProxyImpl
com.alibaba.druid.proxy.jdbc.StatementProxyImpl
- All Implemented Interfaces:
StatementProxy,WrapperProxy,AutoCloseable,Statement,Wrapper
- Direct Known Subclasses:
PreparedStatementProxyImpl
- Author:
- wenshao [szujobs@hotmail.com]
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected Stringprotected longprotected longprotected StatementExecuteTypeprotected JdbcSqlStatprotected Statementprotected IntegerFields inherited from interface java.sql.Statement
CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO -
Constructor Summary
ConstructorsConstructorDescriptionStatementProxyImpl(ConnectionProxy connection, Statement statement, long id) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidcancel()voidvoidvoidclose()voidfinal FilterChainImplbooleanbooleanbooleanbooleanint[]executeQuery(String sql) intexecuteUpdate(String sql) intexecuteUpdate(String sql, int autoGeneratedKeys) intexecuteUpdate(String sql, int[] columnIndexes) intexecuteUpdate(String sql, String[] columnNames) intintlonglongintintbooleanbooleangetMoreResults(int current) getParameter(int i) intintintintintintbooleanisClosed()booleanbooleanbooleanbooleanisWrapperFor(Class<?> iface) final voidvoidsetCursorName(String name) voidsetEscapeProcessing(boolean enable) voidsetFetchDirection(int direction) voidsetFetchSize(int rows) voidvoidsetLastExecuteStartNano(long lastExecuteStartNano) voidvoidsetLastExecuteTimeNano(long lastExecuteTimeNano) voidsetMaxFieldSize(int max) voidsetMaxRows(int max) voidsetPoolable(boolean poolable) voidsetQueryTimeout(int seconds) voidsetSqlStat(JdbcSqlStat sqlStat) <T> TMethods inherited from class com.alibaba.druid.proxy.jdbc.WrapperProxyImpl
clearAttributes, getAttribute, getAttributes, getAttributesSize, getId, putAttributeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.sql.Statement
enquoteIdentifier, enquoteLiteral, enquoteNCharLiteral, executeLargeBatch, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, getLargeMaxRows, getLargeUpdateCount, isSimpleIdentifier, setLargeMaxRowsMethods inherited from interface com.alibaba.druid.proxy.jdbc.WrapperProxy
clearAttributes, getAttribute, getAttributes, getAttributesSize, getId, putAttribute
-
Field Details
-
statement
-
lastExecuteSql
-
lastExecuteStartNano
protected long lastExecuteStartNano -
lastExecuteTimeNano
protected long lastExecuteTimeNano -
sqlStat
-
firstResultSet
protected boolean firstResultSet -
batchSqlList
-
lastExecuteType
-
updateCount
-
-
Constructor Details
-
StatementProxyImpl
-
-
Method Details
-
getConnectionProxy
- Specified by:
getConnectionProxyin interfaceStatementProxy
-
getRawObject
- Specified by:
getRawObjectin interfaceStatementProxy- Specified by:
getRawObjectin interfaceWrapperProxy- Overrides:
getRawObjectin classWrapperProxyImpl
-
createChain
- Specified by:
createChainin classWrapperProxyImpl
-
recycleFilterChain
-
addBatch
- Specified by:
addBatchin interfaceStatement- Throws:
SQLException
-
cancel
- Specified by:
cancelin interfaceStatement- Throws:
SQLException
-
clearBatch
- Specified by:
clearBatchin interfaceStatement- Throws:
SQLException
-
clearWarnings
- Specified by:
clearWarningsin interfaceStatement- Throws:
SQLException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceStatement- Throws:
SQLException
-
execute
- Specified by:
executein interfaceStatement- Throws:
SQLException
-
execute
- Specified by:
executein interfaceStatement- Throws:
SQLException
-
execute
- Specified by:
executein interfaceStatement- Throws:
SQLException
-
execute
- Specified by:
executein interfaceStatement- Throws:
SQLException
-
executeBatch
- Specified by:
executeBatchin interfaceStatement- Throws:
SQLException
-
executeQuery
- Specified by:
executeQueryin interfaceStatement- Throws:
SQLException
-
executeUpdate
- Specified by:
executeUpdatein interfaceStatement- Throws:
SQLException
-
executeUpdate
- Specified by:
executeUpdatein interfaceStatement- Throws:
SQLException
-
executeUpdate
- Specified by:
executeUpdatein interfaceStatement- Throws:
SQLException
-
executeUpdate
- Specified by:
executeUpdatein interfaceStatement- Throws:
SQLException
-
getConnection
- Specified by:
getConnectionin interfaceStatement- Throws:
SQLException
-
getFetchDirection
- Specified by:
getFetchDirectionin interfaceStatement- Throws:
SQLException
-
getFetchSize
- Specified by:
getFetchSizein interfaceStatement- Throws:
SQLException
-
getGeneratedKeys
- Specified by:
getGeneratedKeysin interfaceStatement- Throws:
SQLException
-
getMaxFieldSize
- Specified by:
getMaxFieldSizein interfaceStatement- Throws:
SQLException
-
getMaxRows
- Specified by:
getMaxRowsin interfaceStatement- Throws:
SQLException
-
getMoreResults
- Specified by:
getMoreResultsin interfaceStatement- Throws:
SQLException
-
getMoreResults
- Specified by:
getMoreResultsin interfaceStatement- Throws:
SQLException
-
getQueryTimeout
- Specified by:
getQueryTimeoutin interfaceStatement- Throws:
SQLException
-
getResultSet
- Specified by:
getResultSetin interfaceStatement- Throws:
SQLException
-
getResultSetConcurrency
- Specified by:
getResultSetConcurrencyin interfaceStatement- Throws:
SQLException
-
getResultSetHoldability
- Specified by:
getResultSetHoldabilityin interfaceStatement- Throws:
SQLException
-
getResultSetType
- Specified by:
getResultSetTypein interfaceStatement- Throws:
SQLException
-
getUpdateCount
- Specified by:
getUpdateCountin interfaceStatement- Throws:
SQLException
-
getWarnings
- Specified by:
getWarningsin interfaceStatement- Throws:
SQLException
-
isClosed
- Specified by:
isClosedin interfaceStatement- Throws:
SQLException
-
isPoolable
- Specified by:
isPoolablein interfaceStatement- Throws:
SQLException
-
setCursorName
- Specified by:
setCursorNamein interfaceStatement- Throws:
SQLException
-
setEscapeProcessing
- Specified by:
setEscapeProcessingin interfaceStatement- Throws:
SQLException
-
setFetchDirection
- Specified by:
setFetchDirectionin interfaceStatement- Throws:
SQLException
-
setFetchSize
- Specified by:
setFetchSizein interfaceStatement- Throws:
SQLException
-
setMaxFieldSize
- Specified by:
setMaxFieldSizein interfaceStatement- Throws:
SQLException
-
setMaxRows
- Specified by:
setMaxRowsin interfaceStatement- Throws:
SQLException
-
setPoolable
- Specified by:
setPoolablein interfaceStatement- Throws:
SQLException
-
setQueryTimeout
- Specified by:
setQueryTimeoutin interfaceStatement- Throws:
SQLException
-
getBatchSqlList
- Specified by:
getBatchSqlListin interfaceStatementProxy
-
getBatchSql
- Specified by:
getBatchSqlin interfaceStatementProxy
-
getLastExecuteSql
- Specified by:
getLastExecuteSqlin interfaceStatementProxy
-
closeOnCompletion
- Specified by:
closeOnCompletionin interfaceStatement- Throws:
SQLException
-
isCloseOnCompletion
- Specified by:
isCloseOnCompletionin interfaceStatement- Throws:
SQLException
-
getParameters
- Specified by:
getParametersin interfaceStatementProxy
-
getSqlStat
- Specified by:
getSqlStatin interfaceStatementProxy
-
setSqlStat
- Specified by:
setSqlStatin interfaceStatementProxy
-
getLastExecuteTimeNano
public long getLastExecuteTimeNano()- Specified by:
getLastExecuteTimeNanoin interfaceStatementProxy
-
setLastExecuteTimeNano
public void setLastExecuteTimeNano(long lastExecuteTimeNano) - Specified by:
setLastExecuteTimeNanoin interfaceStatementProxy
-
setLastExecuteTimeNano
public void setLastExecuteTimeNano()- Specified by:
setLastExecuteTimeNanoin interfaceStatementProxy
-
getLastExecuteStartNano
public long getLastExecuteStartNano()- Specified by:
getLastExecuteStartNanoin interfaceStatementProxy
-
setLastExecuteStartNano
public void setLastExecuteStartNano(long lastExecuteStartNano) - Specified by:
setLastExecuteStartNanoin interfaceStatementProxy
-
setLastExecuteStartNano
public void setLastExecuteStartNano()- Specified by:
setLastExecuteStartNanoin interfaceStatementProxy
-
getLastExecuteType
- Specified by:
getLastExecuteTypein interfaceStatementProxy
-
isFirstResultSet
public boolean isFirstResultSet()- Specified by:
isFirstResultSetin interfaceStatementProxy
-
unwrap
- Specified by:
unwrapin interfaceWrapper- Overrides:
unwrapin classWrapperProxyImpl- Throws:
SQLException
-
isWrapperFor
- Specified by:
isWrapperForin interfaceWrapper- Overrides:
isWrapperForin classWrapperProxyImpl- Throws:
SQLException
-
getParametersSize
public int getParametersSize()- Specified by:
getParametersSizein interfaceStatementProxy
-
getParameter
- Specified by:
getParameterin interfaceStatementProxy
-