|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
public interface SqlRowSet
该接口是对 javax.sql.RowSet接口的一个包装,当断开连接之后通过 SqlRowSet 接口仍然可以取得数据。
RowSet,
ResultSet| 方法摘要 | |
|---|---|
boolean |
absolute(int row)
Moves the cursor to the given row number in the RowSet, just after the last row. |
void |
afterLast()
Moves the cursor to the end of this RowSet. |
void |
beforeFirst()
Moves the cursor to the front of this RowSet, just before the first row. |
int |
findColumn(String columnName)
Maps the given column name to its column index. |
boolean |
first()
Moves the cursor to the first row of this RowSet. |
BigDecimal |
getBigDecimal(int columnIndex)
Retrieves the value of the indicated column in the current row as an BigDecimal object. |
BigDecimal |
getBigDecimal(String columnName)
Retrieves the value of the indicated column in the current row as an BigDecimal object. |
boolean |
getBoolean(int columnIndex)
Retrieves the value of the indicated column in the current row as a boolean. |
boolean |
getBoolean(String columnName)
Retrieves the value of the indicated column in the current row as a boolean. |
byte |
getByte(int columnIndex)
Retrieves the value of the indicated column in the current row as a byte. |
byte |
getByte(String columnName)
Retrieves the value of the indicated column in the current row as a byte. |
Date |
getDate(int columnIndex)
Retrieves the value of the indicated column in the current row as a Date object. |
Date |
getDate(int columnIndex,
Calendar cal)
Retrieves the value of the indicated column in the current row as a Date object. |
Date |
getDate(String columnName)
Retrieves the value of the indicated column in the current row as a Date object. |
Date |
getDate(String columnName,
Calendar cal)
Retrieves the value of the indicated column in the current row as a Date object. |
double |
getDouble(int columnIndex)
Retrieves the value of the indicated column in the current row as a Double object. |
double |
getDouble(String columnName)
Retrieves the value of the indicated column in the current row as a Double object. |
float |
getFloat(int columnIndex)
Retrieves the value of the indicated column in the current row as a float. |
float |
getFloat(String columnName)
Retrieves the value of the indicated column in the current row as a float. |
int |
getInt(int columnIndex)
Retrieves the value of the indicated column in the current row as an int. |
int |
getInt(String columnName)
Retrieves the value of the indicated column in the current row as an int. |
long |
getLong(int columnIndex)
Retrieves the value of the indicated column in the current row as a long. |
long |
getLong(String columnName)
Retrieves the value of the indicated column in the current row as a long. |
SqlRowSetMetaData |
getMetaData()
Retrieves the meta data (number, types and properties for the columns) of this row set. |
Object |
getObject(int columnIndex)
Retrieves the value of the indicated column in the current row as an Object. |
Object |
getObject(int columnIndex,
Map map)
Retrieves the value of the indicated column in the current row as an Object. |
Object |
getObject(String columnName)
Retrieves the value of the indicated column in the current row as an Object. |
Object |
getObject(String columnName,
Map map)
Retrieves the value of the indicated column in the current row as an Object. |
int |
getRow()
Retrieves the current row number. |
short |
getShort(int columnIndex)
Retrieves the value of the indicated column in the current row as a short. |
short |
getShort(String columnName)
Retrieves the value of the indicated column in the current row as a short. |
String |
getString(int columnIndex)
Retrieves the value of the indicated column in the current row as a String. |
String |
getString(String columnName)
Retrieves the value of the indicated column in the current row as a String. |
Time |
getTime(int columnIndex)
Retrieves the value of the indicated column in the current row as a Time object. |
Time |
getTime(int columnIndex,
Calendar cal)
Retrieves the value of the indicated column in the current row as a Time object. |
Time |
getTime(String columnName)
Retrieves the value of the indicated column in the current row as a Time object. |
Time |
getTime(String columnName,
Calendar cal)
Retrieves the value of the indicated column in the current row as a Time object. |
Timestamp |
getTimestamp(int columnIndex)
Retrieves the value of the indicated column in the current row as a Timestamp object. |
Timestamp |
getTimestamp(int columnIndex,
Calendar cal)
Retrieves the value of the indicated column in the current row as a Timestamp object. |
Timestamp |
getTimestamp(String columnName)
Retrieves the value of the indicated column in the current row as a Timestamp object. |
Timestamp |
getTimestamp(String columnName,
Calendar cal)
Retrieves the value of the indicated column in the current row as a Timestamp object. |
boolean |
isAfterLast()
Retrieves whether the cursor is after the last row of this RowSet. |
boolean |
isBeforeFirst()
Retrieves whether the cursor is after the first row of this RowSet. |
boolean |
isFirst()
Retrieves whether the cursor is on the first row of this RowSet. |
boolean |
isLast()
Retrieves whether the cursor is on the last row of this RowSet. |
boolean |
last()
Moves the cursor to the last row of this RowSet. |
boolean |
next()
Moves the cursor to the next row. |
boolean |
previous()
Moves the cursor to the previous row. |
boolean |
relative(int rows)
Moves the cursor a relative number f rows, either positive or negative. |
boolean |
wasNull()
Reports whether the last column read had a value of SQL NULL. |
| 方法详细信息 |
|---|
SqlRowSetMetaData getMetaData()
ResultSet.getMetaData()
int findColumn(String columnName)
throws InvalidDataAccessException
columnName - the name of the column
InvalidDataAccessExceptionResultSet.findColumn(String)
BigDecimal getBigDecimal(int columnIndex)
throws InvalidDataAccessException
columnIndex - the column index
InvalidDataAccessExceptionResultSet.getBigDecimal(int)
BigDecimal getBigDecimal(String columnName)
throws InvalidDataAccessException
columnName - the column name
InvalidDataAccessExceptionResultSet.getBigDecimal(java.lang.String)
boolean getBoolean(int columnIndex)
throws InvalidDataAccessException
columnIndex - the column index
InvalidDataAccessExceptionResultSet.getBoolean(int)
boolean getBoolean(String columnName)
throws InvalidDataAccessException
columnName - the column name
InvalidDataAccessExceptionResultSet.getBoolean(java.lang.String)
byte getByte(int columnIndex)
throws InvalidDataAccessException
columnIndex - the column index
InvalidDataAccessExceptionResultSet.getByte(int)
byte getByte(String columnName)
throws InvalidDataAccessException
columnName - the column name
InvalidDataAccessExceptionResultSet.getByte(java.lang.String)
Date getDate(int columnIndex,
Calendar cal)
throws InvalidDataAccessException
columnIndex - the column indexcal - the Calendar to use in constructing the Date
InvalidDataAccessExceptionResultSet.getDate(int, java.util.Calendar)
Date getDate(int columnIndex)
throws InvalidDataAccessException
columnIndex - the column index
InvalidDataAccessExceptionResultSet.getDate(int)
Date getDate(String columnName,
Calendar cal)
throws InvalidDataAccessException
columnName - the column namecal - the Calendar to use in constructing the Date
InvalidDataAccessExceptionResultSet.getDate(java.lang.String, java.util.Calendar)
Date getDate(String columnName)
throws InvalidDataAccessException
columnName - the column name
InvalidDataAccessExceptionResultSet.getDate(java.lang.String)
double getDouble(int columnIndex)
throws InvalidDataAccessException
columnIndex - the column index
InvalidDataAccessExceptionResultSet.getDouble(int)
double getDouble(String columnName)
throws InvalidDataAccessException
columnName - the column name
InvalidDataAccessExceptionResultSet.getDouble(java.lang.String)
float getFloat(int columnIndex)
throws InvalidDataAccessException
columnIndex - the column index
InvalidDataAccessExceptionResultSet.getFloat(int)
float getFloat(String columnName)
throws InvalidDataAccessException
columnName - the column name
InvalidDataAccessExceptionResultSet.getFloat(java.lang.String)
int getInt(int columnIndex)
throws InvalidDataAccessException
columnIndex - the column index
InvalidDataAccessExceptionResultSet.getInt(int)
int getInt(String columnName)
throws InvalidDataAccessException
columnName - the column name
InvalidDataAccessExceptionResultSet.getInt(java.lang.String)
long getLong(int columnIndex)
throws InvalidDataAccessException
columnIndex - the column index
InvalidDataAccessExceptionResultSet.getLong(int)
long getLong(String columnName)
throws InvalidDataAccessException
columnName - the column name
InvalidDataAccessExceptionResultSet.getLong(java.lang.String)
Object getObject(int columnIndex,
Map map)
throws InvalidDataAccessException
columnIndex - the column indexmap - a Map object containing the mapping from SQL types to Java types
InvalidDataAccessExceptionResultSet.getObject(int, java.util.Map)
Object getObject(int columnIndex)
throws InvalidDataAccessException
columnIndex - the column index
InvalidDataAccessExceptionResultSet.getObject(int)
Object getObject(String columnName,
Map map)
throws InvalidDataAccessException
columnName - the column namemap - a Map object containing the mapping from SQL types to Java types
InvalidDataAccessExceptionResultSet.getObject(java.lang.String, java.util.Map)
Object getObject(String columnName)
throws InvalidDataAccessException
columnName - the column name
InvalidDataAccessExceptionResultSet.getObject(java.lang.String)
short getShort(int columnIndex)
throws InvalidDataAccessException
columnIndex - the column index
InvalidDataAccessExceptionResultSet.getShort(int)
short getShort(String columnName)
throws InvalidDataAccessException
columnName - the column name
InvalidDataAccessExceptionResultSet.getShort(java.lang.String)
String getString(int columnIndex)
throws InvalidDataAccessException
columnIndex - the column index
InvalidDataAccessExceptionResultSet.getString(int)
String getString(String columnName)
throws InvalidDataAccessException
columnName - the column name
InvalidDataAccessExceptionResultSet.getString(java.lang.String)
Time getTime(int columnIndex,
Calendar cal)
throws InvalidDataAccessException
columnIndex - the column indexcal - the Calendar to use in constructing the Date
InvalidDataAccessExceptionResultSet.getTime(int, java.util.Calendar)
Time getTime(int columnIndex)
throws InvalidDataAccessException
columnIndex - the column index
InvalidDataAccessExceptionResultSet.getTime(int)
Time getTime(String columnName,
Calendar cal)
throws InvalidDataAccessException
columnName - the column namecal - the Calendar to use in constructing the Date
InvalidDataAccessExceptionResultSet.getTime(java.lang.String, java.util.Calendar)
Time getTime(String columnName)
throws InvalidDataAccessException
columnName - the column name
InvalidDataAccessExceptionResultSet.getTime(java.lang.String)
Timestamp getTimestamp(int columnIndex,
Calendar cal)
throws InvalidDataAccessException
columnIndex - the column indexcal - the Calendar to use in constructing the Date
InvalidDataAccessExceptionResultSet.getTimestamp(int, java.util.Calendar)
Timestamp getTimestamp(int columnIndex)
throws InvalidDataAccessException
columnIndex - the column index
InvalidDataAccessExceptionResultSet.getTimestamp(int)
Timestamp getTimestamp(String columnName,
Calendar cal)
throws InvalidDataAccessException
columnName - the column namecal - the Calendar to use in constructing the Date
InvalidDataAccessExceptionResultSet.getTimestamp(java.lang.String, java.util.Calendar)
Timestamp getTimestamp(String columnName)
throws InvalidDataAccessException
columnName - the column name
InvalidDataAccessExceptionResultSet.getTimestamp(java.lang.String)
boolean absolute(int row)
throws InvalidDataAccessException
row - the number of the row where the cursor should move
InvalidDataAccessExceptionResultSet.absolute(int)
void afterLast()
throws InvalidDataAccessException
InvalidDataAccessExceptionResultSet.afterLast()
void beforeFirst()
throws InvalidDataAccessException
InvalidDataAccessExceptionResultSet.beforeFirst()
boolean first()
throws InvalidDataAccessException
InvalidDataAccessExceptionResultSet.first()
int getRow()
throws InvalidDataAccessException
InvalidDataAccessExceptionResultSet.getRow()
boolean isAfterLast()
throws InvalidDataAccessException
InvalidDataAccessExceptionResultSet.isAfterLast()
boolean isBeforeFirst()
throws InvalidDataAccessException
InvalidDataAccessExceptionResultSet.isBeforeFirst()
boolean isFirst()
throws InvalidDataAccessException
InvalidDataAccessExceptionResultSet.isFirst()
boolean isLast()
throws InvalidDataAccessException
InvalidDataAccessExceptionResultSet.isLast()
boolean last()
throws InvalidDataAccessException
InvalidDataAccessExceptionResultSet.last()
boolean next()
throws InvalidDataAccessException
InvalidDataAccessExceptionResultSet.next()
boolean previous()
throws InvalidDataAccessException
InvalidDataAccessExceptionResultSet.previous()
boolean relative(int rows)
throws InvalidDataAccessException
InvalidDataAccessExceptionResultSet.relative(int)
boolean wasNull()
throws InvalidDataAccessException
NULL.
Note that you must first call one of the getter methods and then call
the wasNull method.
NULL,
false otherwise
InvalidDataAccessExceptionResultSet.wasNull()
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||