net.sourceforge.domian.repository
Class HibernateRepository.HibernateRepositoryIterator<V extends T>

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

protected class HibernateRepository.HibernateRepositoryIterator<V extends T>
extends java.lang.Object
implements java.util.Iterator<V>

Custom iterator class for HibernateRepository.


Field Summary
protected  V currentEntity
           
protected  java.util.Iterator<V> iterator
           
protected  Specification<V> iteratorSpecification
           
protected  boolean nextIsInvoked
           
 
Constructor Summary
HibernateRepository.HibernateRepositoryIterator(Specification<V> specification)
           
 
Method Summary
 boolean hasNext()
           
 V next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

iteratorSpecification

protected final Specification<V extends T> iteratorSpecification

iterator

protected final java.util.Iterator<V extends T> iterator

currentEntity

protected V extends T currentEntity

nextIsInvoked

protected boolean nextIsInvoked
Constructor Detail

HibernateRepository.HibernateRepositoryIterator

public HibernateRepository.HibernateRepositoryIterator(Specification<V> specification)
Method Detail

hasNext

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

next

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

remove

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


Copyright © 2009-2010. All Rights Reserved.