congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
SessionImpl.cleanup
Code IndexAdd Tabnine to your IDE (free)

How to use
cleanup
method
in
org.hibernate.impl.SessionImpl

Best Java code snippets using org.hibernate.impl.SessionImpl.cleanup (Showing top 2 results out of 315)

origin: hibernate/hibernate

public Connection close() throws HibernateException {
  log.trace( "closing session" );
  if ( factory.getStatistics().isStatisticsEnabled() ) 
    factory.getStatisticsImplementor().closeSession();
  try {
    try {
      if ( childSessionsByEntityMode != null ) {
        Iterator childSessions = childSessionsByEntityMode.values().iterator();
        while ( childSessions.hasNext() ) {
          final SessionImpl child = ( SessionImpl ) childSessions.next();
          child.close();
        }
      }
    }
    catch( Throwable t ) {
      // just ignore
    }
    if ( isRootSession ) {
      return jdbcContext.getConnectionManager().close();
    }
    else {
      return null;
    }
  }
  finally {
    closed = true;
    cleanup();
  }
}
origin: jboss.jboss-embeddable-ejb3/hibernate-all

cleanup();
org.hibernate.implSessionImplcleanup

Javadoc

clear all the internal collections, just to help the garbage collector, does not clear anything that is needed during the afterTransactionCompletion() phase

Popular methods of SessionImpl

  • getFactory
  • <init>
    Constructor used in building "child sessions".
  • afterOperation
    Check if there is a Hibernate or JTA transaction in progress and, if there is not, flush if necessar
  • autoFlushIfRequired
    detect in-memory changes, determine if the changes are to tables named in the query and, if so, comp
  • clear
  • close
  • delete
  • find
    Retrieve a list of persistent objects using a hibernate query
  • flush
  • get
  • getConnectionReleaseMode
  • getEnabledFilters
  • getConnectionReleaseMode,
  • getEnabledFilters,
  • getFlushMode,
  • getOuterJoinLoadable,
  • getProxyIdentifier,
  • guessEntityName,
  • isAutoCloseSessionEnabled,
  • iterate,
  • list

Popular in Java

  • Reactive rest calls using spring rest template
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setRequestProperty (URLConnection)
  • getApplicationContext (Context)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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