| java.lang.Object velosurf.context.RowIterator
RowIterator | public class RowIterator implements Iterator<Instance>,RowHandler(Code) | | This class is a context wrapper for ResultSets, and provides an iteration mecanism for #foreach loops, as long as getters for values of the current row.
author: Claude Brisson |
RowIterator | public RowIterator(PooledStatement pooledStatement, ResultSet resultSet, Entity resultEntity)(Code) | | Build a new RowIterator.
Parameters: pooledStatement - the sql statement Parameters: resultSet - the resultset Parameters: resultEntity - the resulting entity (may be null) |
get | public Object get(Object key)(Code) | | Generic getter for values of the current row. If no column corresponds to the specified name and a resulting entity has been specified, search among this entity's attributes.
Note that this method is the only getter of RowIterator that cares about obfuscation - other specialized getters
won't do any obfuscation.
Parameters: key - the name of an existing column or attribute an entity, an attribute reference, an instance, a string or null |
getRows | public List<Instance> getRows()(Code) | | Gets all the rows in a list of instances.
a list of all the rows |
hasNext | public boolean hasNext()(Code) | | Returns true if the iteration has more elements.
true if the iterator has more elements. |
next | public Instance next()(Code) | | Returns the next element in the iteration.
an Instance. |
remove | public void remove()(Code) | | not implemented.
|
|
|