APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.rowset

public Class FilteredRowSetImpl

extends WebRowSetImpl
implements Serializable, Cloneable, FilteredRowSet
Class Inheritance
All Implemented Interfaces
javax.sql.rowset.FilteredRowSet, javax.sql.rowset.WebRowSet, javax.sql.rowset.CachedRowSet, javax.sql.rowset.Joinable, javax.sql.RowSet, java.sql.ResultSet, java.lang.AutoCloseable, java.sql.Wrapper, java.lang.Cloneable, java.io.Serializable
Imports
java.io.*, java.util.*, java.sql.*, javax.sql.*, java.math.*, javax.sql.rowset.*, javax.sql.rowset.spi.*, javax.sql.rowset.serial.*, com.sun.rowset.providers.*, com.sun.rowset.internal.*

The standard implementation of the FilteredRowSet interface. See the interface definition for full behavior and implementation requirements.
Author
Jonathan Bruce, Amit Handa
See Also
javax.sql.rowset.Predicate

Field Summary

Modifier and TypeField and Description
private boolean
private Predicate
p

pack-priv static final long

Constructor Summary

AccessConstructor and Description
public
FilteredRowSetImpl()

Construct a FilteredRowSet

public
FilteredRowSetImpl(Hashtable<K, V>
a Hashtable containing a desired synchconizatation provider name-value pair.
env
)

Construct a FilteredRowSet with a specified synchronization provider.

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if the cursor is on the rowset; false otherwise
absolute
(int
a positive number to indicate the row, starting row numbering from the first row, which is 1; a negative number to indicate the row, starting row numbering from the last row, which is -1; it must not be 0
rows
)

Overrides com.sun.rowset.CachedRowSetImpl.absolute.

Implements java.sql.ResultSet.absolute.

Moves this CachedRowSetImpl object's cursor to the row number specified.

public Predicate

Returns:

a Predicate object instance
getFilter
()

Implements javax.sql.rowset.FilteredRowSet.getFilter.

Retrieve the filter active for this FilteredRowSet

public void
insertRow()

Overrides com.sun.rowset.CachedRowSetImpl.insertRow.

Implements java.sql.ResultSet.insertRow.

Inserts the contents of this CachedRowSetImpl object's insert row into this rowset immediately following the current row.

protected boolean

Returns:

true if over the valid row in the rowset; false if over the last row
internalFirst
()

Overrides com.sun.rowset.CachedRowSetImpl.internalFirst.

Over-riding internalFirst() implementation.

protected boolean

Returns:

true if over the valid row in the rowset; false if over the last row
internalLast
()

Overrides com.sun.rowset.CachedRowSetImpl.internalLast.

Over-riding internalLast() implementation.

protected boolean

Returns:

true if over the valid row in the rowset; false if over the last row
internalNext
()

Overrides com.sun.rowset.CachedRowSetImpl.internalNext.

Over-riding internalNext() implementation.

protected boolean

Returns:

true if over the valid row in the rowset; false if over the last row
internalPrevious
()

Overrides com.sun.rowset.CachedRowSetImpl.internalPrevious.

Over-riding internalPrevious() implementation.

public void
moveToInsertRow()

Overrides com.sun.rowset.CachedRowSetImpl.moveToInsertRow.

Implements java.sql.ResultSet.moveToInsertRow.

Moves the cursor for this CachedRowSetImpl object to the insert row.

private void
readObject(ObjectInputStream ois)

Hides com.sun.rowset.WebRowSetImpl.readObject.

This method re populates the resBundle during the deserialization process

public boolean

Returns:

true if the cursor is on a row in this CachedRowSetImpl object; false otherwise
relative
(int
an int indicating the number of rows to move the cursor, starting at the current row; a positive number moves the cursor forward; a negative number moves the cursor backward; must not move the cursor past the valid rows
rows
)

Overrides com.sun.rowset.CachedRowSetImpl.relative.

