public class StatementWrapper
extends java.lang.Object
implements java.sql.Statement
| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected AdditionalWarnLogInfo |
additionalWarnLogInfo |
protected boolean |
countSqlExecution |
protected java.util.concurrent.atomic.AtomicInteger |
sqlCount |
protected boolean |
warnLogBefore |
protected int |
warnLogThreshold |
| コンストラクタと説明 |
|---|
StatementWrapper(java.sql.Statement wrapped,
ConnectionWrapper con,
int warnLogThreshold,
boolean warnLogBefore,
boolean countSqlExecution) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
addBatch(java.lang.String sql) |
void |
cancel() |
void |
clearBatch() |
void |
clearWarnings() |
void |
close() |
void |
closeOnCompletion() |
boolean |
execute(java.lang.String sql) |
boolean |
execute(java.lang.String sql,
int autoGeneratedKeys) |
boolean |
execute(java.lang.String sql,
int[] columnIndexes) |
boolean |
execute(java.lang.String sql,
java.lang.String[] columnNames) |
int[] |
executeBatch() |
java.sql.ResultSet |
executeQuery(java.lang.String sql) |
int |
executeUpdate(java.lang.String sql) |
int |
executeUpdate(java.lang.String sql,
int autoGeneratedKeys) |
int |
executeUpdate(java.lang.String sql,
int[] columnIndexes) |
int |
executeUpdate(java.lang.String sql,
java.lang.String[] columnNames) |
AdditionalWarnLogInfo |
getAdditionalWarnLogInfo() |
java.sql.Connection |
getConnection() |
int |
getFetchDirection() |
int |
getFetchSize() |
java.sql.ResultSet |
getGeneratedKeys() |
int |
getMaxFieldSize() |
int |
getMaxRows() |
boolean |
getMoreResults() |
boolean |
getMoreResults(int current) |
int |
getQueryTimeout() |
java.sql.ResultSet |
getResultSet() |
int |
getResultSetConcurrency() |
int |
getResultSetHoldability() |
int |
getResultSetType() |
int |
getUpdateCount() |
java.sql.SQLWarning |
getWarnings() |
boolean |
isClosed() |
boolean |
isCloseOnCompletion() |
boolean |
isPoolable() |
boolean |
isWrapperFor(java.lang.Class<?> iface) |
void |
setAdditionalWarnLogInfo(AdditionalWarnLogInfo additionalWarnLogInfo) |
void |
setCursorName(java.lang.String name) |
void |
setEscapeProcessing(boolean enable) |
void |
setFetchDirection(int direction) |
void |
setFetchSize(int rows) |
void |
setMaxFieldSize(int max) |
void |
setMaxRows(int max) |
void |
setPoolable(boolean poolable) |
void |
setQueryTimeout(int seconds) |
<T> T |
unwrap(java.lang.Class<T> iface) |
protected int warnLogThreshold
protected boolean warnLogBefore
protected boolean countSqlExecution
protected AdditionalWarnLogInfo additionalWarnLogInfo
protected java.util.concurrent.atomic.AtomicInteger sqlCount
StatementWrapper(java.sql.Statement wrapped,
ConnectionWrapper con,
int warnLogThreshold,
boolean warnLogBefore,
boolean countSqlExecution)
public AdditionalWarnLogInfo getAdditionalWarnLogInfo()
public void setAdditionalWarnLogInfo(AdditionalWarnLogInfo additionalWarnLogInfo)
public final void addBatch(java.lang.String sql)
throws java.sql.SQLException
addBatch インタフェース内 java.sql.Statementjava.sql.SQLExceptionpublic final void cancel()
throws java.sql.SQLException
cancel インタフェース内 java.sql.Statementjava.sql.SQLExceptionpublic final void clearBatch()
throws java.sql.SQLException
clearBatch インタフェース内 java.sql.Statementjava.sql.SQLExceptionpublic final void clearWarnings()
throws java.sql.SQLException
clearWarnings インタフェース内 java.sql.Statementjava.sql.SQLExceptionpublic final void close()
throws java.sql.SQLException
close インタフェース内 java.lang.AutoCloseableclose インタフェース内 java.sql.Statementjava.sql.SQLExceptionpublic final boolean execute(java.lang.String sql,
int autoGeneratedKeys)
throws java.sql.SQLException
execute インタフェース内 java.sql.Statementjava.sql.SQLExceptionpublic final boolean execute(java.lang.String sql,
int[] columnIndexes)
throws java.sql.SQLException
execute インタフェース内 java.sql.Statementjava.sql.SQLExceptionpublic final boolean execute(java.lang.String sql,
java.lang.String[] columnNames)
throws java.sql.SQLException
execute インタフェース内 java.sql.Statementjava.sql.SQLExceptionpublic final boolean execute(java.lang.String sql)
throws java.sql.SQLException
execute インタフェース内 java.sql.Statementjava.sql.SQLExceptionpublic int[] executeBatch()
throws java.sql.SQLException
executeBatch インタフェース内 java.sql.Statementjava.sql.SQLExceptionpublic final java.sql.ResultSet executeQuery(java.lang.String sql)
throws java.sql.SQLException
executeQuery インタフェース内 java.sql.Statementjava.sql.SQLExceptionpublic final int executeUpdate(java.lang.String sql,
int autoGeneratedKeys)
throws java.sql.SQLException
executeUpdate インタフェース内 java.sql.Statementjava.sql.SQLExceptionpublic final int executeUpdate(java.lang.String sql,
int[] columnIndexes)
throws java.sql.SQLException
executeUpdate インタフェース内 java.sql.Statementjava.sql.SQLExceptionpublic final int executeUpdate(java.lang.String sql,
java.lang.String[] columnNames)
throws java.sql.SQLException
executeUpdate インタフェース内 java.sql.Statementjava.sql.SQLExceptionpublic final int executeUpdate(java.lang.String sql)
throws java.sql.SQLException
executeUpdate インタフェース内 java.sql.Statementjava.sql.SQLExceptionpublic final java.sql.Connection getConnection()
throws java.sql.SQLException
getConnection インタフェース内 java.sql.Statementjava.sql.SQLExceptionpublic final int getFetchDirection()
throws java.sql.SQLException
getFetchDirection インタフェース内 java.sql.Statementjava.sql.SQLExceptionpublic final int getFetchSize()
throws java.sql.SQLException
getFetchSize インタフェース内 java.sql.Statementjava.sql.SQLExceptionpublic final java.sql.ResultSet getGeneratedKeys()
throws java.sql.SQLException
getGeneratedKeys インタフェース内 java.sql.Statementjava.sql.SQLExceptionpublic final int getMaxFieldSize()
throws java.sql.SQLException
getMaxFieldSize インタフェース内 java.sql.Statementjava.sql.SQLExceptionpublic final int getMaxRows()
throws java.sql.SQLException
getMaxRows インタフェース内 java.sql.Statementjava.sql.SQLExceptionpublic final boolean getMoreResults()
throws java.sql.SQLException
getMoreResults インタフェース内 java.sql.Statementjava.sql.SQLExceptionpublic final boolean getMoreResults(int current)
throws java.sql.SQLException
getMoreResults インタフェース内 java.sql.Statementjava.sql.SQLExceptionpublic final int getQueryTimeout()
throws java.sql.SQLException
getQueryTimeout インタフェース内 java.sql.Statementjava.sql.SQLExceptionpublic final java.sql.ResultSet getResultSet()
throws java.sql.SQLException
getResultSet インタフェース内 java.sql.Statementjava.sql.SQLExceptionpublic final int getResultSetConcurrency()
throws java.sql.SQLException
getResultSetConcurrency インタフェース内 java.sql.Statementjava.sql.SQLExceptionpublic final int getResultSetHoldability()
throws java.sql.SQLException
getResultSetHoldability インタフェース内 java.sql.Statementjava.sql.SQLExceptionpublic final int getResultSetType()
throws java.sql.SQLException
getResultSetType インタフェース内 java.sql.Statementjava.sql.SQLExceptionpublic final int getUpdateCount()
throws java.sql.SQLException
getUpdateCount インタフェース内 java.sql.Statementjava.sql.SQLExceptionpublic final java.sql.SQLWarning getWarnings()
throws java.sql.SQLException
getWarnings インタフェース内 java.sql.Statementjava.sql.SQLExceptionpublic final boolean isClosed()
throws java.sql.SQLException
isClosed インタフェース内 java.sql.Statementjava.sql.SQLExceptionpublic final boolean isPoolable()
throws java.sql.SQLException
isPoolable インタフェース内 java.sql.Statementjava.sql.SQLExceptionpublic final boolean isWrapperFor(java.lang.Class<?> iface)
throws java.sql.SQLException
isWrapperFor インタフェース内 java.sql.Wrapperjava.sql.SQLExceptionpublic final void setCursorName(java.lang.String name)
throws java.sql.SQLException
setCursorName インタフェース内 java.sql.Statementjava.sql.SQLExceptionpublic final void setEscapeProcessing(boolean enable)
throws java.sql.SQLException
setEscapeProcessing インタフェース内 java.sql.Statementjava.sql.SQLExceptionpublic final void setFetchDirection(int direction)
throws java.sql.SQLException
setFetchDirection インタフェース内 java.sql.Statementjava.sql.SQLExceptionpublic final void setFetchSize(int rows)
throws java.sql.SQLException
setFetchSize インタフェース内 java.sql.Statementjava.sql.SQLExceptionpublic final void setMaxFieldSize(int max)
throws java.sql.SQLException
setMaxFieldSize インタフェース内 java.sql.Statementjava.sql.SQLExceptionpublic final void setMaxRows(int max)
throws java.sql.SQLException
setMaxRows インタフェース内 java.sql.Statementjava.sql.SQLExceptionpublic final void setPoolable(boolean poolable)
throws java.sql.SQLException
setPoolable インタフェース内 java.sql.Statementjava.sql.SQLExceptionpublic final void setQueryTimeout(int seconds)
throws java.sql.SQLException
setQueryTimeout インタフェース内 java.sql.Statementjava.sql.SQLExceptionpublic final <T> T unwrap(java.lang.Class<T> iface)
throws java.sql.SQLException
unwrap インタフェース内 java.sql.Wrapperjava.sql.SQLExceptionpublic void closeOnCompletion()
throws java.sql.SQLException
closeOnCompletion インタフェース内 java.sql.Statementjava.sql.SQLExceptionpublic boolean isCloseOnCompletion()
throws java.sql.SQLException
isCloseOnCompletion インタフェース内 java.sql.Statementjava.sql.SQLException