public interface Cursor extends Iterable<Row>
{
- // FIXME, include iterable and iterator methods?
-
public Id getId();
public Table getTable();
public boolean isCurrentRowDeleted() throws IOException;
/**
- * Returns an Iterable whose iterator() method calls <code>afterLast</code>
- * on this cursor and returns a modifiable Iterator which will iterate
- * through all the rows of this table in reverse order. Use of the Iterator
- * follows the same restrictions as a call to <code>getPreviousRow</code>.
+ * Returns an Iterable whose iterator() method calls {@link #afterLast} on
+ * this cursor and returns a modifiable Iterator which will iterate through
+ * all the rows of this table in reverse order. Use of the Iterator follows
+ * the same restrictions as a call to {@link #getPreviousRow}.
* @throws IllegalStateException if an IOException is thrown by one of the
* operations, the actual exception will be contained within
*/
public Iterable<Row> reverseIterable();
/**
- * Returns an Iterable whose iterator() method calls <code>afterLast</code>
- * on this table and returns a modifiable Iterator which will iterate
- * through all the rows of this table in reverse order, returning only the
- * given columns. Use of the Iterator follows the same restrictions as a
- * call to <code>getPreviousRow</code>.
+ * Returns an Iterable whose iterator() method calls {@link #afterLast} on
+ * this table and returns a modifiable Iterator which will iterate through
+ * all the rows of this table in reverse order, returning only the given
+ * columns. Use of the Iterator follows the same restrictions as a call to
+ * {@link #getPreviousRow}.
* @throws IllegalStateException if an IOException is thrown by one of the
* operations, the actual exception will be contained within
*/
Collection<String> columnNames);
/**
- * Calls <code>beforeFirst</code> on this cursor and returns a modifiable
+ * Calls {@link #beforeFirst} on this cursor and returns a modifiable
* Iterator which will iterate through all the rows of this table. Use of
* the Iterator follows the same restrictions as a call to
- * <code>getNextRow</code>.
+ * {@link #getNextRow}.
* @throws IllegalStateException if an IOException is thrown by one of the
* operations, the actual exception will be contained within
*/
public Iterator<Row> iterator();
/**
- * Returns an Iterable whose iterator() method returns the result of a call
- * to {@link #iterator(Collection)}
+ * Returns an Iterable whose iterator() method calls {@link #beforeFirst} on
+ * this table and returns a modifiable Iterator which will iterate through
+ * all the rows of this table, returning only the given columns. Use of the
+ * Iterator follows the same restrictions as a call to {@link #getNextRow}.
* @throws IllegalStateException if an IOException is thrown by one of the
* operations, the actual exception will be contained within
*/
Collection<String> columnNames);
/**
- * Calls <code>beforeFirst</code> on this table and returns a modifiable
- * Iterator which will iterate through all the rows of this table, returning
- * only the given columns. Use of the Iterator follows the same
- * restrictions as a call to <code>getNextRow</code>.
- * @throws IllegalStateException if an IOException is thrown by one of the
- * operations, the actual exception will be contained within
- */
- public Iterator<Row> iterator(Collection<String> columnNames);
-
- /**
- * Returns an Iterable whose iterator() method returns the result of a call
- * to {@link #columnMatchIterable(Column,Object)}
+ * Returns an Iterable whose iterator() method calls {@link #beforeFirst} on
+ * this cursor and returns a modifiable Iterator which will iterate through
+ * all the rows of this table which match the given column pattern. Use of
+ * the Iterator follows the same restrictions as a call to {@link
+ * #getNextRow}. See {@link #findFirstRow(Column,Object)} for details on
+ * #the columnPattern.
* @throws IllegalStateException if an IOException is thrown by one of the
* operations, the actual exception will be contained within
*/
Column columnPattern, Object valuePattern);
/**
- * Calls <code>beforeFirst</code> on this cursor and returns a modifiable
- * Iterator which will iterate through all the rows of this table which
- * match the given column pattern. Use of the Iterator follows the same
- * restrictions as a call to <code>getNextRow</code>. See
- * {@link #findFirstRow(Column,Object)} for details on the columnPattern.
- * @throws IllegalStateException if an IOException is thrown by one of the
- * operations, the actual exception will be contained within
- */
- public Iterator<Row> columnMatchIterator(
- Column columnPattern, Object valuePattern);
-
- /**
- * Returns an Iterable whose iterator() method returns the result of a call
- * to {@link #columnMatchIterator(Collection,Column,Object)}
+ * Returns an Iterable whose iterator() method calls {@link #beforeFirst} on
+ * this table and returns a modifiable Iterator which will iterate through
+ * all the rows of this table which match the given column pattern,
+ * returning only the given columns. Use of the Iterator follows the same
+ * restrictions as a call to {@link #getNextRow}. See {@link
+ * #findFirstRow(Column,Object)} for details on the columnPattern.
* @throws IllegalStateException if an IOException is thrown by one of the
* operations, the actual exception will be contained within
*/
Column columnPattern, Object valuePattern);
/**
- * Calls <code>beforeFirst</code> on this table and returns a modifiable
- * Iterator which will iterate through all the rows of this table which
- * match the given column pattern, returning only the given columns. Use of
- * the Iterator follows the same restrictions as a call to
- * <code>getNextRow</code>. See {@link #findFirstRow(Column,Object)} for
- * details on the columnPattern.
- * @throws IllegalStateException if an IOException is thrown by one of the
- * operations, the actual exception will be contained within
- */
- public Iterator<Row> columnMatchIterator(
- Collection<String> columnNames, Column columnPattern, Object valuePattern);
-
- /**
- * Returns an Iterable whose iterator() method returns the result of a call
- * to {@link #rowMatchIterator(Map)}
+ * Returns an Iterable whose iterator() method calls {@link #beforeFirst} on
+ * this cursor and returns a modifiable Iterator which will iterate through
+ * all the rows of this table which match the given row pattern. Use of the
+ * Iterator follows the same restrictions as a call to {@link #getNextRow}.
+ * See {@link #findFirstRow(Map)} for details on the rowPattern.
* @throws IllegalStateException if an IOException is thrown by one of the
* operations, the actual exception will be contained within
*/
Map<String,?> rowPattern);
/**
- * Calls <code>beforeFirst</code> on this cursor and returns a modifiable
- * Iterator which will iterate through all the rows of this table which
- * match the given row pattern. Use of the Iterator follows the same
- * restrictions as a call to <code>getNextRow</code>. See
- * {@link #findFirstRow(Map)} for details on the rowPattern.
- * @throws IllegalStateException if an IOException is thrown by one of the
- * operations, the actual exception will be contained within
- */
- public Iterator<Row> rowMatchIterator(
- Map<String,?> rowPattern);
-
- /**
- * Returns an Iterable whose iterator() method returns the result of a call
- * to {@link #rowMatchIterator(Collection,Map)}
+ * Returns an Iterable whose iterator() method calls {@link #beforeFirst} on
+ * this table and returns a modifiable Iterator which will iterate through
+ * all the rows of this table which match the given row pattern, returning
+ * only the given columns. Use of the Iterator follows the same
+ * restrictions as a call to {@link #getNextRow}. See {@link
+ * #findFirstRow(Map)} for details on the rowPattern.
* @throws IllegalStateException if an IOException is thrown by one of the
* operations, the actual exception will be contained within
*/
Collection<String> columnNames,
Map<String,?> rowPattern);
- /**
- * Calls <code>beforeFirst</code> on this table and returns a modifiable
- * Iterator which will iterate through all the rows of this table which
- * match the given row pattern, returning only the given columns. Use of
- * the Iterator follows the same restrictions as a call to
- * <code>getNextRow</code>. See {@link #findFirstRow(Map)} for details on
- * the rowPattern.
- * @throws IllegalStateException if an IOException is thrown by one of the
- * operations, the actual exception will be contained within
- */
- public Iterator<Row> rowMatchIterator(
- Collection<String> columnNames, Map<String,?> rowPattern);
-
/**
* Delete the current row.
* @throws IllegalStateException if the current row is not valid (at
};
}
+ /**
+ * Calls <code>beforeFirst</code> on this table and returns a modifiable
+ * Iterator which will iterate through all the rows of this table, returning
+ * only the given columns. Use of the Iterator follows the same
+ * restrictions as a call to <code>getNextRow</code>.
+ * @throws IllegalStateException if an IOException is thrown by one of the
+ * operations, the actual exception will be contained within
+ */
public Iterator<Row> iterator(Collection<String> columnNames)
{
return new RowIterator(columnNames, MOVE_FORWARD);
return columnMatchIterable(null, columnPattern, valuePattern);
}
+ /**
+ * Calls <code>beforeFirst</code> on this cursor and returns a modifiable
+ * Iterator which will iterate through all the rows of this table which
+ * match the given column pattern. Use of the Iterator follows the same
+ * restrictions as a call to <code>getNextRow</code>. See
+ * {@link #findFirstRow(Column,Object)} for details on the columnPattern.
+ * @throws IllegalStateException if an IOException is thrown by one of the
+ * operations, the actual exception will be contained within
+ */
public Iterator<Row> columnMatchIterator(
Column columnPattern, Object valuePattern)
{
};
}
+ /**
+ * Calls <code>beforeFirst</code> on this table and returns a modifiable
+ * Iterator which will iterate through all the rows of this table which
+ * match the given column pattern, returning only the given columns. Use of
+ * the Iterator follows the same restrictions as a call to
+ * <code>getNextRow</code>. See {@link #findFirstRow(Column,Object)} for
+ * details on the columnPattern.
+ * @throws IllegalStateException if an IOException is thrown by one of the
+ * operations, the actual exception will be contained within
+ */
public Iterator<Row> columnMatchIterator(
Collection<String> columnNames, Column columnPattern,
Object valuePattern)
return rowMatchIterable(null, rowPattern);
}
+ /**
+ * Calls <code>beforeFirst</code> on this cursor and returns a modifiable
+ * Iterator which will iterate through all the rows of this table which
+ * match the given row pattern. Use of the Iterator follows the same
+ * restrictions as a call to <code>getNextRow</code>. See
+ * {@link #findFirstRow(Map)} for details on the rowPattern.
+ * @throws IllegalStateException if an IOException is thrown by one of the
+ * operations, the actual exception will be contained within
+ */
public Iterator<Row> rowMatchIterator(
Map<String,?> rowPattern)
{
};
}
+ /**
+ * Calls <code>beforeFirst</code> on this table and returns a modifiable
+ * Iterator which will iterate through all the rows of this table which
+ * match the given row pattern, returning only the given columns. Use of
+ * the Iterator follows the same restrictions as a call to
+ * <code>getNextRow</code>. See {@link #findFirstRow(Map)} for details on
+ * the rowPattern.
+ * @throws IllegalStateException if an IOException is thrown by one of the
+ * operations, the actual exception will be contained within
+ */
public Iterator<Row> rowMatchIterator(
Collection<String> columnNames, Map<String,?> rowPattern)
{