src/share/classes/javax/sql/rowset/Predicate.java
Print this page
*** 51,62 ****
* defined and deployed with both the reference and vendor implementations
* of the <code>FilteredRowSet</code> interface, this allows for a flexible
* and application motivated implementations of <code>Predicate</code> to emerge.
* <p>
* A sample implementation would look something like this:
! * <pre>
! * <code>
* public class Range implements Predicate {
*
* private Object lo[];
* private Object hi[];
* private int idx[];
--- 51,61 ----
* defined and deployed with both the reference and vendor implementations
* of the <code>FilteredRowSet</code> interface, this allows for a flexible
* and application motivated implementations of <code>Predicate</code> to emerge.
* <p>
* A sample implementation would look something like this:
! * <pre>{@code
* public class Range implements Predicate {
*
* private Object lo[];
* private Object hi[];
* private int idx[];
*** 88,99 ****
* return false;
* } else {
* return true;
* }
* }
! * </code>
! * </pre>
* <P>
* The example above implements a simple range predicate. Note, that
* implementations should but are not required to provider <code>String</code>
* and integer index based constructors to provide for JDBC RowSet Implementation
* applications that use both column identification conventions.
--- 87,98 ----
* return false;
* } else {
* return true;
* }
* }
! * }
! * }</pre>
* <P>
* The example above implements a simple range predicate. Note, that
* implementations should but are not required to provider <code>String</code>
* and integer index based constructors to provide for JDBC RowSet Implementation
* applications that use both column identification conventions.