|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.seasar.framework.mock.sql.MockResultSet
ResultSet
用のモッククラスです。
フィールドの概要 |
インタフェース java.sql.ResultSet から継承したフィールド |
CLOSE_CURSORS_AT_COMMIT, CONCUR_READ_ONLY, CONCUR_UPDATABLE, FETCH_FORWARD, FETCH_REVERSE, FETCH_UNKNOWN, HOLD_CURSORS_OVER_COMMIT, TYPE_FORWARD_ONLY, TYPE_SCROLL_INSENSITIVE, TYPE_SCROLL_SENSITIVE |
コンストラクタの概要 | |
MockResultSet()
MockResultSet を作成します。 |
|
MockResultSet(MockResultSetMetaData metaData)
MockResultSet を作成します。 |
|
MockResultSet(MockResultSetMetaData metaData,
int type,
int concurrency)
MockResultSet を作成します。 |
メソッドの概要 | |
boolean |
absolute(int row)
|
void |
addRowData(ArrayMap rowData)
行データを追加します。 |
void |
afterLast()
|
protected void |
assertCursor()
カーソルが使えることを表明します。 |
protected void |
assertUpdatable()
更新可能であることを表明します。 |
void |
beforeFirst()
|
void |
cancelRowUpdates()
|
void |
clearWarnings()
|
void |
close()
|
void |
deleteRow()
|
int |
findColumn(String columnName)
|
boolean |
first()
|
Array |
getArray(int columnIndex)
|
Array |
getArray(String columnName)
|
InputStream |
getAsciiStream(int columnIndex)
|
InputStream |
getAsciiStream(String columnName)
|
BigDecimal |
getBigDecimal(int columnIndex)
|
BigDecimal |
getBigDecimal(int columnIndex,
int scale)
|
BigDecimal |
getBigDecimal(String columnName)
|
BigDecimal |
getBigDecimal(String columnName,
int scale)
|
InputStream |
getBinaryStream(int columnIndex)
|
InputStream |
getBinaryStream(String columnName)
|
Blob |
getBlob(int columnIndex)
|
Blob |
getBlob(String columnName)
|
boolean |
getBoolean(int columnIndex)
|
boolean |
getBoolean(String columnName)
|
byte |
getByte(int columnIndex)
|
byte |
getByte(String columnName)
|
byte[] |
getBytes(int columnIndex)
|
byte[] |
getBytes(String columnName)
|
Reader |
getCharacterStream(int columnIndex)
|
Reader |
getCharacterStream(String columnName)
|
Clob |
getClob(int columnIndex)
|
Clob |
getClob(String columnName)
|
Object |
getColumnData(int index)
特定のカラムのデータを返します。 |
Object |
getColumnData(String columnName)
特定のカラムのデータを返します。 |
int |
getConcurrency()
|
String |
getCursorName()
|
Date |
getDate(int columnIndex)
|
Date |
getDate(int columnIndex,
Calendar cal)
|
Date |
getDate(String columnName)
|
Date |
getDate(String columnName,
Calendar cal)
|
double |
getDouble(int columnIndex)
|
double |
getDouble(String columnName)
|
int |
getFetchDirection()
|
int |
getFetchSize()
|
float |
getFloat(int columnIndex)
|
float |
getFloat(String columnName)
|
int |
getInt(int columnIndex)
|
int |
getInt(String columnName)
|
long |
getLong(int columnIndex)
|
long |
getLong(String columnName)
|
ResultSetMetaData |
getMetaData()
|
MockResultSetMetaData |
getMockMetaData()
ResultSetMetaData 用のモックを返します。 |
MockStatement |
getMockStatement()
ステートメント用のモックを返します。 |
Object |
getObject(int columnIndex)
|
Object |
getObject(int columnIndex,
Map arg1)
|
Object |
getObject(String columnName)
|
Object |
getObject(String columnName,
Map arg1)
|
Ref |
getRef(int columnIndex)
|
Ref |
getRef(String columnName)
|
int |
getRow()
|
ArrayMap |
getRowData()
現在の行データを返します。 |
ArrayMap |
getRowData(int index)
特定の行のデータを返します。 |
short |
getShort(int columnIndex)
|
short |
getShort(String columnName)
|
Statement |
getStatement()
|
String |
getString(int columnIndex)
|
String |
getString(String columnName)
|
Time |
getTime(int columnIndex)
|
Time |
getTime(int columnIndex,
Calendar cal)
|
Time |
getTime(String columnName)
|
Time |
getTime(String columnName,
Calendar cal)
|
Timestamp |
getTimestamp(int columnIndex)
|
Timestamp |
getTimestamp(int columnIndex,
Calendar cal)
|
Timestamp |
getTimestamp(String columnName)
|
Timestamp |
getTimestamp(String columnName,
Calendar cal)
|
int |
getType()
|
InputStream |
getUnicodeStream(int columnIndex)
|
InputStream |
getUnicodeStream(String columnName)
|
URL |
getURL(int columnIndex)
|
URL |
getURL(String columnName)
|
SQLWarning |
getWarnings()
|
void |
insertRow()
|
boolean |
isAfterLast()
|
boolean |
isBeforeFirst()
|
boolean |
isClosed()
閉じているかどうかを返します。 |
boolean |
isFirst()
|
boolean |
isLast()
|
boolean |
last()
|
void |
moveToCurrentRow()
|
void |
moveToInsertRow()
|
boolean |
next()
|
boolean |
previous()
|
void |
refreshRow()
|
boolean |
relative(int rows)
|
boolean |
rowDeleted()
|
boolean |
rowInserted()
|
boolean |
rowUpdated()
|
void |
setConcurrency(int concurrency)
結果セット同時並行性を設定します。 |
void |
setFetchDirection(int direction)
|
void |
setFetchSize(int fetchSize)
|
void |
setMockMetaData(MockResultSetMetaData metaData)
ResultSetMetaData 用のモックを設定します。 |
void |
setMockStatement(MockStatement statement)
ステートメント用のモックを設定します。 |
void |
setType(int type)
結果セットタイプを設定します。 |
void |
updateArray(int columnIndex,
Array x)
|
void |
updateArray(String columnName,
Array x)
|
void |
updateAsciiStream(int columnIndex,
InputStream x,
int length)
|
void |
updateAsciiStream(String columnName,
InputStream x,
int length)
|
void |
updateBigDecimal(int columnIndex,
BigDecimal x)
|
void |
updateBigDecimal(String columnName,
BigDecimal x)
|
void |
updateBinaryStream(int columnIndex,
InputStream x,
int length)
|
void |
updateBinaryStream(String columnName,
InputStream x,
int length)
|
void |
updateBlob(int columnIndex,
Blob x)
|
void |
updateBlob(String columnName,
Blob x)
|
void |
updateBoolean(int columnIndex,
boolean x)
|
void |
updateBoolean(String columnName,
boolean x)
|
void |
updateByte(int columnIndex,
byte x)
|
void |
updateByte(String columnName,
byte x)
|
void |
updateBytes(int columnIndex,
byte[] x)
|
void |
updateBytes(String columnName,
byte[] x)
|
void |
updateCharacterStream(int columnIndex,
Reader x,
int length)
|
void |
updateCharacterStream(String columnName,
Reader reader,
int length)
|
void |
updateClob(int columnIndex,
Clob x)
|
void |
updateClob(String columnName,
Clob x)
|
void |
updateDate(int columnIndex,
Date x)
|
void |
updateDate(String columnName,
Date x)
|
void |
updateDouble(int columnIndex,
double x)
|
void |
updateDouble(String columnName,
double x)
|
void |
updateFloat(int columnIndex,
float x)
|
void |
updateFloat(String columnName,
float x)
|
void |
updateInt(int columnIndex,
int x)
|
void |
updateInt(String columnName,
int x)
|
void |
updateLong(int columnIndex,
long x)
|
void |
updateLong(String columnName,
long x)
|
void |
updateNull(int columnIndex)
|
void |
updateNull(String columnName)
|
void |
updateObject(int columnIndex,
Object x)
|
void |
updateObject(int columnIndex,
Object x,
int scale)
|
void |
updateObject(String columnName,
Object x)
|
void |
updateObject(String columnName,
Object x,
int scale)
|
void |
updateRef(int columnIndex,
Ref x)
|
void |
updateRef(String columnName,
Ref x)
|
void |
updateRow()
|
void |
updateShort(int columnIndex,
short x)
|
void |
updateShort(String columnName,
short x)
|
void |
updateString(int columnIndex,
String x)
|
void |
updateString(String columnName,
String x)
|
void |
updateTime(int columnIndex,
Time x)
|
void |
updateTime(String columnName,
Time x)
|
void |
updateTimestamp(int columnIndex,
Timestamp x)
|
void |
updateTimestamp(String columnName,
Timestamp x)
|
boolean |
wasNull()
|
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
public MockResultSet()
MockResultSet
を作成します。
public MockResultSet(MockResultSetMetaData metaData)
MockResultSet
を作成します。
metaData
- 結果セットメタデータpublic MockResultSet(MockResultSetMetaData metaData, int type, int concurrency)
MockResultSet
を作成します。
metaData
- 結果セットメタデータtype
- 結果セットタイプconcurrency
- 結果セット同時並行性メソッドの詳細 |
public ArrayMap getRowData()
public ArrayMap getRowData(int index)
特定の行のデータを返します。
行番号は1からはじまります。
index
- 行番号
public Object getColumnData(int index)
特定のカラムのデータを返します。
カラム番号は1からはじまります。
index
- カラム番号
public Object getColumnData(String columnName)
特定のカラムのデータを返します。
columnName
- カラム名
public void addRowData(ArrayMap rowData)
rowData
- 行データpublic boolean absolute(int row) throws SQLException
ResultSet
内の absolute
SQLException
protected void assertCursor() throws SQLException
SQLException
- カーソルが使えない場合。public void afterLast() throws SQLException
ResultSet
内の afterLast
SQLException
public void beforeFirst() throws SQLException
ResultSet
内の beforeFirst
SQLException
public void cancelRowUpdates() throws SQLException
ResultSet
内の cancelRowUpdates
SQLException
protected void assertUpdatable() throws SQLException
SQLException
- 更新可能でない場合。public void clearWarnings() throws SQLException
ResultSet
内の clearWarnings
SQLException
public void close() throws SQLException
ResultSet
内の close
SQLException
public boolean isClosed()
public void deleteRow() throws SQLException
ResultSet
内の deleteRow
SQLException
public int findColumn(String columnName) throws SQLException
ResultSet
内の findColumn
SQLException
public boolean first() throws SQLException
ResultSet
内の first
SQLException
public Array getArray(int columnIndex) throws SQLException
ResultSet
内の getArray
SQLException
public Array getArray(String columnName) throws SQLException
ResultSet
内の getArray
SQLException
public InputStream getAsciiStream(int columnIndex) throws SQLException
ResultSet
内の getAsciiStream
SQLException
public InputStream getAsciiStream(String columnName) throws SQLException
ResultSet
内の getAsciiStream
SQLException
public BigDecimal getBigDecimal(int columnIndex) throws SQLException
ResultSet
内の getBigDecimal
SQLException
public BigDecimal getBigDecimal(String columnName) throws SQLException
ResultSet
内の getBigDecimal
SQLException
public BigDecimal getBigDecimal(int columnIndex, int scale) throws SQLException
ResultSet
内の getBigDecimal
SQLException
public BigDecimal getBigDecimal(String columnName, int scale) throws SQLException
ResultSet
内の getBigDecimal
SQLException
public InputStream getBinaryStream(int columnIndex) throws SQLException
ResultSet
内の getBinaryStream
SQLException
public InputStream getBinaryStream(String columnName) throws SQLException
ResultSet
内の getBinaryStream
SQLException
public Blob getBlob(int columnIndex) throws SQLException
ResultSet
内の getBlob
SQLException
public Blob getBlob(String columnName) throws SQLException
ResultSet
内の getBlob
SQLException
public boolean getBoolean(int columnIndex) throws SQLException
ResultSet
内の getBoolean
SQLException
public boolean getBoolean(String columnName) throws SQLException
ResultSet
内の getBoolean
SQLException
public byte getByte(int columnIndex) throws SQLException
ResultSet
内の getByte
SQLException
public byte getByte(String columnName) throws SQLException
ResultSet
内の getByte
SQLException
public byte[] getBytes(int columnIndex) throws SQLException
ResultSet
内の getBytes
SQLException
public byte[] getBytes(String columnName) throws SQLException
ResultSet
内の getBytes
SQLException
public Reader getCharacterStream(int columnIndex) throws SQLException
ResultSet
内の getCharacterStream
SQLException
public Reader getCharacterStream(String columnName) throws SQLException
ResultSet
内の getCharacterStream
SQLException
public Clob getClob(int columnIndex) throws SQLException
ResultSet
内の getClob
SQLException
public Clob getClob(String columnName) throws SQLException
ResultSet
内の getClob
SQLException
public int getConcurrency() throws SQLException
ResultSet
内の getConcurrency
SQLException
public void setConcurrency(int concurrency)
concurrency
- 結果セット同時並行性public String getCursorName() throws SQLException
ResultSet
内の getCursorName
SQLException
public Date getDate(int columnIndex) throws SQLException
ResultSet
内の getDate
SQLException
public Date getDate(String columnName) throws SQLException
ResultSet
内の getDate
SQLException
public Date getDate(int columnIndex, Calendar cal) throws SQLException
ResultSet
内の getDate
SQLException
public Date getDate(String columnName, Calendar cal) throws SQLException
ResultSet
内の getDate
SQLException
public double getDouble(int columnIndex) throws SQLException
ResultSet
内の getDouble
SQLException
public double getDouble(String columnName) throws SQLException
ResultSet
内の getDouble
SQLException
public int getFetchDirection() throws SQLException
ResultSet
内の getFetchDirection
SQLException
public int getFetchSize() throws SQLException
ResultSet
内の getFetchSize
SQLException
public float getFloat(int columnIndex) throws SQLException
ResultSet
内の getFloat
SQLException
public float getFloat(String columnName) throws SQLException
ResultSet
内の getFloat
SQLException
public int getInt(int columnIndex) throws SQLException
ResultSet
内の getInt
SQLException
public int getInt(String columnName) throws SQLException
ResultSet
内の getInt
SQLException
public long getLong(int columnIndex) throws SQLException
ResultSet
内の getLong
SQLException
public long getLong(String columnName) throws SQLException
ResultSet
内の getLong
SQLException
public ResultSetMetaData getMetaData() throws SQLException
ResultSet
内の getMetaData
SQLException
public MockResultSetMetaData getMockMetaData()
ResultSetMetaData
用のモックを返します。
ResultSetMetaData
用のモックpublic void setMockMetaData(MockResultSetMetaData metaData)
ResultSetMetaData
用のモックを設定します。
metaData
- ResultSetMetaData
用のモックpublic Object getObject(int columnIndex) throws SQLException
ResultSet
内の getObject
SQLException
public Object getObject(String columnName) throws SQLException
ResultSet
内の getObject
SQLException
public Object getObject(int columnIndex, Map arg1) throws SQLException
ResultSet
内の getObject
SQLException
public Object getObject(String columnName, Map arg1) throws SQLException
ResultSet
内の getObject
SQLException
public Ref getRef(int columnIndex) throws SQLException
ResultSet
内の getRef
SQLException
public Ref getRef(String columnName) throws SQLException
ResultSet
内の getRef
SQLException
public int getRow() throws SQLException
ResultSet
内の getRow
SQLException
public short getShort(int columnIndex) throws SQLException
ResultSet
内の getShort
SQLException
public short getShort(String columnName) throws SQLException
ResultSet
内の getShort
SQLException
public Statement getStatement() throws SQLException
ResultSet
内の getStatement
SQLException
public MockStatement getMockStatement()
public void setMockStatement(MockStatement statement)
statement
- ステートメント用のモックpublic String getString(int columnIndex) throws SQLException
ResultSet
内の getString
SQLException
public String getString(String columnName) throws SQLException
ResultSet
内の getString
SQLException
public Time getTime(int columnIndex) throws SQLException
ResultSet
内の getTime
SQLException
public Time getTime(String columnName) throws SQLException
ResultSet
内の getTime
SQLException
public Time getTime(int columnIndex, Calendar cal) throws SQLException
ResultSet
内の getTime
SQLException
public Time getTime(String columnName, Calendar cal) throws SQLException
ResultSet
内の getTime
SQLException
public Timestamp getTimestamp(int columnIndex) throws SQLException
ResultSet
内の getTimestamp
SQLException
public Timestamp getTimestamp(String columnName) throws SQLException
ResultSet
内の getTimestamp
SQLException
public Timestamp getTimestamp(int columnIndex, Calendar cal) throws SQLException
ResultSet
内の getTimestamp
SQLException
public Timestamp getTimestamp(String columnName, Calendar cal) throws SQLException
ResultSet
内の getTimestamp
SQLException
public int getType() throws SQLException
ResultSet
内の getType
SQLException
public void setType(int type)
type
- 結果セットタイプpublic URL getURL(int columnIndex) throws SQLException
ResultSet
内の getURL
SQLException
public URL getURL(String columnName) throws SQLException
ResultSet
内の getURL
SQLException
public InputStream getUnicodeStream(int columnIndex) throws SQLException
ResultSet
内の getUnicodeStream
SQLException
public InputStream getUnicodeStream(String columnName) throws SQLException
ResultSet
内の getUnicodeStream
SQLException
public SQLWarning getWarnings() throws SQLException
ResultSet
内の getWarnings
SQLException
public void insertRow() throws SQLException
ResultSet
内の insertRow
SQLException
public boolean isAfterLast() throws SQLException
ResultSet
内の isAfterLast
SQLException
public boolean isBeforeFirst() throws SQLException
ResultSet
内の isBeforeFirst
SQLException
public boolean isFirst() throws SQLException
ResultSet
内の isFirst
SQLException
public boolean isLast() throws SQLException
ResultSet
内の isLast
SQLException
public boolean last() throws SQLException
ResultSet
内の last
SQLException
public void moveToCurrentRow() throws SQLException
ResultSet
内の moveToCurrentRow
SQLException
public void moveToInsertRow() throws SQLException
ResultSet
内の moveToInsertRow
SQLException
public boolean next() throws SQLException
ResultSet
内の next
SQLException
public boolean previous() throws SQLException
ResultSet
内の previous
SQLException
public void refreshRow() throws SQLException
ResultSet
内の refreshRow
SQLException
public boolean relative(int rows) throws SQLException
ResultSet
内の relative
SQLException
public boolean rowDeleted() throws SQLException
ResultSet
内の rowDeleted
SQLException
public boolean rowInserted() throws SQLException
ResultSet
内の rowInserted
SQLException
public boolean rowUpdated() throws SQLException
ResultSet
内の rowUpdated
SQLException
public void setFetchDirection(int direction) throws SQLException
ResultSet
内の setFetchDirection
SQLException
public void setFetchSize(int fetchSize) throws SQLException
ResultSet
内の setFetchSize
SQLException
public void updateArray(int columnIndex, Array x) throws SQLException
ResultSet
内の updateArray
SQLException
public void updateArray(String columnName, Array x) throws SQLException
ResultSet
内の updateArray
SQLException
public void updateAsciiStream(int columnIndex, InputStream x, int length) throws SQLException
ResultSet
内の updateAsciiStream
SQLException
public void updateAsciiStream(String columnName, InputStream x, int length) throws SQLException
ResultSet
内の updateAsciiStream
SQLException
public void updateBigDecimal(int columnIndex, BigDecimal x) throws SQLException
ResultSet
内の updateBigDecimal
SQLException
public void updateBigDecimal(String columnName, BigDecimal x) throws SQLException
ResultSet
内の updateBigDecimal
SQLException
public void updateBinaryStream(int columnIndex, InputStream x, int length) throws SQLException
ResultSet
内の updateBinaryStream
SQLException
public void updateBinaryStream(String columnName, InputStream x, int length) throws SQLException
ResultSet
内の updateBinaryStream
SQLException
public void updateBlob(int columnIndex, Blob x) throws SQLException
ResultSet
内の updateBlob
SQLException
public void updateBlob(String columnName, Blob x) throws SQLException
ResultSet
内の updateBlob
SQLException
public void updateBoolean(int columnIndex, boolean x) throws SQLException
ResultSet
内の updateBoolean
SQLException
public void updateBoolean(String columnName, boolean x) throws SQLException
ResultSet
内の updateBoolean
SQLException
public void updateByte(int columnIndex, byte x) throws SQLException
ResultSet
内の updateByte
SQLException
public void updateByte(String columnName, byte x) throws SQLException
ResultSet
内の updateByte
SQLException
public void updateBytes(int columnIndex, byte[] x) throws SQLException
ResultSet
内の updateBytes
SQLException
public void updateBytes(String columnName, byte[] x) throws SQLException
ResultSet
内の updateBytes
SQLException
public void updateCharacterStream(int columnIndex, Reader x, int length) throws SQLException
ResultSet
内の updateCharacterStream
SQLException
public void updateCharacterStream(String columnName, Reader reader, int length) throws SQLException
ResultSet
内の updateCharacterStream
SQLException
public void updateClob(int columnIndex, Clob x) throws SQLException
ResultSet
内の updateClob
SQLException
public void updateClob(String columnName, Clob x) throws SQLException
ResultSet
内の updateClob
SQLException
public void updateDate(int columnIndex, Date x) throws SQLException
ResultSet
内の updateDate
SQLException
public void updateDate(String columnName, Date x) throws SQLException
ResultSet
内の updateDate
SQLException
public void updateDouble(int columnIndex, double x) throws SQLException
ResultSet
内の updateDouble
SQLException
public void updateDouble(String columnName, double x) throws SQLException
ResultSet
内の updateDouble
SQLException
public void updateFloat(int columnIndex, float x) throws SQLException
ResultSet
内の updateFloat
SQLException
public void updateFloat(String columnName, float x) throws SQLException
ResultSet
内の updateFloat
SQLException
public void updateInt(int columnIndex, int x) throws SQLException
ResultSet
内の updateInt
SQLException
public void updateInt(String columnName, int x) throws SQLException
ResultSet
内の updateInt
SQLException
public void updateLong(int columnIndex, long x) throws SQLException
ResultSet
内の updateLong
SQLException
public void updateLong(String columnName, long x) throws SQLException
ResultSet
内の updateLong
SQLException
public void updateNull(int columnIndex) throws SQLException
ResultSet
内の updateNull
SQLException
public void updateNull(String columnName) throws SQLException
ResultSet
内の updateNull
SQLException
public void updateObject(int columnIndex, Object x) throws SQLException
ResultSet
内の updateObject
SQLException
public void updateObject(String columnName, Object x) throws SQLException
ResultSet
内の updateObject
SQLException
public void updateObject(int columnIndex, Object x, int scale) throws SQLException
ResultSet
内の updateObject
SQLException
public void updateObject(String columnName, Object x, int scale) throws SQLException
ResultSet
内の updateObject
SQLException
public void updateRef(int columnIndex, Ref x) throws SQLException
ResultSet
内の updateRef
SQLException
public void updateRef(String columnName, Ref x) throws SQLException
ResultSet
内の updateRef
SQLException
public void updateRow() throws SQLException
ResultSet
内の updateRow
SQLException
public void updateShort(int columnIndex, short x) throws SQLException
ResultSet
内の updateShort
SQLException
public void updateShort(String columnName, short x) throws SQLException
ResultSet
内の updateShort
SQLException
public void updateString(int columnIndex, String x) throws SQLException
ResultSet
内の updateString
SQLException
public void updateString(String columnName, String x) throws SQLException
ResultSet
内の updateString
SQLException
public void updateTime(int columnIndex, Time x) throws SQLException
ResultSet
内の updateTime
SQLException
public void updateTime(String columnName, Time x) throws SQLException
ResultSet
内の updateTime
SQLException
public void updateTimestamp(int columnIndex, Timestamp x) throws SQLException
ResultSet
内の updateTimestamp
SQLException
public void updateTimestamp(String columnName, Timestamp x) throws SQLException
ResultSet
内の updateTimestamp
SQLException
public boolean wasNull() throws SQLException
ResultSet
内の wasNull
SQLException
|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |