80 * return false;
81 * }
82 *
83 * if (value < lo[i] && value > hi[i]) {
84 * // outside of filter constraints
85 * return false;
86 * }
87 * }
88 * // Within filter constraints
89 * return true;
90 * }
91 * }
92 * }</pre>
93 * <P>
94 * The example above implements a simple range predicate. Note, that
95 * implementations should but are not required to provide <code>String</code>
96 * and integer index based constructors to provide for JDBC RowSet Implementation
97 * applications that use both column identification conventions.
98 *
99 * @author Jonathan Bruce, Amit Handa
100 *
101 */
102
103 // <h3>3.0 FilteredRowSet Internals</h3>
104 // internalNext, Frist, Last. Discuss guidelines on how to approach this
105 // and cite examples in reference implementations.
106 public interface Predicate {
107 /**
108 * This method is typically called a <code>FilteredRowSet</code> object
109 * internal methods (not public) that control the <code>RowSet</code> object's
110 * cursor moving from row to the next. In addition, if this internal method
111 * moves the cursor onto a row that has been deleted, the internal method will
112 * continue to ove the cursor until a valid row is found.
113 * @param rs The {@code RowSet} to be evaluated
114 * @return <code>true</code> if there are more rows in the filter;
115 * <code>false</code> otherwise
116 */
117 public boolean evaluate(RowSet rs);
118
119
|
80 * return false;
81 * }
82 *
83 * if (value < lo[i] && value > hi[i]) {
84 * // outside of filter constraints
85 * return false;
86 * }
87 * }
88 * // Within filter constraints
89 * return true;
90 * }
91 * }
92 * }</pre>
93 * <P>
94 * The example above implements a simple range predicate. Note, that
95 * implementations should but are not required to provide <code>String</code>
96 * and integer index based constructors to provide for JDBC RowSet Implementation
97 * applications that use both column identification conventions.
98 *
99 * @author Jonathan Bruce, Amit Handa
100 * @since 1.5
101 *
102 */
103
104 // <h3>3.0 FilteredRowSet Internals</h3>
105 // internalNext, Frist, Last. Discuss guidelines on how to approach this
106 // and cite examples in reference implementations.
107 public interface Predicate {
108 /**
109 * This method is typically called a <code>FilteredRowSet</code> object
110 * internal methods (not public) that control the <code>RowSet</code> object's
111 * cursor moving from row to the next. In addition, if this internal method
112 * moves the cursor onto a row that has been deleted, the internal method will
113 * continue to ove the cursor until a valid row is found.
114 * @param rs The {@code RowSet} to be evaluated
115 * @return <code>true</code> if there are more rows in the filter;
116 * <code>false</code> otherwise
117 */
118 public boolean evaluate(RowSet rs);
119
120
|