public interface RowSetInterface extends ResultSet
Title: Structured Data Objects
Description: RowSetInterface extends ResultSet interface with RowSet specific methods.
Copyright: Copyright (c) 2014
Company: StreamScape Technologies
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
Modifier and Type | Method and Description |
---|---|
boolean |
addRow(java.lang.Object[] rowValues)
Deprecated.
|
void |
addRowSetListener(RowSetListener listener)
Registers the given listener so that it will be notified of events
that occur on this
RowSet object. |
void |
addToRowSet(java.lang.Object[] rowValues)
Adds new row with provided values to the end of
RowSet . |
void |
addToRowSet(Row row)
Adds provided row to the end of
RowSet . |
RowSet |
asRowSet()
Returns serialized RowSet.
|
Row |
deleteFromRowSet(int index)
Deletes row with provided index from the
RowSet . |
Row |
getCurrentRow()
Returns current row.
|
int |
getOutParameterIndex(java.lang.String name)
Returns out parameter index by its name.
|
java.lang.String |
getOutParameterName(int index)
Returns output parameter name by its index.
|
java.lang.Object |
getOutParameterValue(int index)
Returns out parameter value by index.
|
java.lang.Object |
getOutParameterValue(java.lang.String name)
Returns out parameter value by name.
|
int |
getPageSize()
Returns the page-size for the
RowSet object
Actually the same as getFetchSize . |
java.lang.Object |
getReturnCodeValue()
Returns value value of return code.
|
Row |
getRowAt(int index)
Returns row by index.
|
int |
getRowCount()
Retrieves the number of rows that this
RowSet contains. |
RowMetaData |
getRowMetaData()
Returns copy of row meta data
RowMetaData . |
void |
insertIntoRowSet(int index,
java.lang.Object[] rowValues)
Inserts provided row values to the
RowSet at position index. |
void |
insertIntoRowSet(int index,
Row row)
Inserts provided row to the row set at position index.
|
boolean |
isEmpty()
Checks if RowSet is empty or not.
|
boolean |
isProtected()
Is row set protected by password or not.
|
boolean |
isReadOnly()
Returns if
RowSet is read only or not. |
Row |
newRow()
Return new row initialized with RowSet meta data.
|
boolean |
nextPage()
Increments the current page of the
RowSet . |
void |
populateOutParameters(CallableStatement callable,
SQLQueryParameterList parameters) |
boolean |
previousPage()
Decrements the current page of the
RowSet . |
void |
protect(java.lang.String password)
Sets RowSet protected with password.
|
void |
removeRowSetListener(RowSetListener listener)
Removes the specified listener from the list of components that will be
notified when an event occurs on this
RowSet object. |
RowSet |
selectFromRowSet(int startRowIndex,
int endRowIndex)
Selects rows from start to end row indexes and adds them to new
RowSet object. |
RowSet |
selectFromRowSet(java.lang.String columnName,
java.lang.Object columnValue)
Selects rows from a
RowSet that satisfy the condition row[objectName]=columnValue . |
void |
setOutParameterValue(int index,
java.lang.Object value)
Sets out parameter value by index.
|
void |
setOutParameterValue(java.lang.String name,
java.lang.Object value)
Sets out parameter value by name.
|
void |
setPageSize(int pageSize)
Sets the
RowSet object's page-size. |
void |
setReadOnly(boolean readOnly)
Sets read only flag.
|
void |
setReturnCodeValue(java.lang.Object code)
Sets value of return code.
|
void |
unprotect(java.lang.String password)
Sets RowSet unprotected.
|
java.util.List |
updateRowSet(int index,
java.lang.Object[] rowValues)
Updates row with provided values at provided position index.
|
java.util.List |
updateRowSet(int index,
Row row)
Updates row with provided row at provided position index.
|
absolute, afterLast, beforeFirst, cancelRowUpdates, clearWarnings, close, deleteRow, findColumn, first, getArray, getArray, getAsciiStream, getAsciiStream, getBigDecimal, getBigDecimal, getBigDecimal, getBigDecimal, getBinaryStream, getBinaryStream, getBlob, getBlob, getBoolean, getBoolean, getByte, getByte, getBytes, getBytes, getCharacterStream, getCharacterStream, getClob, getClob, getConcurrency, getCursorName, getDate, getDate, getDate, getDate, getDouble, getDouble, getFetchDirection, getFetchSize, getFloat, getFloat, getHoldability, getInt, getInt, getLong, getLong, getMetaData, getNCharacterStream, getNCharacterStream, getNClob, getNClob, getNString, getNString, getObject, getObject, getObject, getObject, getRef, getRef, getRow, getRowId, getRowId, getShort, getShort, getSQLXML, getSQLXML, getStatement, getString, getString, getTime, getTime, getTime, getTime, getTimestamp, getTimestamp, getTimestamp, getTimestamp, getType, getUnicodeStream, getUnicodeStream, getURL, getURL, getWarnings, insertRow, isAfterLast, isBeforeFirst, isClosed, isFirst, isLast, last, moveToCurrentRow, moveToInsertRow, next, previous, refreshRow, relative, rowDeleted, rowInserted, rowUpdated, setFetchDirection, setFetchSize, updateArray, updateArray, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateBigDecimal, updateBigDecimal, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBlob, updateBlob, updateBlob, updateBlob, updateBlob, updateBlob, updateBoolean, updateBoolean, updateByte, updateByte, updateBytes, updateBytes, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateClob, updateClob, updateClob, updateClob, updateClob, updateClob, updateDate, updateDate, updateDouble, updateDouble, updateFloat, updateFloat, updateInt, updateInt, updateLong, updateLong, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNString, updateNString, updateNull, updateNull, updateObject, updateObject, updateObject, updateObject, updateRef, updateRef, updateRow, updateRowId, updateRowId, updateShort, updateShort, updateSQLXML, updateSQLXML, updateString, updateString, updateTime, updateTime, updateTimestamp, updateTimestamp, wasNull
isWrapperFor, unwrap
RowMetaData getRowMetaData()
RowMetaData
.java.lang.Object getReturnCodeValue()
void setReturnCodeValue(java.lang.Object code)
code
- return code valueint getOutParameterIndex(java.lang.String name)
name
- parameter namejava.lang.String getOutParameterName(int index)
index
- out parameter index, 0 - first, 1 - second, ...java.lang.Object getOutParameterValue(int index)
index
- out parameter index, 0 - first, 1 - second, ...void setOutParameterValue(java.lang.String name, java.lang.Object value) throws RowException
name
- out parameter namevalue
- out parameter valueRowException
- if parameter with provided name doesn't existvoid setOutParameterValue(int index, java.lang.Object value) throws RowException
index
- out parameter index, 0 - first, 1 - second, ...value
- out parameter valueRowException
- if index out of range or value type is incompatible.java.lang.Object getOutParameterValue(java.lang.String name)
name
- out parameter namevoid populateOutParameters(CallableStatement callable, SQLQueryParameterList parameters) throws SQLException
SQLException
@Deprecated boolean addRow(java.lang.Object[] rowValues)
RowSet
.rowValues
- new row array of valuesvoid addToRowSet(java.lang.Object[] rowValues) throws SQLException
RowSet
.rowValues
- new row array of valuesSQLException
- if errorsvoid addToRowSet(Row row) throws SQLException
RowSet
.
The row should be created with newRow()
method.
Otherwise meta data matching will be performed.row
- Data row to be added to the row setSQLException
- if errorsRow deleteFromRowSet(int index) throws SQLException
RowSet
.index
- index of row, the first row is 1, the second is 2, ...SQLException
- if index is out of rangevoid insertIntoRowSet(int index, Row row) throws SQLException
newRow()
method.
Otherwise meta data matching will be performed.index
- index of the inserted row, the first row is 1, the second is 2, ...row
- Data row to be added to the row setSQLException
- if errorsvoid insertIntoRowSet(int index, java.lang.Object[] rowValues) throws SQLException
RowSet
at position index.index
- index of the inserted row, the first row is 1, the second is 2, ...rowValues
- Data row to be added to the row setSQLException
java.util.List updateRowSet(int index, Row row) throws SQLException
newRow()
method.
Otherwise meta data matching will be performed.index
- index of the inserted row, the first row is 1, the second is 2, ...row
- row to be added to the row setSQLException
java.util.List updateRowSet(int index, java.lang.Object[] rowValues) throws SQLException
newRow()
method.
Otherwise meta data matching will be performed.index
- index of the inserted row, the first row is 1, the second is 2, ...rowValues
- row values to be added to the row setSQLException
Row getRowAt(int index) throws SQLException
index
- index of the row to get, the first row is 1, the second is 2, ...SQLException
Row getCurrentRow() throws SQLException
SQLException
Row newRow()
boolean isEmpty()
int getRowCount()
RowSet
contains.RowSet
object containsboolean isReadOnly()
RowSet
is read only or not.
If RowSet
is read only then any updates are not allowed.void setReadOnly(boolean readOnly) throws SQLException
RowSet
are not allowed.SQLException
- if RowSet is protected by password.boolean isProtected()
RowSet
is protected then read-only flag cannot be changed.void protect(java.lang.String password) throws SQLException
password
- SQLException
- if RowSet is already protected with another password.void unprotect(java.lang.String password) throws SQLException
password
- SQLException
- if RowSet is protected with another password.void addRowSetListener(RowSetListener listener)
RowSet
object.listener
- a component that has implemented the RowSetListener
interface and wants to be notified when events occur on this
RowSet
objectvoid removeRowSetListener(RowSetListener listener)
RowSet
object.listener
- a component that has been registered as a listener for this
RowSet
objectRowSet selectFromRowSet(int startRowIndex, int endRowIndex) throws SQLException
RowSet
object.startRowIndex
- index of first rowendRowIndex
- index of last rowSQLException
- if provided indexes out of rangeRowSet selectFromRowSet(java.lang.String columnName, java.lang.Object columnValue) throws SQLException
RowSet
that satisfy the condition row[objectName]=columnValue
.columnName
- condition column namecolumnValue
- condition column's valueSQLException
RowSet asRowSet() throws SQLException
SQLException
void setPageSize(int pageSize) throws SQLException
RowSet
object's page-size. A RowSet
may be configured to populate itself in page-size sized batches of rows. When
either next()
or nextPage()
are called, the
RowSet
fetches an additional page. Actually the same as setFetchSize(int)
.size
- the page-size of the RowSet
SQLException
- if an error occurs setting the RowSet
page size or if the page size is less than 0.int getPageSize() throws SQLException
RowSet
object
Actually the same as getFetchSize
.int
page sizeSQLException
boolean nextPage() throws SQLException
RowSet
. This causes
the RowSet
implementation to fetch the next page-size
rows. Pointer will be set on the first row of the new page.
If false returned, RowSet becomes the same.SQLException
- if an error occurs fetching the next pageboolean previousPage() throws SQLException
RowSet
. This causes
the RowSet
implementation to fetch the previous page-size
rows. Pointer will be set on the first row of the new page.
If false returned, RowSet becomes the same.SQLException
- if an error occurs fetching the previous page.Copyright © 2015-2024 StreamScape Technologies. All rights reserved.