org.databene.platform.dbunit
Class DbUnitEntityIterator

java.lang.Object
  extended by org.databene.platform.dbunit.DbUnitEntityIterator
All Implemented Interfaces:
java.io.Closeable, java.util.Iterator<Entity>, org.databene.commons.HeavyweightIterator<Entity>

public class DbUnitEntityIterator
extends java.lang.Object
implements org.databene.commons.HeavyweightIterator<Entity>

Iterates the rows defined an a DBUnit dataset file. It supports the normal format as well as the flat format.

Created: 05.08.2007 07:43:36

Author:
Volker Bergmann

Constructor Summary
DbUnitEntityIterator(java.lang.String uri, org.databene.commons.Context context)
           
 
Method Summary
 void close()
           
 boolean hasNext()
           
 Entity next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DbUnitEntityIterator

public DbUnitEntityIterator(java.lang.String uri,
                            org.databene.commons.Context context)
                     throws java.io.IOException
Throws:
java.io.IOException
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator<Entity>

next

public Entity next()
Specified by:
next in interface java.util.Iterator<Entity>

remove

public void remove()
Specified by:
remove in interface java.util.Iterator<Entity>

close

public void close()
Specified by:
close in interface java.io.Closeable


Copyright © 2011. All Rights Reserved.