| java.lang.Object org.ofbiz.entity.util.EntityListIterator
EntityListIterator | public class EntityListIterator implements ListIterator(Code) | | Generic Entity Cursor List Iterator for Handling Cursored DB Results
author: David E. Jones version: $Revision: 1.5 $ since: 2.0 |
closed | protected boolean closed(Code) | | |
haveMadeValue | protected boolean haveMadeValue(Code) | | |
module | final public static String module(Code) | | Module Name Used for debugging
|
absolute | public boolean absolute(int rowNum) throws GenericEntityException(Code) | | performs the same function as the ResultSet.absolute method;
if rowNum is positive, goes to that position relative to the beginning of the list;
if rowNum is negative, goes to that position relative to the end of the list;
a rowNum of 1 is the same as first(); a rowNum of -1 is the same as last()
|
afterLast | public void afterLast() throws GenericEntityException(Code) | | Sets the cursor position to just after the last result so that previous() will return the last result
|
beforeFirst | public void beforeFirst() throws GenericEntityException(Code) | | Sets the cursor position to just before the first result so that next() will return the first result
|
currentGenericValue | public GenericValue currentGenericValue() throws GenericEntityException(Code) | | NOTE: Calling this method does return the current value, but so does calling next() or previous(), so calling one of those AND this method will cause the value to be created twice
|
first | public boolean first() throws GenericEntityException(Code) | | Sets the cursor position to last result; if result set is empty returns false
|
getPartialList | public List getPartialList(int start, int number) throws GenericEntityException(Code) | | Gets a partial list of results starting at start and containing at most number elements.
Start is a one based value, ie 1 is the first element.
|
hasNext | public boolean hasNext()(Code) | | PLEASE NOTE: Because of the nature of the JDBC ResultSet interface this method can be very inefficient; it is much better to just use next() until it returns null
|
hasPrevious | public boolean hasPrevious()(Code) | | PLEASE NOTE: Because of the nature of the JDBC ResultSet interface this method can be very inefficient; it is much better to just use previous() until it returns null
|
next | public Object next()(Code) | | Moves the cursor to the next position and returns the GenericValue object for that position; if there is no next, returns null
|
nextIndex | public int nextIndex()(Code) | | Returns the index of the next result, but does not guarantee that there will be a next result
|
previous | public Object previous()(Code) | | Moves the cursor to the previous position and returns the GenericValue object for that position; if there is no previous, returns null
|
previousIndex | public int previousIndex()(Code) | | Returns the index of the previous result, but does not guarantee that there will be a previous result
|
relative | public boolean relative(int rows) throws GenericEntityException(Code) | | performs the same function as the ResultSet.relative method;
if rows is positive, goes forward relative to the current position;
if rows is negative, goes backward relative to the current position;
|
remove | public void remove()(Code) | | |
|
|