GigaSpaces XAP 9.1 API

org.openspaces.persistency.hibernate.iterator
Class HibernateProxyRemoverIterator

java.lang.Object
  extended by org.openspaces.persistency.hibernate.iterator.HibernateProxyRemoverIterator
All Implemented Interfaces:
DataIterator, Iterator, MultiDataIterator

public class HibernateProxyRemoverIterator
extends Object
implements MultiDataIterator

A wrapper iterator that removes Hibernate proxies from the actual object returned.

Author:
kimchy

Constructor Summary
HibernateProxyRemoverIterator(DataIterator iterator)
           
 
Method Summary
 void close()
          Clean up after any resources associated with this iterator The iterator can be closed even if the iterator wasn't iterated over all of its elements.
 boolean hasNext()
           
 DataIterator[] iterators()
          Returns the underlying iterators.
 Object next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HibernateProxyRemoverIterator

public HibernateProxyRemoverIterator(DataIterator iterator)
Method Detail

iterators

public DataIterator[] iterators()
Description copied from interface: MultiDataIterator
Returns the underlying iterators. Note, calling this method should only be performed if no iteration has happened.

Specified by:
iterators in interface MultiDataIterator

close

public void close()
Description copied from interface: DataIterator
Clean up after any resources associated with this iterator The iterator can be closed even if the iterator wasn't iterated over all of its elements.

Specified by:
close in interface DataIterator

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator

next

public Object next()
Specified by:
next in interface Iterator

remove

public void remove()
Specified by:
remove in interface Iterator

GigaSpaces XAP 9.1 API

Copyright © GigaSpaces.