Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

javatools.db.xml
Class XIterator  view XIterator download XIterator.java

java.lang.Object
  extended byjavatools.db.xml.XIterator
All Implemented Interfaces:
javatools.db.DbIterator, java.util.Iterator

public class XIterator
extends java.lang.Object
implements javatools.db.DbIterator


Field Summary
(package private)  java.util.Iterator resultIt
           
(package private)  XTable table
           
 
Constructor Summary
XIterator(XTable table)
          Creates a new instance of XIterator
 
Method Summary
 boolean hasNext()
          Checks if this iterator has a value after the current one.
 boolean hasNextRow()
          Are there more rows to iterator through?
 java.lang.Object next()
          Takes the next object from the iterator.
 javatools.db.DbRow nextRow()
          Get the next DbRow in the table.
 void remove()
          Removes the current element in the iterator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

table

XTable table

resultIt

java.util.Iterator resultIt
Constructor Detail

XIterator

public XIterator(XTable table)
Creates a new instance of XIterator

Method Detail

hasNext

public boolean hasNext()
Checks if this iterator has a value after the current one.

Specified by:
hasNext in interface java.util.Iterator

hasNextRow

public boolean hasNextRow()
                   throws javatools.db.DbException
Are there more rows to iterator through?

Specified by:
hasNextRow in interface javatools.db.DbIterator

next

public java.lang.Object next()
Takes the next object from the iterator.

Specified by:
next in interface java.util.Iterator

nextRow

public javatools.db.DbRow nextRow()
                           throws javatools.db.DbException
Get the next DbRow in the table.

Specified by:
nextRow in interface javatools.db.DbIterator

remove

public void remove()
Removes the current element in the iterator.

Specified by:
remove in interface javatools.db.DbIterator