congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
HibernateIterator.close
Code IndexAdd Tabnine to your IDE (free)

How to use
close
method
in
org.hibernate.engine.HibernateIterator

Best Java code snippets using org.hibernate.engine.HibernateIterator.close (Showing top 7 results out of 315)

origin: hibernate/hibernate-orm

/**
 * Close an {@link Iterator} instances obtained from {@link org.hibernate.Query#iterate()} immediately
 * instead of waiting until the session is closed or disconnected.
 *
 * @param iterator an Iterator created by iterate()
 *
 * @throws HibernateException Indicates a problem closing the Hibernate iterator.
 * @throws IllegalArgumentException If the Iterator is not a "Hibernate Iterator".
 *
 * @see Query#iterate()
 */
public static void close(Iterator iterator) throws HibernateException {
  if ( iterator instanceof HibernateIterator ) {
    ( (HibernateIterator) iterator ).close();
  }
  else {
    throw new IllegalArgumentException( "not a Hibernate iterator" );
  }
}
origin: hazelcast/hazelcast-code-samples

@Override
public void close() throws IOException {
  iterator.close();
}
origin: hibernate/hibernate

/**
 * Close an <tt>Iterator</tt> created by <tt>iterate()</tt> immediately,
 * instead of waiting until the session is closed or disconnected.
 *
 * @param iterator an <tt>Iterator</tt> created by <tt>iterate()</tt>
 * @throws HibernateException
 * @see org.hibernate.classic.Session#iterate(java.lang.String)
 * @see Query#iterate()
 */
public static void close(Iterator iterator) throws HibernateException {
  if ( iterator instanceof HibernateIterator ) {
    ( ( HibernateIterator ) iterator ).close();
  }
  else {
    throw new IllegalArgumentException( "not a Hibernate iterator" );
  }
}
origin: org.hibernate/com.springsource.org.hibernate

/**
 * Close an <tt>Iterator</tt> created by <tt>iterate()</tt> immediately,
 * instead of waiting until the session is closed or disconnected.
 *
 * @param iterator an <tt>Iterator</tt> created by <tt>iterate()</tt>
 * @throws HibernateException
 * @see org.hibernate.Query#iterate
 * @see Query#iterate()
 */
public static void close(Iterator iterator) throws HibernateException {
  if ( iterator instanceof HibernateIterator ) {
    ( ( HibernateIterator ) iterator ).close();
  }
  else {
    throw new IllegalArgumentException( "not a Hibernate iterator" );
  }
}
origin: jboss.jboss-embeddable-ejb3/hibernate-all

/**
 * Close an <tt>Iterator</tt> created by <tt>iterate()</tt> immediately,
 * instead of waiting until the session is closed or disconnected.
 *
 * @param iterator an <tt>Iterator</tt> created by <tt>iterate()</tt>
 * @throws HibernateException
 * @see org.hibernate.Query#iterate
 * @see Query#iterate()
 */
public static void close(Iterator iterator) throws HibernateException {
  if ( iterator instanceof HibernateIterator ) {
    ( ( HibernateIterator ) iterator ).close();
  }
  else {
    throw new IllegalArgumentException( "not a Hibernate iterator" );
  }
}
origin: org.hibernate/com.springsource.org.hibernate.core

/**
 * Close an <tt>Iterator</tt> created by <tt>iterate()</tt> immediately,
 * instead of waiting until the session is closed or disconnected.
 *
 * @param iterator an <tt>Iterator</tt> created by <tt>iterate()</tt>
 * @throws HibernateException
 * @see org.hibernate.Query#iterate
 * @see Query#iterate()
 */
public static void close(Iterator iterator) throws HibernateException {
  if ( iterator instanceof HibernateIterator ) {
    ( ( HibernateIterator ) iterator ).close();
  }
  else {
    throw new IllegalArgumentException( "not a Hibernate iterator" );
  }
}
origin: org.hibernate.orm/hibernate-core

/**
 * Close an {@link Iterator} instances obtained from {@link org.hibernate.Query#iterate()} immediately
 * instead of waiting until the session is closed or disconnected.
 *
 * @param iterator an Iterator created by iterate()
 *
 * @throws HibernateException Indicates a problem closing the Hibernate iterator.
 * @throws IllegalArgumentException If the Iterator is not a "Hibernate Iterator".
 *
 * @see Query#iterate()
 */
public static void close(Iterator iterator) throws HibernateException {
  if ( iterator instanceof HibernateIterator ) {
    ( (HibernateIterator) iterator ).close();
  }
  else {
    throw new IllegalArgumentException( "not a Hibernate iterator" );
  }
}
org.hibernate.engineHibernateIteratorclose

Javadoc

Close the Hibernate query result iterator

Popular methods of HibernateIterator

  • hasNext
  • next

Popular in Java

  • Making http post requests using okhttp
  • addToBackStack (FragmentTransaction)
  • requestLocationUpdates (LocationManager)
  • getSystemService (Context)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Sublime Text for Python
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now