新聞中心
RowSetInternal

public interface RowSetInternalRowSet 對象為了將自身呈現(xiàn)給 RowSetReader 或 RowSetWriter 對象而實現(xiàn)的接口。 RowSetInternal 接口包含允許讀取器或?qū)懭肫髟L問和修改行集的內(nèi)部狀態(tài)的方法。
Since:
1.4
方法總結(jié)
| 修飾符和類型 | 方法 | 描述 |
|---|---|---|
| Connection | getConnection() | 檢索傳遞給此 RowSet 對象的 Connection 對象。 |
| ResultSet | getOriginal() | 檢索包含此 RowSet 對象的原始值的 ResultSet 對象。 |
| ResultSet | getOriginalRow() | 檢索僅包含當前行的原始值的 ResultSet 對象。 |
| Object[] | getParams() | 檢索已為此 RowSet 對象的命令設(shè)置的參數(shù)。 |
| void | setMetaData(RowSetMetaData md) | 將給定的 RowSetMetaData 對象設(shè)置為此 RowSet 對象的 RowSetMetaData 對象。 |
方法詳情
getParams
Object[] getParams() throws SQLException
檢索已為此 RowSet 對象的命令設(shè)置的參數(shù)。
返回:
此 RowSet 對象的命令的當前參數(shù)值數(shù)組
Throws:
| Throw名稱 | Throw描述 |
|---|---|
| SQLException | 如果發(fā)生數(shù)據(jù)庫訪問錯誤 |
getConnection
Connection getConnection() throws SQLException
檢索傳遞給此 RowSet 對象的 Connection 對象。
返回:
傳遞給行集的 Connection 對象,如果沒有傳遞,則為 null
Throws:
| Throw名稱 | Throw描述 |
|---|---|
| SQLException | 如果發(fā)生數(shù)據(jù)庫訪問錯誤 |
setMetaData
void setMetaData(RowSetMetaData md) throws SQLException
將給定的 RowSetMetaData 對象設(shè)置為此 RowSet 對象的 RowSetMetaData 對象。 與行集關(guān)聯(lián)的 RowSetReader 對象將使用 RowSetMetaData 方法來設(shè)置提供有關(guān)行集列的信息的值。
參數(shù):
| 參數(shù)名稱 | 參數(shù)描述 |
|---|---|
| md | 將使用有關(guān)行集列的信息設(shè)置的 RowSetMetaData 對象 |
Throws:
| Throw名稱 | Throw描述 |
|---|---|
| SQLException | 如果發(fā)生數(shù)據(jù)庫訪問錯誤 |
getOriginal
ResultSet getOriginal() throws SQLException
檢索包含此 RowSet 對象的原始值的 ResultSet 對象。
游標位于結(jié)果集中的第一行之前。 只有包含在由方法 getOriginal 返回的結(jié)果集中的行才被稱為具有原始值。
返回:
行集的原始值
Throws:
| Throw名稱 | Throw描述 |
|---|---|
| SQLException | 如果發(fā)生數(shù)據(jù)庫訪問錯誤 |
getOriginalRow
ResultSet getOriginalRow() throws SQLException
檢索僅包含當前行的原始值的 ResultSet 對象。 如果當前行沒有原始值,則返回空結(jié)果集。 如果沒有當前行,則拋出異常。
返回:
當前行的原始值作為 ResultSet 對象
Throws:
| Throw名稱 | Throw描述 |
|---|---|
| SQLException | 如果發(fā)生數(shù)據(jù)庫訪問錯誤或在光標位于插入行上、第一行之前或最后一行之后調(diào)用此方法 |
本文標題:創(chuàng)新互聯(lián)鴻蒙OS教程:鴻蒙OSRowSetInternal
文章轉(zhuǎn)載:http://m.5511xx.com/article/cdiggpj.html


咨詢
建站咨詢
