net.sourceforge.domian.repository
Class AbstractXStreamXmlFilePerEntityRepository.XStreamXmlFileEntityIterator<T>

java.lang.Object
  extended by net.sourceforge.domian.repository.AbstractXStreamXmlFilePerEntityRepository.XStreamXmlFileEntityIterator<T>
All Implemented Interfaces:
java.util.Iterator<T>
Enclosing class:
AbstractXStreamXmlFilePerEntityRepository<T extends Entity>

protected class AbstractXStreamXmlFilePerEntityRepository.XStreamXmlFileEntityIterator<T>
extends java.lang.Object
implements java.util.Iterator<T>

Custom iterator class for AbstractXStreamXmlFilePerEntityRepository.


Field Summary
private  T currentEntity
           
private  Specification<T> iteratorSpecification
           
private  T nextEntity
           
private  boolean nextIsInvoked
           
private  java.util.Iterator<PersistentEntity> persistedEntityIterator
           
private  boolean removeIsInvoked
           
 
Constructor Summary
protected AbstractXStreamXmlFilePerEntityRepository.XStreamXmlFileEntityIterator(Specification<T> specification)
           
 
Method Summary
protected  void findNextEntity()
           
 boolean hasNext()
           
 T next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

iteratorSpecification

private Specification<T> iteratorSpecification

currentEntity

private T currentEntity

nextEntity

private T nextEntity

persistedEntityIterator

private java.util.Iterator<PersistentEntity> persistedEntityIterator

nextIsInvoked

private boolean nextIsInvoked

removeIsInvoked

private boolean removeIsInvoked
Constructor Detail

AbstractXStreamXmlFilePerEntityRepository.XStreamXmlFileEntityIterator

protected AbstractXStreamXmlFilePerEntityRepository.XStreamXmlFileEntityIterator(Specification<T> specification)
Method Detail

findNextEntity

protected void findNextEntity()

hasNext

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

next

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

remove

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


Copyright © 2008-2010. All Rights Reserved.