public interface SqlRowSet extends SerializableSE
ResultSetSE データの切断されたバリアントを表す RowSetSE のミラーインターフェース。 標準 JDBC RowSet との主な違いは、SQLExceptionSE がここでスローされないことです。これにより、SqlRowSet をチェックされた例外に対処することなく使用できます。SqlRowSet は代わりに Spring の InvalidResultSetAccessException をスローします(適切な場合)。
メモ: このインターフェースは、java.io.Serializable マーカーインターフェースを継承します。通常は切断されたデータを保持する実装は、(可能な限り)実際にシリアライズ可能にすることが推奨されます。
RowSetSE, ResultSetSE, InvalidResultSetAccessException, JdbcTemplate.queryForRowSet(java.lang.String)| 修飾子と型 | メソッドと説明 |
|---|---|
boolean | absolute(int row) 行セット内の最後の行の直後に、指定された行番号にカーソルを移動します。 |
void | afterLast() カーソルをこの行セットの最後に移動します。 |
void | beforeFirst() カーソルをこの行セットの前、最初の行の直前に移動します。 |
int | findColumn(StringSE columnLabel) 指定された列ラベルをその列インデックスにマップします。 |
boolean | first() カーソルをこの行セットの最初の行に移動します。 |
BigDecimalSE | getBigDecimal(int columnIndex) 現在の行の指定された列の値を BigDecimal オブジェクトとして取得します。 |
BigDecimalSE | getBigDecimal(StringSE columnLabel) 現在の行の指定された列の値を BigDecimal オブジェクトとして取得します。 |
boolean | getBoolean(int columnIndex) 現在行の指定された列の値をブール値として取得します。 |
boolean | getBoolean(StringSE columnLabel) 現在行の指定された列の値をブール値として取得します。 |
byte | getByte(int columnIndex) 現在行の指定された列の値をバイトとして取得します。 |
byte | getByte(StringSE columnLabel) 現在行の指定された列の値をバイトとして取得します。 |
DateSE | getDate(int columnIndex) 現在の行の指定された列の値を Date オブジェクトとして取得します。 |
DateSE | getDate(int columnIndex, CalendarSE cal) 現在の行の指定された列の値を Date オブジェクトとして取得します。 |
DateSE | getDate(StringSE columnLabel) 現在の行の指定された列の値を Date オブジェクトとして取得します。 |
DateSE | getDate(StringSE columnLabel, CalendarSE cal) 現在の行の指定された列の値を Date オブジェクトとして取得します。 |
double | getDouble(int columnIndex) 現在行の指定された列の値を Double オブジェクトとして取得します。 |
double | getDouble(StringSE columnLabel) 現在行の指定された列の値を Double オブジェクトとして取得します。 |
float | getFloat(int columnIndex) 現在の行の指定された列の値を float として取得します。 |
float | getFloat(StringSE columnLabel) 現在の行の指定された列の値を float として取得します。 |
int | getInt(int columnIndex) 現在の行の指定された列の値を int として取得します。 |
int | getInt(StringSE columnLabel) 現在の行の指定された列の値を int として取得します。 |
long | getLong(int columnIndex) 現在行の指定された列の値を long として取得します。 |
long | getLong(StringSE columnLabel) 現在行の指定された列の値を long として取得します。 |
SqlRowSetMetaData | getMetaData() メタデータを取得します。 |
StringSE | getNString(int columnIndex) 現在の行の指定された列の値を文字列として取得します(NCHAR、NVARCHAR、LONGNVARCHAR 列の場合)。 |
StringSE | getNString(StringSE columnLabel) 現在の行の指定された列の値を文字列として取得します(NCHAR、NVARCHAR、LONGNVARCHAR 列の場合)。 |
ObjectSE | getObject(int columnIndex) 現在の行の指定された列の値をオブジェクトとして取得します。 |
<T> T | getObject(int columnIndex, ClassSE<T> type) 現在の行の指定された列の値をオブジェクトとして取得します。 |
ObjectSE | getObject(int columnIndex, MapSE<StringSE, ClassSE<?>> map) 現在の行の指定された列の値をオブジェクトとして取得します。 |
ObjectSE | getObject(StringSE columnLabel) 現在の行の指定された列の値をオブジェクトとして取得します。 |
<T> T | getObject(StringSE columnLabel, ClassSE<T> type) 現在の行の指定された列の値をオブジェクトとして取得します。 |
ObjectSE | getObject(StringSE columnLabel, MapSE<StringSE, ClassSE<?>> map) 現在の行の指定された列の値をオブジェクトとして取得します。 |
int | getRow() 現在の行番号を取得します。 |
short | getShort(int columnIndex) 現在の行の指定された列の値を short として取得します。 |
short | getShort(StringSE columnLabel) 現在の行の指定された列の値を short として取得します。 |
StringSE | getString(int columnIndex) 現在の行の指定された列の値を文字列として取得します。 |
StringSE | getString(StringSE columnLabel) 現在の行の指定された列の値を文字列として取得します。 |
TimeSE | getTime(int columnIndex) 現在の行の指定された列の値を Time オブジェクトとして取得します。 |
TimeSE | getTime(int columnIndex, CalendarSE cal) 現在の行の指定された列の値を Time オブジェクトとして取得します。 |
TimeSE | getTime(StringSE columnLabel) 現在の行の指定された列の値を Time オブジェクトとして取得します。 |
TimeSE | getTime(StringSE columnLabel, CalendarSE cal) 現在の行の指定された列の値を Time オブジェクトとして取得します。 |
TimestampSE | getTimestamp(int columnIndex) 現在の行の指定された列の値を Timestamp オブジェクトとして取得します。 |
TimestampSE | getTimestamp(int columnIndex, CalendarSE cal) 現在の行の指定された列の値を Timestamp オブジェクトとして取得します。 |
TimestampSE | getTimestamp(StringSE columnLabel) 現在の行の指定された列の値を Timestamp オブジェクトとして取得します。 |
TimestampSE | getTimestamp(StringSE columnLabel, CalendarSE cal) 現在の行の指定された列の値を Timestamp オブジェクトとして取得します。 |
boolean | isAfterLast() カーソルがこの行セットの最後の行の後にあるかどうかを取得します。 |
boolean | isBeforeFirst() カーソルがこの行セットの最初の行の前にあるかどうかを取得します。 |
boolean | isFirst() カーソルがこの行セットの最初の行にあるかどうかを取得します。 |
boolean | isLast() カーソルがこの行セットの最後の行にあるかどうかを取得します。 |
boolean | last() カーソルをこの行セットの最後の行に移動します。 |
boolean | next() カーソルを次の行に移動します。 |
boolean | previous() カーソルを前の行に移動します。 |
boolean | relative(int rows) 正または負の相対行数でカーソルを移動します。 |
boolean | wasNull() 最後に読み取られた列の値が SQL NULL であったかどうかを報告します。 |
SqlRowSetMetaData getMetaData()
ResultSet.getMetaData()SEint findColumn(StringSE columnLabel) throws InvalidResultSetAccessException
columnLabel - 列の名前 InvalidResultSetAccessExceptionResultSet.findColumn(String)SE@Nullable BigDecimalSE getBigDecimal(int columnIndex) throws InvalidResultSetAccessException
columnIndex - 列インデックス InvalidResultSetAccessExceptionResultSet.getBigDecimal(int)SE@Nullable BigDecimalSE getBigDecimal(StringSE columnLabel) throws InvalidResultSetAccessException
columnLabel - 列ラベル InvalidResultSetAccessExceptionResultSet.getBigDecimal(String)SEboolean getBoolean(int columnIndex)
throws InvalidResultSetAccessExceptioncolumnIndex - 列インデックス InvalidResultSetAccessExceptionResultSet.getBoolean(int)SEboolean getBoolean(StringSE columnLabel) throws InvalidResultSetAccessException
columnLabel - 列ラベル InvalidResultSetAccessExceptionResultSet.getBoolean(String)SEbyte getByte(int columnIndex)
throws InvalidResultSetAccessExceptioncolumnIndex - 列インデックス InvalidResultSetAccessExceptionResultSet.getByte(int)SEbyte getByte(StringSE columnLabel) throws InvalidResultSetAccessException
columnLabel - 列ラベル InvalidResultSetAccessExceptionResultSet.getByte(String)SE@Nullable DateSE getDate(int columnIndex) throws InvalidResultSetAccessException
columnIndex - 列インデックス InvalidResultSetAccessExceptionResultSet.getDate(int)SE@Nullable DateSE getDate(StringSE columnLabel) throws InvalidResultSetAccessException
columnLabel - 列ラベル InvalidResultSetAccessExceptionResultSet.getDate(String)SE@Nullable DateSE getDate(int columnIndex, CalendarSE cal) throws InvalidResultSetAccessException
columnIndex - 列インデックス cal - 日付の作成に使用するカレンダー InvalidResultSetAccessExceptionResultSet.getDate(int, Calendar)SE@Nullable DateSE getDate(StringSE columnLabel, CalendarSE cal) throws InvalidResultSetAccessException
columnLabel - 列ラベル cal - 日付の作成に使用するカレンダー InvalidResultSetAccessExceptionResultSet.getDate(String, Calendar)SEdouble getDouble(int columnIndex)
throws InvalidResultSetAccessExceptioncolumnIndex - 列インデックス InvalidResultSetAccessExceptionResultSet.getDouble(int)SEdouble getDouble(StringSE columnLabel) throws InvalidResultSetAccessException
columnLabel - 列ラベル InvalidResultSetAccessExceptionResultSet.getDouble(String)SEfloat getFloat(int columnIndex)
throws InvalidResultSetAccessExceptioncolumnIndex - 列インデックス InvalidResultSetAccessExceptionResultSet.getFloat(int)SEfloat getFloat(StringSE columnLabel) throws InvalidResultSetAccessException
columnLabel - 列ラベル InvalidResultSetAccessExceptionResultSet.getFloat(String)SEint getInt(int columnIndex)
throws InvalidResultSetAccessExceptioncolumnIndex - 列インデックス InvalidResultSetAccessExceptionResultSet.getInt(int)SEint getInt(StringSE columnLabel) throws InvalidResultSetAccessException
columnLabel - 列ラベル InvalidResultSetAccessExceptionResultSet.getInt(String)SElong getLong(int columnIndex)
throws InvalidResultSetAccessExceptioncolumnIndex - 列インデックス InvalidResultSetAccessExceptionResultSet.getLong(int)SElong getLong(StringSE columnLabel) throws InvalidResultSetAccessException
columnLabel - 列ラベル InvalidResultSetAccessExceptionResultSet.getLong(String)SE@Nullable StringSE getNString(int columnIndex) throws InvalidResultSetAccessException
columnIndex - 列インデックス InvalidResultSetAccessExceptionResultSet.getNString(int)SE@Nullable StringSE getNString(StringSE columnLabel) throws InvalidResultSetAccessException
columnLabel - 列ラベル InvalidResultSetAccessExceptionResultSet.getNString(String)SE@Nullable ObjectSE getObject(int columnIndex) throws InvalidResultSetAccessException
columnIndex - 列インデックス InvalidResultSetAccessExceptionResultSet.getObject(int)SE@Nullable ObjectSE getObject(StringSE columnLabel) throws InvalidResultSetAccessException
columnLabel - 列ラベル InvalidResultSetAccessExceptionResultSet.getObject(String)SE@Nullable ObjectSE getObject(int columnIndex, MapSE<StringSE,ClassSE<?>> map) throws InvalidResultSetAccessException
columnIndex - 列インデックス map - SQL 型から Java 型へのマッピングを含む Map オブジェクト InvalidResultSetAccessExceptionResultSet.getObject(int, Map)SE@Nullable ObjectSE getObject(StringSE columnLabel, MapSE<StringSE,ClassSE<?>> map) throws InvalidResultSetAccessException
columnLabel - 列ラベル map - SQL 型から Java 型へのマッピングを含む Map オブジェクト InvalidResultSetAccessExceptionResultSet.getObject(String, Map)SE@Nullable <T> T getObject(int columnIndex, ClassSE<T> type) throws InvalidResultSetAccessException
columnIndex - 列インデックス type - 指定された列を変換する Java 型 InvalidResultSetAccessExceptionResultSet.getObject(int, Class)SE@Nullable <T> T getObject(StringSE columnLabel, ClassSE<T> type) throws InvalidResultSetAccessException
columnLabel - 列ラベル type - 指定された列を変換する Java 型 InvalidResultSetAccessExceptionResultSet.getObject(String, Class)SEshort getShort(int columnIndex)
throws InvalidResultSetAccessExceptioncolumnIndex - 列インデックス InvalidResultSetAccessExceptionResultSet.getShort(int)SEshort getShort(StringSE columnLabel) throws InvalidResultSetAccessException
columnLabel - 列ラベル InvalidResultSetAccessExceptionResultSet.getShort(String)SE@Nullable StringSE getString(int columnIndex) throws InvalidResultSetAccessException
columnIndex - 列インデックス InvalidResultSetAccessExceptionResultSet.getString(int)SE@Nullable StringSE getString(StringSE columnLabel) throws InvalidResultSetAccessException
columnLabel - 列ラベル InvalidResultSetAccessExceptionResultSet.getString(String)SE@Nullable TimeSE getTime(int columnIndex) throws InvalidResultSetAccessException
columnIndex - 列インデックス InvalidResultSetAccessExceptionResultSet.getTime(int)SE@Nullable TimeSE getTime(StringSE columnLabel) throws InvalidResultSetAccessException
columnLabel - 列ラベル InvalidResultSetAccessExceptionResultSet.getTime(String)SE@Nullable TimeSE getTime(int columnIndex, CalendarSE cal) throws InvalidResultSetAccessException
columnIndex - 列インデックス cal - 日付の作成に使用するカレンダー InvalidResultSetAccessExceptionResultSet.getTime(int, Calendar)SE@Nullable TimeSE getTime(StringSE columnLabel, CalendarSE cal) throws InvalidResultSetAccessException
columnLabel - 列ラベル cal - 日付の作成に使用するカレンダー InvalidResultSetAccessExceptionResultSet.getTime(String, Calendar)SE@Nullable TimestampSE getTimestamp(int columnIndex) throws InvalidResultSetAccessException
columnIndex - 列インデックス InvalidResultSetAccessExceptionResultSet.getTimestamp(int)SE@Nullable TimestampSE getTimestamp(StringSE columnLabel) throws InvalidResultSetAccessException
columnLabel - 列ラベル InvalidResultSetAccessExceptionResultSet.getTimestamp(String)SE@Nullable TimestampSE getTimestamp(int columnIndex, CalendarSE cal) throws InvalidResultSetAccessException
columnIndex - 列インデックス cal - 日付の作成に使用するカレンダー InvalidResultSetAccessExceptionResultSet.getTimestamp(int, Calendar)SE@Nullable TimestampSE getTimestamp(StringSE columnLabel, CalendarSE cal) throws InvalidResultSetAccessException
columnLabel - 列ラベル cal - 日付の作成に使用するカレンダー InvalidResultSetAccessExceptionResultSet.getTimestamp(String, Calendar)SEboolean absolute(int row)
throws InvalidResultSetAccessExceptionrow - カーソルが移動する行の番号 true、それ以外の場合は false InvalidResultSetAccessExceptionResultSet.absolute(int)SEvoid afterLast()
throws InvalidResultSetAccessExceptionvoid beforeFirst()
throws InvalidResultSetAccessExceptionboolean first()
throws InvalidResultSetAccessExceptiontrue、それ以外の場合は false InvalidResultSetAccessExceptionResultSet.first()SEint getRow()
throws InvalidResultSetAccessExceptionInvalidResultSetAccessExceptionResultSet.getRow()SEboolean isAfterLast()
throws InvalidResultSetAccessExceptiontrue、それ以外の場合は false InvalidResultSetAccessExceptionResultSet.isAfterLast()SEboolean isBeforeFirst()
throws InvalidResultSetAccessExceptiontrue、それ以外の場合は false InvalidResultSetAccessExceptionResultSet.isBeforeFirst()SEboolean isFirst()
throws InvalidResultSetAccessExceptiontrue、それ以外の場合は false InvalidResultSetAccessExceptionResultSet.isFirst()SEboolean isLast()
throws InvalidResultSetAccessExceptiontrue、それ以外の場合は false InvalidResultSetAccessExceptionResultSet.isLast()SEboolean last()
throws InvalidResultSetAccessExceptiontrue、それ以外の場合は false InvalidResultSetAccessExceptionResultSet.last()SEboolean next()
throws InvalidResultSetAccessExceptiontrue、行がもうない場合は false InvalidResultSetAccessExceptionResultSet.next()SEboolean previous()
throws InvalidResultSetAccessExceptiontrue、行セットから外れている場合は false InvalidResultSetAccessExceptionResultSet.previous()SEboolean relative(int rows)
throws InvalidResultSetAccessExceptiontrue、それ以外の場合は false InvalidResultSetAccessExceptionResultSet.relative(int)SEboolean wasNull()
throws InvalidResultSetAccessExceptionNULL であったかどうかを報告します。 最初に getter メソッドの 1 つを呼び出してから、wasNull() メソッドを呼び出す必要があることに注意してください。
NULL の場合は true、それ以外の場合は false InvalidResultSetAccessExceptionResultSet.wasNull()SE