Implements java.sql.ResultSet.relative.

Moves the cursor the specified number of rows from the current position, with a positive number moving it forward and a negative number moving it backward.

public void
setFilter(Predicate
an implementation of the predicate interface
p
)

Implements javax.sql.rowset.FilteredRowSet.setFilter.

Apply the predicate for this filter

public void
updateAsciiStream(int
the first column is 1, the second is 2, and so on; must be 1 or larger and equal to or less than the number of columns in this rowset
columnIndex
,
InputStream
the new column value
x
,
int
the number of one-byte ASCII characters in the stream
length
)

Overrides com.sun.rowset.CachedRowSetImpl.updateAsciiStream.

Implements java.sql.ResultSet.updateAsciiStream.

Sets the designated column in either the current row or the insert row of this CachedRowSetImpl object with the given ASCII stream value.

public void
updateAsciiStream(String
a String object that must match the SQL name of a column in this rowset, ignoring case
columnName
,
InputStream
the new column value
x
,
int
the number of one-byte ASCII characters in the stream
length
)

Overrides com.sun.rowset.CachedRowSetImpl.updateAsciiStream.

Implements java.sql.ResultSet.updateAsciiStream.

Sets the designated column in either the current row or the insert row of this CachedRowSetImpl object with the given ASCII stream value.

public void
updateBigDecimal(int
the first column is 1, the second is 2, and so on; must be 1 or larger and equal to or less than the number of columns in this rowset
columnIndex
,
BigDecimal
the new column value
x
)

Overrides com.sun.rowset.CachedRowSetImpl.updateBigDecimal.

Implements java.sql.ResultSet.updateBigDecimal.

Sets the designated column in either the current row or the insert row of this CachedRowSetImpl object with the given java.math.BigDecimal object.

public void
updateBigDecimal(String
a String object that must match the SQL name of a column in this rowset, ignoring case
columnName
,
BigDecimal
the new column value
x
)

Overrides com.sun.rowset.CachedRowSetImpl.updateBigDecimal.

Implements java.sql.ResultSet.updateBigDecimal.

Sets the designated column in either the current row or the insert row of this CachedRowSetImpl object with the given java.math.BigDecimal object.

public void
updateBinaryStream(int
the first column is 1, the second is 2, and so on; must be 1 or larger and equal to or less than the number of columns in this rowset
columnIndex
,
InputStream
the new column value; must be a java.io.InputStream containing BINARY, VARBINARY, or LONGVARBINARY data
x
,
int
the length of the stream in bytes
length
)

Overrides com.sun.rowset.CachedRowSetImpl.updateBinaryStream.

Implements java.sql.ResultSet.updateBinaryStream.

Sets the designated column in either the current row or the insert row of this CachedRowSetImpl object with the given java.io.InputStream object.

public void
updateBinaryStream(String
a String object that must match the SQL name of a column in this rowset, ignoring case
columnName
,
InputStream
the new column value; must be a java.io.InputStream containing BINARY, VARBINARY, or LONGVARBINARY data
x
,
int
the length of the stream in bytes
length
)

Overrides com.sun.rowset.CachedRowSetImpl.updateBinaryStream.

Implements java.sql.ResultSet.updateBinaryStream.

Sets the designated column in either the current row or the insert row of this CachedRowSetImpl object with the given java.io.InputStream object.

public void
updateBoolean(int
the first column is 1, the second is 2, and so on; must be 1 or larger and equal to or less than the number of columns in this rowset
columnIndex
,
boolean
the new column value
x
)

Overrides com.sun.rowset.CachedRowSetImpl.updateBoolean.

Implements java.sql.ResultSet.updateBoolean.

Sets the designated column in either the current row or the insert row of this CachedRowSetImpl object with the given boolean value.

public void
updateBoolean(String
a String object that must match the SQL name of a column in this rowset, ignoring case
columnName
,
boolean
the new column value
x
)

Overrides com.sun.rowset.CachedRowSetImpl.updateBoolean.

