org.seasar.framework.mock.sql
クラス MockStatement
java.lang.Object
org.seasar.framework.mock.sql.MockStatement
- すべての実装インタフェース:
- Statement
- 直系の既知のサブクラス:
- MockPreparedStatement
- public class MockStatement
- extends Object
- implements Statement
Statement
用のモッククラスです。
- 作成者:
- higa
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MockStatement
public MockStatement(MockConnection connection)
MockStatement
を作成します。
- パラメータ:
connection
- コネクション
MockStatement
public MockStatement(MockConnection connection,
int resultSetType,
int resultSetConcurrency)
MockStatement
を作成します。
- パラメータ:
connection
- コネクションresultSetType
- 結果セットタイプresultSetConcurrency
- 結果セット同時並行性
MockStatement
public MockStatement(MockConnection connection,
int resultSetType,
int resultSetConcurrency,
int resultSetHoldability)
MockStatement
を作成します。
- パラメータ:
connection
- コネクションresultSetType
- 結果セットタイプresultSetConcurrency
- 結果セット同時並行性resultSetHoldability
- 結果セット保持力
addBatch
public void addBatch(String sql)
throws SQLException
- 定義:
- インタフェース
Statement
内の addBatch
- 例外:
SQLException
cancel
public void cancel()
throws SQLException
- 定義:
- インタフェース
Statement
内の cancel
- 例外:
SQLException
clearBatch
public void clearBatch()
throws SQLException
- 定義:
- インタフェース
Statement
内の clearBatch
- 例外:
SQLException
clearWarnings
public void clearWarnings()
throws SQLException
- 定義:
- インタフェース
Statement
内の clearWarnings
- 例外:
SQLException
close
public void close()
throws SQLException
- 定義:
- インタフェース
Statement
内の close
- 例外:
SQLException
isClosed
public boolean isClosed()
- 閉じているかどうかを返します。
- 戻り値:
- 閉じているかどうか
setClosed
public void setClosed(boolean closed)
- 閉じているかどうかを設定します。
- パラメータ:
closed
- 閉じているかどうか
execute
public boolean execute(String sql)
throws SQLException
- 定義:
- インタフェース
Statement
内の execute
- 例外:
SQLException
execute
public boolean execute(String sql,
int autoGeneratedKeys)
throws SQLException
- 定義:
- インタフェース
Statement
内の execute
- 例外:
SQLException
execute
public boolean execute(String sql,
int[] columnIndexes)
throws SQLException
- 定義:
- インタフェース
Statement
内の execute
- 例外:
SQLException
execute
public boolean execute(String sql,
String[] columnNames)
throws SQLException
- 定義:
- インタフェース
Statement
内の execute
- 例外:
SQLException
executeBatch
public int[] executeBatch()
throws SQLException
- 定義:
- インタフェース
Statement
内の executeBatch
- 例外:
SQLException
executeQuery
public ResultSet executeQuery(String sql)
throws SQLException
- 定義:
- インタフェース
Statement
内の executeQuery
- 例外:
SQLException
executeUpdate
public int executeUpdate(String sql)
throws SQLException
- 定義:
- インタフェース
Statement
内の executeUpdate
- 例外:
SQLException
executeUpdate
public int executeUpdate(String sql,
int autoGeneratedKeys)
throws SQLException
- 定義:
- インタフェース
Statement
内の executeUpdate
- 例外:
SQLException
executeUpdate
public int executeUpdate(String sql,
int[] columnIndexes)
throws SQLException
- 定義:
- インタフェース
Statement
内の executeUpdate
- 例外:
SQLException
executeUpdate
public int executeUpdate(String sql,
String[] columnNames)
throws SQLException
- 定義:
- インタフェース
Statement
内の executeUpdate
- 例外:
SQLException
getConnection
public Connection getConnection()
throws SQLException
- 定義:
- インタフェース
Statement
内の getConnection
- 例外:
SQLException
getFetchDirection
public int getFetchDirection()
throws SQLException
- 定義:
- インタフェース
Statement
内の getFetchDirection
- 例外:
SQLException
getFetchSize
public int getFetchSize()
throws SQLException
- 定義:
- インタフェース
Statement
内の getFetchSize
- 例外:
SQLException
getGeneratedKeys
public ResultSet getGeneratedKeys()
throws SQLException
- 定義:
- インタフェース
Statement
内の getGeneratedKeys
- 例外:
SQLException
getMaxFieldSize
public int getMaxFieldSize()
throws SQLException
- 定義:
- インタフェース
Statement
内の getMaxFieldSize
- 例外:
SQLException
getMaxRows
public int getMaxRows()
throws SQLException
- 定義:
- インタフェース
Statement
内の getMaxRows
- 例外:
SQLException
getMoreResults
public boolean getMoreResults()
throws SQLException
- 定義:
- インタフェース
Statement
内の getMoreResults
- 例外:
SQLException
getMoreResults
public boolean getMoreResults(int current)
throws SQLException
- 定義:
- インタフェース
Statement
内の getMoreResults
- 例外:
SQLException
getQueryTimeout
public int getQueryTimeout()
throws SQLException
- 定義:
- インタフェース
Statement
内の getQueryTimeout
- 例外:
SQLException
getResultSet
public ResultSet getResultSet()
throws SQLException
- 定義:
- インタフェース
Statement
内の getResultSet
- 例外:
SQLException
getResultSetConcurrency
public int getResultSetConcurrency()
throws SQLException
- 定義:
- インタフェース
Statement
内の getResultSetConcurrency
- 例外:
SQLException
getResultSetHoldability
public int getResultSetHoldability()
throws SQLException
- 定義:
- インタフェース
Statement
内の getResultSetHoldability
- 例外:
SQLException
getResultSetType
public int getResultSetType()
throws SQLException
- 定義:
- インタフェース
Statement
内の getResultSetType
- 例外:
SQLException
getUpdateCount
public int getUpdateCount()
throws SQLException
- 定義:
- インタフェース
Statement
内の getUpdateCount
- 例外:
SQLException
getWarnings
public SQLWarning getWarnings()
throws SQLException
- 定義:
- インタフェース
Statement
内の getWarnings
- 例外:
SQLException
setCursorName
public void setCursorName(String name)
throws SQLException
- 定義:
- インタフェース
Statement
内の setCursorName
- 例外:
SQLException
setEscapeProcessing
public void setEscapeProcessing(boolean enable)
throws SQLException
- 定義:
- インタフェース
Statement
内の setEscapeProcessing
- 例外:
SQLException
setFetchDirection
public void setFetchDirection(int direction)
throws SQLException
- 定義:
- インタフェース
Statement
内の setFetchDirection
- 例外:
SQLException
setFetchSize
public void setFetchSize(int fetchSize)
throws SQLException
- 定義:
- インタフェース
Statement
内の setFetchSize
- 例外:
SQLException
setMaxFieldSize
public void setMaxFieldSize(int max)
throws SQLException
- 定義:
- インタフェース
Statement
内の setMaxFieldSize
- 例外:
SQLException
setMaxRows
public void setMaxRows(int maxRows)
throws SQLException
- 定義:
- インタフェース
Statement
内の setMaxRows
- 例外:
SQLException
setQueryTimeout
public void setQueryTimeout(int queryTimeout)
throws SQLException
- 定義:
- インタフェース
Statement
内の setQueryTimeout
- 例外:
SQLException
Copyright © 2004-2012 The Seasar Foundation. All Rights Reserved.