|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.seasar.framework.mock.sql.MockConnection
Connection
用のモッククラスです。
フィールドの概要 |
インタフェース java.sql.Connection から継承したフィールド |
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE |
コンストラクタの概要 | |
MockConnection()
|
メソッドの概要 | |
void |
clearWarnings()
|
void |
close()
|
void |
commit()
|
MockStatement |
createMockStatement()
モック用のステートメントを作成します。 |
MockStatement |
createMockStatement(int resultSetType,
int resultSetConcurrency)
モック用のステートメントを作成します。 |
MockStatement |
createMockStatement(int resultSetType,
int resultSetConcurrency,
int resultSetHoldability)
モック用のステートメントを作成します。 |
Statement |
createStatement()
|
Statement |
createStatement(int resultSetType,
int resultSetConcurrency)
|
Statement |
createStatement(int resultSetType,
int resultSetConcurrency,
int resultSetHoldability)
|
boolean |
getAutoCommit()
|
String |
getCatalog()
|
int |
getHoldability()
|
DatabaseMetaData |
getMetaData()
|
int |
getTransactionIsolation()
|
Map |
getTypeMap()
|
SQLWarning |
getWarnings()
|
boolean |
isClosed()
|
boolean |
isCommitted()
コミットしているかどうかを返します。 |
boolean |
isReadOnly()
|
boolean |
isRolledback()
ロールバックしたかどうかを返します。 |
String |
nativeSQL(String sql)
|
CallableStatement |
prepareCall(String sql)
|
CallableStatement |
prepareCall(String sql,
int resultSetType,
int resultSetConcurrency)
|
CallableStatement |
prepareCall(String sql,
int resultSetType,
int resultSetConcurrency,
int resultSetHoldability)
|
MockCallableStatement |
prepareMockCall(String sql)
モック用の呼び出し可能なステートメントを作成します。 |
MockCallableStatement |
prepareMockCall(String sql,
int resultSetType,
int resultSetConcurrency)
モック用の呼び出し可能なステートメントを作成します。 |
MockCallableStatement |
prepareMockCall(String sql,
int resultSetType,
int resultSetConcurrency,
int resultSetHoldability)
モック用の呼び出し可能なステートメントを作成します。 |
MockPreparedStatement |
prepareMockStatement(String sql)
モック用の準備されたステートメントを返します。 |
MockPreparedStatement |
prepareMockStatement(String sql,
int autoGeneratedKeys)
モック用の準備されたステートメントを返します。 |
MockPreparedStatement |
prepareMockStatement(String sql,
int[] columnIndices)
モック用の準備されたステートメントを返します。 |
MockPreparedStatement |
prepareMockStatement(String sql,
int resultSetType,
int resultSetConcurrency)
モック用の準備されたステートメントを作成します。 |
MockPreparedStatement |
prepareMockStatement(String sql,
int resultSetType,
int resultSetConcurrency,
int resultSetHoldability)
モック用の準備されたステートメントを作成します。 |
MockPreparedStatement |
prepareMockStatement(String sql,
String[] columnNames)
モック用の準備されたステートメントを返します。 |
PreparedStatement |
prepareStatement(String sql)
|
PreparedStatement |
prepareStatement(String sql,
int autoGeneratedKeys)
|
PreparedStatement |
prepareStatement(String sql,
int[] columnIndices)
|
PreparedStatement |
prepareStatement(String sql,
int resultSetType,
int resultSetConcurrency)
|
PreparedStatement |
prepareStatement(String sql,
int resultSetType,
int resultSetConcurrency,
int resultSetHoldability)
|
PreparedStatement |
prepareStatement(String sql,
String[] columnNames)
|
void |
releaseSavepoint(Savepoint savepoint)
|
void |
rollback()
|
void |
rollback(Savepoint savepoint)
|
void |
setAutoCommit(boolean autoCommit)
|
void |
setCatalog(String catalog)
|
void |
setClosed(boolean closed)
閉じているかどうかを設定します。 |
void |
setCommitted(boolean committed)
コミットしているかどうかを設定します。 |
void |
setHoldability(int holdability)
|
void |
setReadOnly(boolean readOnly)
|
void |
setRolledback(boolean rolledback)
ロールバックしたかどうかを設定します。 |
Savepoint |
setSavepoint()
|
Savepoint |
setSavepoint(String name)
|
void |
setTransactionIsolation(int level)
|
void |
setTypeMap(Map arg0)
|
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
public MockConnection()
メソッドの詳細 |
public void clearWarnings() throws SQLException
Connection
内の clearWarnings
SQLException
public void close() throws SQLException
Connection
内の close
SQLException
public void commit() throws SQLException
Connection
内の commit
SQLException
public boolean isCommitted()
public void setCommitted(boolean committed)
committed
- コミットしているかどうかpublic Statement createStatement() throws SQLException
Connection
内の createStatement
SQLException
public MockStatement createMockStatement()
public Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException
Connection
内の createStatement
SQLException
public MockStatement createMockStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability)
resultSetType
- 結果セットタイプresultSetConcurrency
- 結果セット同時並行性resultSetHoldability
- 結果セット保持力
public Statement createStatement(int resultSetType, int resultSetConcurrency) throws SQLException
Connection
内の createStatement
SQLException
public MockStatement createMockStatement(int resultSetType, int resultSetConcurrency)
resultSetType
- 結果セットタイプresultSetConcurrency
- 結果セット同時並行性
public boolean getAutoCommit() throws SQLException
Connection
内の getAutoCommit
SQLException
public String getCatalog() throws SQLException
Connection
内の getCatalog
SQLException
public int getHoldability() throws SQLException
Connection
内の getHoldability
SQLException
public DatabaseMetaData getMetaData() throws SQLException
Connection
内の getMetaData
SQLException
public int getTransactionIsolation() throws SQLException
Connection
内の getTransactionIsolation
SQLException
public Map getTypeMap() throws SQLException
Connection
内の getTypeMap
SQLException
public SQLWarning getWarnings() throws SQLException
Connection
内の getWarnings
SQLException
public boolean isClosed() throws SQLException
Connection
内の isClosed
SQLException
public void setClosed(boolean closed)
closed
- 閉じているかどうかpublic boolean isReadOnly() throws SQLException
Connection
内の isReadOnly
SQLException
public String nativeSQL(String sql) throws SQLException
Connection
内の nativeSQL
SQLException
public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException
Connection
内の prepareCall
SQLException
public MockCallableStatement prepareMockCall(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability)
sql
- SQLresultSetType
- 結果セットタイプresultSetConcurrency
- 結果セット同時並行性resultSetHoldability
- 結果セット保持力
public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency) throws SQLException
Connection
内の prepareCall
SQLException
public MockCallableStatement prepareMockCall(String sql, int resultSetType, int resultSetConcurrency)
sql
- SQLresultSetType
- 結果セットタイプresultSetConcurrency
- 結果セット同時並行性
public CallableStatement prepareCall(String sql) throws SQLException
Connection
内の prepareCall
SQLException
public MockCallableStatement prepareMockCall(String sql)
sql
- SQL
public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException
Connection
内の prepareStatement
SQLException
public MockPreparedStatement prepareMockStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability)
sql
- SQLresultSetType
- 結果セットタイプresultSetConcurrency
- 結果セット同時並行性resultSetHoldability
- 結果セット保持力
public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency) throws SQLException
Connection
内の prepareStatement
SQLException
public MockPreparedStatement prepareMockStatement(String sql, int resultSetType, int resultSetConcurrency)
sql
- SQLresultSetType
- 結果セットタイプresultSetConcurrency
- 結果セット同時並行性
public PreparedStatement prepareStatement(String sql, int autoGeneratedKeys) throws SQLException
Connection
内の prepareStatement
SQLException
public MockPreparedStatement prepareMockStatement(String sql, int autoGeneratedKeys)
sql
- SQLautoGeneratedKeys
- 自動生成されたキーを返すかどうかのフラグ
public PreparedStatement prepareStatement(String sql, int[] columnIndices) throws SQLException
Connection
内の prepareStatement
SQLException
public MockPreparedStatement prepareMockStatement(String sql, int[] columnIndices)
sql
- SQLcolumnIndices
- 自動生成された値を返して欲しいカラムの位置の配列
public PreparedStatement prepareStatement(String sql, String[] columnNames) throws SQLException
Connection
内の prepareStatement
SQLException
public MockPreparedStatement prepareMockStatement(String sql, String[] columnNames)
sql
- SQLcolumnNames
- 自動生成された値を返して欲しいカラムの名前の配列
public PreparedStatement prepareStatement(String sql) throws SQLException
Connection
内の prepareStatement
SQLException
public MockPreparedStatement prepareMockStatement(String sql)
sql
- SQL
public void releaseSavepoint(Savepoint savepoint) throws SQLException
Connection
内の releaseSavepoint
SQLException
public void rollback() throws SQLException
Connection
内の rollback
SQLException
public boolean isRolledback()
public void setRolledback(boolean rolledback)
rolledback
- ロールバックしたかどうかpublic void rollback(Savepoint savepoint) throws SQLException
Connection
内の rollback
SQLException
public void setAutoCommit(boolean autoCommit) throws SQLException
Connection
内の setAutoCommit
SQLException
public void setCatalog(String catalog) throws SQLException
Connection
内の setCatalog
SQLException
public void setHoldability(int holdability) throws SQLException
Connection
内の setHoldability
SQLException
public void setReadOnly(boolean readOnly) throws SQLException
Connection
内の setReadOnly
SQLException
public Savepoint setSavepoint() throws SQLException
Connection
内の setSavepoint
SQLException
public Savepoint setSavepoint(String name) throws SQLException
Connection
内の setSavepoint
SQLException
public void setTransactionIsolation(int level) throws SQLException
Connection
内の setTransactionIsolation
SQLException
public void setTypeMap(Map arg0) throws SQLException
Connection
内の setTypeMap
SQLException
|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |