|
Préférences
Moteurs de recherche
|
||||||||
JavaTM 2 Platform Std. Ed. v1.6.0
javax.sql.rowset
|
Method Summary | |
---|---|
boolean |
evaluate(Object value,
int column)
This method is called by a FilteredRowSet object
to check whether the value lies between the filtering criterion (or criteria
if multiple constraints exist) set using the setFilter() method. |
boolean |
evaluate(Object value,
String columnName)
This method is called by the FilteredRowSet object
to check whether the value lies between the filtering criteria set
using the setFilter method. |
boolean |
evaluate(RowSet rs)
This method is typically called a FilteredRowSet object
internal methods (not public) that control the RowSet object's
cursor moving from row to the next. |
Method Detail |
---|
boolean evaluate(RowSet rs)
FilteredRowSet
object
internal methods (not public) that control the RowSet
object's
cursor moving from row to the next. In addition, if this internal method
moves the cursor onto a row that has been deleted, the internal method will
continue to ove the cursor until a valid row is found.
true
if there are more rows in the filter;
false
otherwiseboolean evaluate(Object value, int column) throws SQLException
FilteredRowSet
object
to check whether the value lies between the filtering criterion (or criteria
if multiple constraints exist) set using the setFilter()
method.
The FilteredRowSet
object will use this method internally
while inserting new rows to a FilteredRowSet
instance.
value
- An Object
value which needs to be checked,
whether it can be part of this FilterRowSet
object.column
- a int
object that must match the
SQL index of a column in this RowSet
object. This must
have been passed to Predicate
as one of the columns
for filtering while initializing a Predicate
true
ifrow value lies within the filter;
false
otherwise
SQLException
- if the column is not part of filtering criteriaboolean evaluate(Object value, String columnName) throws SQLException
FilteredRowSet
object
to check whether the value lies between the filtering criteria set
using the setFilter method.
The FilteredRowSet
object will use this method internally
while inserting new rows to a FilteredRowSet
instance.
value
- An Object
value which needs to be checked,
whether it can be part of this FilterRowSet
.columnName
- a String
object that must match the
SQL name of a column in this RowSet
, ignoring case. This must
have been passed to Predicate
as one of the columns for filtering
while initializing a Predicate
true
if value lies within the filter; false
otherwise
SQLException
- if the column is not part of filtering criteria