Implements java.sql.ResultSet.updateBoolean.

Sets the designated column in either the current row or the insert row of this CachedRowSetImpl object with the given boolean value.

public void
updateByte(int
the first column is 1, the second is 2, and so on; must be 1 or larger and equal to or less than the number of columns in this rowset
columnIndex
,
byte
the new column value
x
)

Overrides com.sun.rowset.CachedRowSetImpl.updateByte.

Implements java.sql.ResultSet.updateByte.

Sets the designated column in either the current row or the insert row of this CachedRowSetImpl object with the given byte value.

public void
updateByte(String
a String object that must match the SQL name of a column in this rowset, ignoring case
columnName
,
byte
the new column value
x
)

Overrides com.sun.rowset.CachedRowSetImpl.updateByte.

Implements java.sql.ResultSet.updateByte.

Sets the designated column in either the current row or the insert row of this CachedRowSetImpl object with the given byte value.

public void
updateBytes(int
the first column is 1, the second is 2, and so on; must be 1 or larger and equal to or less than the number of columns in this rowset
columnIndex
,
byte[]
the new column value
x
)

Overrides com.sun.rowset.CachedRowSetImpl.updateBytes.

Implements java.sql.ResultSet.updateBytes.

Sets the designated column in either the current row or the insert row of this CachedRowSetImpl object with the given byte array.

public void
updateBytes(String
a String object that must match the SQL name of a column in this rowset, ignoring case
columnName
,
byte[]
the new column value
x
)

Overrides com.sun.rowset.CachedRowSetImpl.updateBytes.

Implements java.sql.ResultSet.updateBytes.

Sets the designated column in either the current row or the insert row of this CachedRowSetImpl object with the given byte array.

public void
updateCharacterStream(int
the first column is 1, the second is 2, and so on; must be 1 or larger and equal to or less than the number of columns in this rowset
columnIndex
,
Reader
the new column value; must be a java.io.Reader containing BINARY, VARBINARY, LONGVARBINARY, CHAR, VARCHAR, or LONGVARCHAR data
x
,
int
the length of the stream in characters
length
)

Overrides com.sun.rowset.CachedRowSetImpl.updateCharacterStream.

Implements java.sql.ResultSet.updateCharacterStream.

Sets the designated column in either the current row or the insert row of this CachedRowSetImpl object with the given java.io.Reader object.

public void
updateCharacterStream(String
a String object that must match the SQL name of a column in this rowset, ignoring case
columnName
,
Reader
the new column value; must be a java.io.Reader containing BINARY, VARBINARY, LONGVARBINARY, CHAR, VARCHAR, or LONGVARCHAR data
reader
,
int
the length of the stream in characters
length
)

Overrides com.sun.rowset.CachedRowSetImpl.updateCharacterStream.

Implements java.sql.ResultSet.updateCharacterStream.

Sets the designated column in either the current row or the insert row of this CachedRowSetImpl object with the given java.io.Reader object.

public void
updateDate(int
the first column is 1, the second is 2, and so on; must be 1 or larger and equal to or less than the number of columns in this rowset
columnIndex
,
Date
the new column value
x
)

Overrides com.sun.rowset.CachedRowSetImpl.updateDate.

Implements java.sql.ResultSet.updateDate.

Sets the designated column in either the current row or the insert row of this CachedRowSetImpl object with the given Date object.

public void
updateDate(String
a String object that must match the SQL name of a column in this rowset, ignoring case
columnName
,
Date
the new column value
x
)

Overrides com.sun.rowset.CachedRowSetImpl.updateDate.

Implements java.sql.ResultSet.updateDate.

Sets the designated column in either the current row or the insert row of this CachedRowSetImpl object with the given Date object.

public void
updateDouble(int
the first column is 1, the second is 2, and so on; must be 1 or larger and equal to or less than the number of columns in this rowset
columnIndex
,
double
the new column value
x
)

Overrides com.sun.rowset.CachedRowSetImpl.updateDouble.

Implements java.sql.ResultSet.updateDouble.

Sets the designated column in either the current row or the insert row of this CachedRowSetImpl object with the given double value.

public void
updateDouble(String
a String object that must match the SQL name of a column in this rowset, ignoring case
columnName
,
double
the new column value
x
)

Overrides com.sun.rowset.CachedRowSetImpl.updateDouble.

Implements java.sql.ResultSet.updateDouble.

Sets the designated column in either the current row or the insert row of this CachedRowSetImpl object with the given double value.

public void
updateFloat(int
the first column is 1, the second is 2, and so on; must be 1 or larger and equal to or less than the number of columns in this rowset
columnIndex
,
float
the new column value
x
)

Overrides com.sun.rowset.CachedRowSetImpl.updateFloat.

Implements java.sql.ResultSet.updateFloat.

Sets the designated column in either the current row or the insert row of this CachedRowSetImpl object with the given float value.

public void
updateFloat(String
a String object that must match the SQL name of a column in this rowset, ignoring case
columnName
,
float
the new column value
x
)

Overrides com.sun.rowset.CachedRowSetImpl.updateFloat.

Implements java.sql.ResultSet.updateFloat.

Sets the designated column in either the current row or the insert row of this CachedRowSetImpl object with the given float value.

public void
updateInt(int
the first column is 1, the second is 2, and so on; must be 1 or larger and equal to or less than the number of columns in this rowset
columnIndex
,
int
the new column value
x
)

Overrides com.sun.rowset.CachedRowSetImpl.updateInt.

Implements java.sql.ResultSet.updateInt.

Sets the designated column in either the current row or the insert row of this CachedRowSetImpl object with the given int value.

public void
updateInt(String
a String object that must match the SQL name of a column in this rowset, ignoring case
columnName
,
int
the new column value
x
)

Overrides com.sun.rowset.CachedRowSetImpl.updateInt.

Implements java.sql.ResultSet.updateInt.

Sets the designated column in either the current row or the insert row of this CachedRowSetImpl object with the given int value.

public void
updateLong(int
the first column is 1, the second is 2, and so on; must be 1 or larger and equal to or less than the number of columns in this rowset
columnIndex
,
long
the new column value
x
)

Overrides com.sun.rowset.CachedRowSetImpl.updateLong.

Implements java.sql.ResultSet.updateLong.

Sets the designated column in either the current row or the insert row of this CachedRowSetImpl object with the given long value.

public void
updateLong(String
a String object that must match the SQL name of a column in this rowset, ignoring case
columnName
,
long
the new column value
x
)

Overrides com.sun.rowset.CachedRowSetImpl.updateLong.

Implements java.sql.ResultSet.updateLong.

Sets the designated column in either the current row or the insert row of this CachedRowSetImpl object with the given long value.

public void
updateObject(int
the first column is 1, the second is 2, and so on; must be 1 or larger and equal to or less than the number of columns in this rowset
columnIndex
,
Object
the new column value
x
)

Overrides com.sun.rowset.CachedRowSetImpl.updateObject.

Implements java.sql.ResultSet.updateObject.

Sets the designated column in either the current row or the insert row of this CachedRowSetImpl object with the given Object value.

public void
updateObject(String
a String object that must match the SQL name of a column in this rowset, ignoring case
columnName
,
Object
the new column value
x
)

Overrides com.sun.rowset.CachedRowSetImpl.updateObject.

Implements java.sql.ResultSet.updateObject.

Sets the designated column in either the current row or the insert row of this CachedRowSetImpl object with the given Object value.

public void
updateObject(int
the first column is 1, the second is 2, and so on; must be 1 or larger and equal to or less than the number of columns in this rowset
columnIndex
,
Object
the new column value
x
,
int
the number of digits to the right of the decimal point (for DECIMAL and NUMERIC types only)
scale
)

Overrides com.sun.rowset.CachedRowSetImpl.updateObject.

Implements java.sql.ResultSet.updateObject.

Sets the designated column in either the current row or the insert row of this CachedRowSetImpl object with the given Object value.

public void
updateObject(String
a String object that must match the SQL name of a column in this rowset, ignoring case
columnName
,
Object
the new column value
x
,
int
the number of digits to the right of the decimal point (for DECIMAL and NUMERIC types only)
scale
)

Overrides com.sun.rowset.CachedRowSetImpl.updateObject.

Implements java.sql.ResultSet.updateObject.

Sets the designated column in either the current row or the insert row of this CachedRowSetImpl object with the given Object value.

public void
updateShort(int
the first column is 1, the second is 2, and so on; must be 1 or larger and equal to or less than the number of columns in this rowset
columnIndex
,
short
the new column value
x
)

Overrides com.sun.rowset.CachedRowSetImpl.updateShort.

Implements java.sql.ResultSet.updateShort.

Sets the designated column in either the current row or the insert row of this CachedRowSetImpl object with the given short value.

public void
updateShort(String
a String object that must match the SQL name of a column in this rowset, ignoring case
columnName
,
short
the new column value
x
)

Overrides com.sun.rowset.CachedRowSetImpl.updateShort.

Implements java.sql.ResultSet.updateShort.

Sets the designated column in either the current row or the insert row of this CachedRowSetImpl object with the given short value.

public void
updateString(int
the first column is 1, the second is 2, and so on; must be 1 or larger and equal to or less than the number of columns in this rowset
columnIndex
,
String
the new column value
x
)

Overrides com.sun.rowset.CachedRowSetImpl.updateString.

Implements java.sql.ResultSet.updateString.

Sets the designated column in either the current row or the insert row of this CachedRowSetImpl object with the given String object.

public void
updateString(String
a String object that must match the SQL name of a column in this rowset, ignoring case
columnName
,
String
the new column value
x
)

Overrides com.sun.rowset.CachedRowSetImpl.updateString.

Implements java.sql.ResultSet.updateString.

Sets the designated column in either the current row or the insert row of this CachedRowSetImpl object with the given String object.

public void
updateTime(int
the first column is 1, the second is 2, and so on; must be 1 or larger and equal to or less than the number of columns in this rowset
columnIndex
,
Time
the new column value
x
)

Overrides com.sun.rowset.CachedRowSetImpl.updateTime.

Implements java.sql.ResultSet.updateTime.

Sets the designated column in either the current row or the insert row of this CachedRowSetImpl object with the given Time object.

public void
updateTime(String
a String object that must match the SQL name of a column in this rowset, ignoring case
columnName
,
Time
the new column value
x
)

Overrides com.sun.rowset.CachedRowSetImpl.updateTime.

Implements java.sql.ResultSet.updateTime.

Sets the designated column in either the current row or the insert row of this CachedRowSetImpl object with the given Time object.

public void
updateTimestamp(int
the first column is 1, the second is 2, and so on; must be 1 or larger and equal to or less than the number of columns in this rowset
columnIndex
,
Timestamp
the new column value
x
)

Overrides com.sun.rowset.CachedRowSetImpl.updateTimestamp.

Implements java.sql.ResultSet.updateTimestamp.

Sets the designated column in either the current row or the insert row of this CachedRowSetImpl object with the given Timestamp object.

public void
updateTimestamp(String
a String object that must match the SQL name of a column in this rowset, ignoring case
columnName
,
Timestamp
the new column value
x
)

Overrides com.sun.rowset.CachedRowSetImpl.updateTimestamp.

Implements java.sql.ResultSet.updateTimestamp.

Sets the designated column in either the current row or the insert row of this CachedRowSetImpl object with the given Timestamp object.

Inherited from com.sun.rowset.WebRowSetImpl:
readXmlreadXmlwriteXmlwriteXmlwriteXmlwriteXml