|
|||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||
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,
java.lang.String sql)
MockPreparedStatementを作成します。 |
|
MockPreparedStatement(MockConnection connection,
java.lang.String sql,
int autoGeneratedKeys)
MockPreparedStatementを作成します。 |
|
MockPreparedStatement(MockConnection connection,
java.lang.String sql,
int[] columnIndices)
MockPreparedStatementを作成します。 |
|
MockPreparedStatement(MockConnection connection,
java.lang.String sql,
int resultSetType,
int resultSetConcurrency)
MockPreparedStatementを作成します。 |
|
MockPreparedStatement(MockConnection connection,
java.lang.String sql,
int resultSetType,
int resultSetConcurrency,
int resultSetHoldability)
MockPreparedStatementを作成します。 |
|
MockPreparedStatement(MockConnection connection,
java.lang.String sql,
java.lang.String[] columnNames)
MockPreparedStatementを作成します。 |
|
| メソッドの概要 | |
void |
addBatch()
|
void |
clearParameters()
|
boolean |
execute()
|
java.sql.ResultSet |
executeQuery()
|
int |
executeUpdate()
|
int |
getAutoGeneratedKeys()
自動生成されたキーを返すかどうかのフラグを返します。 |
int[] |
getColumnIndices()
自動生成された値を返して欲しいカラムの位置の配列を返します。 |
java.lang.String[] |
getColumnNames()
自動生成された値を返して欲しいカラムの名前の配列を返します。 |
java.sql.ResultSetMetaData |
getMetaData()
|
java.sql.ParameterMetaData |
getParameterMetaData()
|
java.lang.String |
getSql()
SQLを返します。 |
void |
setArray(int i,
java.sql.Array x)
|
void |
setAsciiStream(int parameterIndex,
java.io.InputStream x,
int length)
|
void |
setAutoGeneratedKeys(int autoGeneratedKeys)
自動生成されたキーを返すかどうかのフラグを設定します。 |
void |
setBigDecimal(int parameterIndex,
java.math.BigDecimal x)
|
void |
setBinaryStream(int parameterIndex,
java.io.InputStream x,
int length)
|
void |
setBlob(int i,
java.sql.Blob x)
|
void |
setBoolean(int parameterIndex,
boolean x)
|
void |
setByte(int parameterIndex,
byte x)
|
void |
setBytes(int parameterIndex,
byte[] x)
|
void |
setCharacterStream(int parameterIndex,
java.io.Reader reader,
int length)
|
void |
setClob(int i,
java.sql.Clob x)
|
void |
setColumnIndices(int[] columnIndices)
自動生成された値を返して欲しいカラムの位置の配列を設定します。 |
void |
setColumnNames(java.lang.String[] columnNames)
自動生成された値を返して欲しいカラムの名前の配列を設定します。 |
void |
setDate(int parameterIndex,
java.sql.Date x)
|
void |
setDate(int parameterIndex,
java.sql.Date x,
java.util.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,
java.lang.String typeName)
|
void |
setObject(int parameterIndex,
java.lang.Object x)
|
void |
setObject(int parameterIndex,
java.lang.Object x,
int targetSqlType)
|
void |
setObject(int parameterIndex,
java.lang.Object x,
int targetSqlType,
int scale)
|
void |
setRef(int i,
java.sql.Ref x)
|
void |
setShort(int parameterIndex,
short x)
|
void |
setSql(java.lang.String sql)
SQLを設定します。 |
void |
setString(int parameterIndex,
java.lang.String x)
|
void |
setTime(int parameterIndex,
java.sql.Time x)
|
void |
setTime(int parameterIndex,
java.sql.Time x,
java.util.Calendar cal)
|
void |
setTimestamp(int parameterIndex,
java.sql.Timestamp x)
|
void |
setTimestamp(int parameterIndex,
java.sql.Timestamp x,
java.util.Calendar cal)
|
void |
setUnicodeStream(int parameterIndex,
java.io.InputStream x,
int length)
|
void |
setURL(int parameterIndex,
java.net.URL x)
|
| クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| インタフェース java.sql.Statement から継承したメソッド |
addBatch, cancel, clearBatch, clearWarnings, close, execute, execute, execute, execute, executeBatch, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows, setQueryTimeout |
| コンストラクタの詳細 |
public MockPreparedStatement(MockConnection connection,
java.lang.String sql)
MockPreparedStatementを作成します。
connection - コネクションsql - SQL
public MockPreparedStatement(MockConnection connection,
java.lang.String sql,
int autoGeneratedKeys)
MockPreparedStatementを作成します。
connection - コネクションsql - SQLautoGeneratedKeys - 自動生成されたキーを返すかどうかのフラグ
public MockPreparedStatement(MockConnection connection,
java.lang.String sql,
int[] columnIndices)
MockPreparedStatementを作成します。
connection - コネクションsql - SQLcolumnIndices - 自動生成された値を返して欲しいカラムの位置の配列
public MockPreparedStatement(MockConnection connection,
java.lang.String sql,
java.lang.String[] columnNames)
MockPreparedStatementを作成します。
connection - コネクションsql - SQLcolumnNames - 自動生成された値を返して欲しいカラムの名前の配列
public MockPreparedStatement(MockConnection connection,
java.lang.String sql,
int resultSetType,
int resultSetConcurrency)
MockPreparedStatementを作成します。
connection - コネクションsql - SQlresultSetType - 結果セットタイプresultSetConcurrency - 結果セット同時並行性
public MockPreparedStatement(MockConnection connection,
java.lang.String sql,
int resultSetType,
int resultSetConcurrency,
int resultSetHoldability)
MockPreparedStatementを作成します。
connection - コネクションsql - SQLresultSetType - 結果セットタイプresultSetConcurrency - 結果セット同時並行性resultSetHoldability - 結果セット保持力| メソッドの詳細 |
public void addBatch()
throws java.sql.SQLException
java.sql.PreparedStatement 内の addBatchjava.sql.SQLException
public void clearParameters()
throws java.sql.SQLException
java.sql.PreparedStatement 内の clearParametersjava.sql.SQLException
public boolean execute()
throws java.sql.SQLException
java.sql.PreparedStatement 内の executejava.sql.SQLException
public java.sql.ResultSet executeQuery()
throws java.sql.SQLException
java.sql.PreparedStatement 内の executeQueryjava.sql.SQLException
public int executeUpdate()
throws java.sql.SQLException
java.sql.PreparedStatement 内の executeUpdatejava.sql.SQLException
public java.sql.ResultSetMetaData getMetaData()
throws java.sql.SQLException
java.sql.PreparedStatement 内の getMetaDatajava.sql.SQLException
public java.sql.ParameterMetaData getParameterMetaData()
throws java.sql.SQLException
java.sql.PreparedStatement 内の getParameterMetaDatajava.sql.SQLException
public void setArray(int i,
java.sql.Array x)
throws java.sql.SQLException
java.sql.PreparedStatement 内の setArrayjava.sql.SQLException
public void setAsciiStream(int parameterIndex,
java.io.InputStream x,
int length)
throws java.sql.SQLException
java.sql.PreparedStatement 内の setAsciiStreamjava.sql.SQLException
public void setBigDecimal(int parameterIndex,
java.math.BigDecimal x)
throws java.sql.SQLException
java.sql.PreparedStatement 内の setBigDecimaljava.sql.SQLException
public void setBinaryStream(int parameterIndex,
java.io.InputStream x,
int length)
throws java.sql.SQLException
java.sql.PreparedStatement 内の setBinaryStreamjava.sql.SQLException
public void setBlob(int i,
java.sql.Blob x)
throws java.sql.SQLException
java.sql.PreparedStatement 内の setBlobjava.sql.SQLException
public void setBoolean(int parameterIndex,
boolean x)
throws java.sql.SQLException
java.sql.PreparedStatement 内の setBooleanjava.sql.SQLException
public void setByte(int parameterIndex,
byte x)
throws java.sql.SQLException
java.sql.PreparedStatement 内の setBytejava.sql.SQLException
public void setBytes(int parameterIndex,
byte[] x)
throws java.sql.SQLException
java.sql.PreparedStatement 内の setBytesjava.sql.SQLException
public void setCharacterStream(int parameterIndex,
java.io.Reader reader,
int length)
throws java.sql.SQLException
java.sql.PreparedStatement 内の setCharacterStreamjava.sql.SQLException
public void setClob(int i,
java.sql.Clob x)
throws java.sql.SQLException
java.sql.PreparedStatement 内の setClobjava.sql.SQLException
public void setDate(int parameterIndex,
java.sql.Date x,
java.util.Calendar cal)
throws java.sql.SQLException
java.sql.PreparedStatement 内の setDatejava.sql.SQLException
public void setDate(int parameterIndex,
java.sql.Date x)
throws java.sql.SQLException
java.sql.PreparedStatement 内の setDatejava.sql.SQLException
public void setDouble(int parameterIndex,
double x)
throws java.sql.SQLException
java.sql.PreparedStatement 内の setDoublejava.sql.SQLException
public void setFloat(int parameterIndex,
float x)
throws java.sql.SQLException
java.sql.PreparedStatement 内の setFloatjava.sql.SQLException
public void setInt(int parameterIndex,
int x)
throws java.sql.SQLException
java.sql.PreparedStatement 内の setIntjava.sql.SQLException
public void setLong(int parameterIndex,
long x)
throws java.sql.SQLException
java.sql.PreparedStatement 内の setLongjava.sql.SQLException
public void setNull(int paramIndex,
int sqlType,
java.lang.String typeName)
throws java.sql.SQLException
java.sql.PreparedStatement 内の setNulljava.sql.SQLException
public void setNull(int parameterIndex,
int sqlType)
throws java.sql.SQLException
java.sql.PreparedStatement 内の setNulljava.sql.SQLException
public void setObject(int parameterIndex,
java.lang.Object x,
int targetSqlType,
int scale)
throws java.sql.SQLException
java.sql.PreparedStatement 内の setObjectjava.sql.SQLException
public void setObject(int parameterIndex,
java.lang.Object x,
int targetSqlType)
throws java.sql.SQLException
java.sql.PreparedStatement 内の setObjectjava.sql.SQLException
public void setObject(int parameterIndex,
java.lang.Object x)
throws java.sql.SQLException
java.sql.PreparedStatement 内の setObjectjava.sql.SQLException
public void setRef(int i,
java.sql.Ref x)
throws java.sql.SQLException
java.sql.PreparedStatement 内の setRefjava.sql.SQLException
public void setShort(int parameterIndex,
short x)
throws java.sql.SQLException
java.sql.PreparedStatement 内の setShortjava.sql.SQLException
public void setString(int parameterIndex,
java.lang.String x)
throws java.sql.SQLException
java.sql.PreparedStatement 内の setStringjava.sql.SQLException
public void setTime(int parameterIndex,
java.sql.Time x,
java.util.Calendar cal)
throws java.sql.SQLException
java.sql.PreparedStatement 内の setTimejava.sql.SQLException
public void setTime(int parameterIndex,
java.sql.Time x)
throws java.sql.SQLException
java.sql.PreparedStatement 内の setTimejava.sql.SQLException
public void setTimestamp(int parameterIndex,
java.sql.Timestamp x,
java.util.Calendar cal)
throws java.sql.SQLException
java.sql.PreparedStatement 内の setTimestampjava.sql.SQLException
public void setTimestamp(int parameterIndex,
java.sql.Timestamp x)
throws java.sql.SQLException
java.sql.PreparedStatement 内の setTimestampjava.sql.SQLException
public void setUnicodeStream(int parameterIndex,
java.io.InputStream x,
int length)
throws java.sql.SQLException
java.sql.PreparedStatement 内の setUnicodeStreamjava.sql.SQLException
public void setURL(int parameterIndex,
java.net.URL x)
throws java.sql.SQLException
java.sql.PreparedStatement 内の setURLjava.sql.SQLExceptionpublic java.lang.String getSql()
public void setSql(java.lang.String sql)
sql - SQLpublic int getAutoGeneratedKeys()
public void setAutoGeneratedKeys(int autoGeneratedKeys)
autoGeneratedKeys - 自動生成されたキーを返すかどうかのフラグpublic int[] getColumnIndices()
public void setColumnIndices(int[] columnIndices)
columnIndices - 自動生成された値を返して欲しいカラムの位置の配列public java.lang.String[] getColumnNames()
public void setColumnNames(java.lang.String[] columnNames)
columnNames - 自動生成された値を返して欲しいカラムの名前の配列
|
|||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||