|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.seasar.framework.mock.sql.MockStatement
org.seasar.framework.mock.sql.MockPreparedStatement
PreparedStatement
用のモッククラスです。
フィールドの概要 |
インタフェース java.sql.Statement から継承したフィールド |
CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO |
コンストラクタの概要 | |
MockPreparedStatement(MockConnection connection,
String sql)
MockPreparedStatement を作成します。 |
|
MockPreparedStatement(MockConnection connection,
String sql,
int autoGeneratedKeys)
MockPreparedStatement を作成します。 |
|
MockPreparedStatement(MockConnection connection,
String sql,
int[] columnIndices)
MockPreparedStatement を作成します。 |
|
MockPreparedStatement(MockConnection connection,
String sql,
int resultSetType,
int resultSetConcurrency)
MockPreparedStatement を作成します。 |
|
MockPreparedStatement(MockConnection connection,
String sql,
int resultSetType,
int resultSetConcurrency,
int resultSetHoldability)
MockPreparedStatement を作成します。 |
|
MockPreparedStatement(MockConnection connection,
String sql,
String[] columnNames)
MockPreparedStatement を作成します。 |
メソッドの概要 | |
void |
addBatch()
|
void |
clearParameters()
|
boolean |
execute()
|
ResultSet |
executeQuery()
|
int |
executeUpdate()
|
int |
getAutoGeneratedKeys()
自動生成されたキーを返すかどうかのフラグを返します。 |
int[] |
getColumnIndices()
自動生成された値を返して欲しいカラムの位置の配列を返します。 |
String[] |
getColumnNames()
自動生成された値を返して欲しいカラムの名前の配列を返します。 |
ResultSetMetaData |
getMetaData()
|
ParameterMetaData |
getParameterMetaData()
|
String |
getSql()
SQLを返します。 |
void |
setArray(int i,
Array x)
|
void |
setAsciiStream(int parameterIndex,
InputStream x,
int length)
|
void |
setAutoGeneratedKeys(int autoGeneratedKeys)
自動生成されたキーを返すかどうかのフラグを設定します。 |
void |
setBigDecimal(int parameterIndex,
BigDecimal x)
|
void |
setBinaryStream(int parameterIndex,
InputStream x,
int length)
|
void |
setBlob(int i,
Blob x)
|
void |
setBoolean(int parameterIndex,
boolean x)
|
void |
setByte(int parameterIndex,
byte x)
|
void |
setBytes(int parameterIndex,
byte[] x)
|
void |
setCharacterStream(int parameterIndex,
Reader reader,
int length)
|
void |
setClob(int i,
Clob x)
|
void |
setColumnIndices(int[] columnIndices)
自動生成された値を返して欲しいカラムの位置の配列を設定します。 |
void |
setColumnNames(String[] columnNames)
自動生成された値を返して欲しいカラムの名前の配列を設定します。 |
void |
setDate(int parameterIndex,
Date x)
|
void |
setDate(int parameterIndex,
Date x,
Calendar cal)
|
void |
setDouble(int parameterIndex,
double x)
|
void |
setFloat(int parameterIndex,
float x)
|
void |
setInt(int parameterIndex,
int x)
|
void |
setLong(int parameterIndex,
long x)
|
void |
setNull(int parameterIndex,
int sqlType)
|
void |
setNull(int paramIndex,
int sqlType,
String typeName)
|
void |
setObject(int parameterIndex,
Object x)
|
void |
setObject(int parameterIndex,
Object x,
int targetSqlType)
|
void |
setObject(int parameterIndex,
Object x,
int targetSqlType,
int scale)
|
void |
setRef(int i,
Ref x)
|
void |
setShort(int parameterIndex,
short x)
|
void |
setSql(String sql)
SQLを設定します。 |
void |
setString(int parameterIndex,
String x)
|
void |
setTime(int parameterIndex,
Time x)
|
void |
setTime(int parameterIndex,
Time x,
Calendar cal)
|
void |
setTimestamp(int parameterIndex,
Timestamp x)
|
void |
setTimestamp(int parameterIndex,
Timestamp x,
Calendar cal)
|
void |
setUnicodeStream(int parameterIndex,
InputStream x,
int length)
|
void |
setURL(int parameterIndex,
URL x)
|
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
public MockPreparedStatement(MockConnection connection, String sql)
MockPreparedStatement
を作成します。
connection
- コネクションsql
- SQLpublic MockPreparedStatement(MockConnection connection, String sql, int autoGeneratedKeys)
MockPreparedStatement
を作成します。
connection
- コネクションsql
- SQLautoGeneratedKeys
- 自動生成されたキーを返すかどうかのフラグpublic MockPreparedStatement(MockConnection connection, String sql, int[] columnIndices)
MockPreparedStatement
を作成します。
connection
- コネクションsql
- SQLcolumnIndices
- 自動生成された値を返して欲しいカラムの位置の配列public MockPreparedStatement(MockConnection connection, String sql, String[] columnNames)
MockPreparedStatement
を作成します。
connection
- コネクションsql
- SQLcolumnNames
- 自動生成された値を返して欲しいカラムの名前の配列public MockPreparedStatement(MockConnection connection, String sql, int resultSetType, int resultSetConcurrency)
MockPreparedStatement
を作成します。
connection
- コネクションsql
- SQlresultSetType
- 結果セットタイプresultSetConcurrency
- 結果セット同時並行性public MockPreparedStatement(MockConnection connection, String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability)
MockPreparedStatement
を作成します。
connection
- コネクションsql
- SQLresultSetType
- 結果セットタイプresultSetConcurrency
- 結果セット同時並行性resultSetHoldability
- 結果セット保持力メソッドの詳細 |
public void addBatch() throws SQLException
PreparedStatement
内の addBatch
SQLException
public void clearParameters() throws SQLException
PreparedStatement
内の clearParameters
SQLException
public boolean execute() throws SQLException
PreparedStatement
内の execute
SQLException
public ResultSet executeQuery() throws SQLException
PreparedStatement
内の executeQuery
SQLException
public int executeUpdate() throws SQLException
PreparedStatement
内の executeUpdate
SQLException
public ResultSetMetaData getMetaData() throws SQLException
PreparedStatement
内の getMetaData
SQLException
public ParameterMetaData getParameterMetaData() throws SQLException
PreparedStatement
内の getParameterMetaData
SQLException
public void setArray(int i, Array x) throws SQLException
PreparedStatement
内の setArray
SQLException
public void setAsciiStream(int parameterIndex, InputStream x, int length) throws SQLException
PreparedStatement
内の setAsciiStream
SQLException
public void setBigDecimal(int parameterIndex, BigDecimal x) throws SQLException
PreparedStatement
内の setBigDecimal
SQLException
public void setBinaryStream(int parameterIndex, InputStream x, int length) throws SQLException
PreparedStatement
内の setBinaryStream
SQLException
public void setBlob(int i, Blob x) throws SQLException
PreparedStatement
内の setBlob
SQLException
public void setBoolean(int parameterIndex, boolean x) throws SQLException
PreparedStatement
内の setBoolean
SQLException
public void setByte(int parameterIndex, byte x) throws SQLException
PreparedStatement
内の setByte
SQLException
public void setBytes(int parameterIndex, byte[] x) throws SQLException
PreparedStatement
内の setBytes
SQLException
public void setCharacterStream(int parameterIndex, Reader reader, int length) throws SQLException
PreparedStatement
内の setCharacterStream
SQLException
public void setClob(int i, Clob x) throws SQLException
PreparedStatement
内の setClob
SQLException
public void setDate(int parameterIndex, Date x, Calendar cal) throws SQLException
PreparedStatement
内の setDate
SQLException
public void setDate(int parameterIndex, Date x) throws SQLException
PreparedStatement
内の setDate
SQLException
public void setDouble(int parameterIndex, double x) throws SQLException
PreparedStatement
内の setDouble
SQLException
public void setFloat(int parameterIndex, float x) throws SQLException
PreparedStatement
内の setFloat
SQLException
public void setInt(int parameterIndex, int x) throws SQLException
PreparedStatement
内の setInt
SQLException
public void setLong(int parameterIndex, long x) throws SQLException
PreparedStatement
内の setLong
SQLException
public void setNull(int paramIndex, int sqlType, String typeName) throws SQLException
PreparedStatement
内の setNull
SQLException
public void setNull(int parameterIndex, int sqlType) throws SQLException
PreparedStatement
内の setNull
SQLException
public void setObject(int parameterIndex, Object x, int targetSqlType, int scale) throws SQLException
PreparedStatement
内の setObject
SQLException
public void setObject(int parameterIndex, Object x, int targetSqlType) throws SQLException
PreparedStatement
内の setObject
SQLException
public void setObject(int parameterIndex, Object x) throws SQLException
PreparedStatement
内の setObject
SQLException
public void setRef(int i, Ref x) throws SQLException
PreparedStatement
内の setRef
SQLException
public void setShort(int parameterIndex, short x) throws SQLException
PreparedStatement
内の setShort
SQLException
public void setString(int parameterIndex, String x) throws SQLException
PreparedStatement
内の setString
SQLException
public void setTime(int parameterIndex, Time x, Calendar cal) throws SQLException
PreparedStatement
内の setTime
SQLException
public void setTime(int parameterIndex, Time x) throws SQLException
PreparedStatement
内の setTime
SQLException
public void setTimestamp(int parameterIndex, Timestamp x, Calendar cal) throws SQLException
PreparedStatement
内の setTimestamp
SQLException
public void setTimestamp(int parameterIndex, Timestamp x) throws SQLException
PreparedStatement
内の setTimestamp
SQLException
public void setUnicodeStream(int parameterIndex, InputStream x, int length) throws SQLException
PreparedStatement
内の setUnicodeStream
SQLException
public void setURL(int parameterIndex, URL x) throws SQLException
PreparedStatement
内の setURL
SQLException
public String getSql()
public void setSql(String sql)
sql
- SQLpublic int getAutoGeneratedKeys()
public void setAutoGeneratedKeys(int autoGeneratedKeys)
autoGeneratedKeys
- 自動生成されたキーを返すかどうかのフラグpublic int[] getColumnIndices()
public void setColumnIndices(int[] columnIndices)
columnIndices
- 自動生成された値を返して欲しいカラムの位置の配列public String[] getColumnNames()
public void setColumnNames(String[] columnNames)
columnNames
- 自動生成された値を返して欲しいカラムの名前の配列
|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |