GigaSpaces - Open Spaces

org.openspaces.persistency.hibernate.iterator
Class DefaultCriteriaByExampleDataIterator

java.lang.Object
  extended by org.openspaces.persistency.hibernate.iterator.DefaultCriteriaByExampleDataIterator
All Implemented Interfaces:
com.gigaspaces.datasource.DataIterator, Iterator

public class DefaultCriteriaByExampleDataIterator
extends Object
implements com.gigaspaces.datasource.DataIterator

A simple iterator that iterates over template object using Hibernate Criteria by example.

Author:
kimchy

Field Summary
protected  org.hibernate.Session session
           
protected  org.hibernate.SessionFactory sessionFactory
           
protected  Object template
           
protected  org.hibernate.Transaction transaction
           
 
Constructor Summary
DefaultCriteriaByExampleDataIterator(Object template, org.hibernate.SessionFactory sessionFactory)
           
 
Method Summary
 void close()
           
protected  Iterator createIterator()
           
 boolean hasNext()
           
 Object next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

template

protected final Object template

sessionFactory

protected final org.hibernate.SessionFactory sessionFactory

transaction

protected org.hibernate.Transaction transaction

session

protected org.hibernate.Session session
Constructor Detail

DefaultCriteriaByExampleDataIterator

public DefaultCriteriaByExampleDataIterator(Object template,
                                            org.hibernate.SessionFactory sessionFactory)
Method Detail

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

close

public void close()
Specified by:
close in interface com.gigaspaces.datasource.DataIterator

createIterator

protected Iterator createIterator()

GigaSpaces - Open Spaces

Copyright © GigaSpaces.