org.asyrinx.brownie.jdbc.logger
クラス LogStatement

java.lang.Object
  拡張org.asyrinx.brownie.core.util.Wrapper
      拡張org.asyrinx.brownie.jdbc.wrapper.StatementWrapper
          拡張org.asyrinx.brownie.jdbc.logger.LogStatement
すべての実装インタフェース:
java.sql.Statement
直系の既知のサブクラス:
LogPreparedStatement

public class LogStatement
extends StatementWrapper

作成者:
akima

フィールドの概要
protected  java.util.List batches
           
protected  CascadeNamedLog log
           
 
クラス org.asyrinx.brownie.core.util.Wrapper から継承したフィールド
wrapped
 
インタフェース java.sql.Statement から継承したフィールド
CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO
 
コンストラクタの概要
LogStatement(java.sql.Statement wrapped, CascadeNamedLog parentLog)
           
 
メソッドの概要
 void addBatch(java.lang.String sql)
           
 void clearBatch()
           
 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)
           
protected  void log(java.lang.Object message)
           
protected  void log(java.lang.Object message, java.lang.Throwable t)
           
protected  void logBatch(int[] results)
           
protected  void logBatch(java.lang.Throwable t)
           
 
クラス org.asyrinx.brownie.jdbc.wrapper.StatementWrapper から継承したメソッド
cancel, clearWarnings, close, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows, setQueryTimeout
 
クラス org.asyrinx.brownie.core.util.Wrapper から継承したメソッド
getCore, getCoreWrapped, getWrapped
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

log

protected final CascadeNamedLog log

batches

protected final java.util.List batches
コンストラクタの詳細

LogStatement

public LogStatement(java.sql.Statement wrapped,
                    CascadeNamedLog parentLog)
パラメータ:
wrapped -
メソッドの詳細

log

protected void log(java.lang.Object message)

log

protected void log(java.lang.Object message,
                   java.lang.Throwable t)

logBatch

protected void logBatch(int[] results)

logBatch

protected void logBatch(java.lang.Throwable t)

addBatch

public void addBatch(java.lang.String sql)
              throws java.sql.SQLException
定義:
インタフェース java.sql.Statement 内の addBatch
オーバーライド:
クラス StatementWrapper 内の addBatch
パラメータ:
sql -
例外:
java.sql.SQLException

clearBatch

public void clearBatch()
                throws java.sql.SQLException
定義:
インタフェース java.sql.Statement 内の clearBatch
オーバーライド:
クラス StatementWrapper 内の clearBatch
例外:
java.sql.SQLException

execute

public boolean execute(java.lang.String sql)
                throws java.sql.SQLException
定義:
インタフェース java.sql.Statement 内の execute
オーバーライド:
クラス StatementWrapper 内の execute
パラメータ:
sql -
戻り値:
@throws java.sql.SQLException
例外:
java.sql.SQLException

execute

public boolean execute(java.lang.String sql,
                       int autoGeneratedKeys)
                throws java.sql.SQLException
定義:
インタフェース java.sql.Statement 内の execute
オーバーライド:
クラス StatementWrapper 内の execute
パラメータ:
sql -
autoGeneratedKeys -
戻り値:
@throws java.sql.SQLException
例外:
java.sql.SQLException

execute

public boolean execute(java.lang.String sql,
                       int[] columnIndexes)
                throws java.sql.SQLException
定義:
インタフェース java.sql.Statement 内の execute
オーバーライド:
クラス StatementWrapper 内の execute
パラメータ:
sql -
columnIndexes -
戻り値:
@throws java.sql.SQLException
例外:
java.sql.SQLException

execute

public boolean execute(java.lang.String sql,
                       java.lang.String[] columnNames)
                throws java.sql.SQLException
定義:
インタフェース java.sql.Statement 内の execute
オーバーライド:
クラス StatementWrapper 内の execute
パラメータ:
sql -
columnNames -
戻り値:
@throws java.sql.SQLException
例外:
java.sql.SQLException

executeBatch

public int[] executeBatch()
                   throws java.sql.SQLException
定義:
インタフェース java.sql.Statement 内の executeBatch
オーバーライド:
クラス StatementWrapper 内の executeBatch
戻り値:
@throws java.sql.SQLException
例外:
java.sql.SQLException

executeQuery

public java.sql.ResultSet executeQuery(java.lang.String sql)
                                throws java.sql.SQLException
定義:
インタフェース java.sql.Statement 内の executeQuery
オーバーライド:
クラス StatementWrapper 内の executeQuery
パラメータ:
sql -
戻り値:
@throws java.sql.SQLException
例外:
java.sql.SQLException

executeUpdate

public int executeUpdate(java.lang.String sql)
                  throws java.sql.SQLException
定義:
インタフェース java.sql.Statement 内の executeUpdate
オーバーライド:
クラス StatementWrapper 内の executeUpdate
パラメータ:
sql -
戻り値:
@throws java.sql.SQLException
例外:
java.sql.SQLException

executeUpdate

public int executeUpdate(java.lang.String sql,
                         int autoGeneratedKeys)
                  throws java.sql.SQLException
定義:
インタフェース java.sql.Statement 内の executeUpdate
オーバーライド:
クラス StatementWrapper 内の executeUpdate
パラメータ:
sql -
autoGeneratedKeys -
戻り値:
@throws java.sql.SQLException
例外:
java.sql.SQLException

executeUpdate

public int executeUpdate(java.lang.String sql,
                         int[] columnIndexes)
                  throws java.sql.SQLException
定義:
インタフェース java.sql.Statement 内の executeUpdate
オーバーライド:
クラス StatementWrapper 内の executeUpdate
パラメータ:
sql -
columnIndexes -
戻り値:
@throws java.sql.SQLException
例外:
java.sql.SQLException

executeUpdate

public int executeUpdate(java.lang.String sql,
                         java.lang.String[] columnNames)
                  throws java.sql.SQLException
定義:
インタフェース java.sql.Statement 内の executeUpdate
オーバーライド:
クラス StatementWrapper 内の executeUpdate
パラメータ:
sql -
columnNames -
戻り値:
@throws java.sql.SQLException
例外:
java.sql.SQLException


Copyright © 2004 asyrinx organization. All Rights Reserved.