表示数据库结果集的数据表,通常通过执行查询数据库的语句生成。
方法/属性 | 描述 |
---|---|
boolean absolute(int pos) | 移动记录指针 |
boolean next() | 指针下移一行,返回是否成功 |
void close() | 关闭 |
<TYPE> get<TYPE>(int columnIndex) <TYPE> get<TYPE>(String columnName) |
取得字段值, 返回 <TYPE> 类型值 |
void update<TYPE>(int columnIndex, <TYPE>) void update<TYPE>(String columnName, <TYPE>) |
设置字段值, 字段类型是 <TYPE> |
void moveToInsertRow() | 指针转到插入行, 随后设置字段值, 再 insertRow |
insertRow() | 插入追加的行到数据库 |
updateRow() | 更新记录 |