Codota Logo
SessionImpl.cleanup
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Connection c =
  • Codota IconDataSource dataSource;dataSource.getConnection()
  • Codota IconString url;DriverManager.getConnection(url)
  • Codota IconIdentityDatabaseUtil.getDBConnection()
  • Smart code suggestions by Codota
}
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
  • runOnUiThread (Activity)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • orElseThrow (Optional)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now