Codota Logo
SessionImpl.close
Code IndexAdd Codota to your IDE (free)

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

Best Java code snippets using org.hibernate.impl.SessionImpl.close (Showing top 4 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: jboss.jboss-embeddable-ejb3/hibernate-all

public void managedClose() {
  log.trace( "automatically closing session" );
  close();
}
origin: hibernate/hibernate

public void managedClose() {
  log.trace("automatically closing session");
  close();
}
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

while ( childSessions.hasNext() ) {
  final SessionImpl child = ( SessionImpl ) childSessions.next();
  child.close();
org.hibernate.implSessionImplclose

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
  • cleanup
    clear all the internal collections, just to help the garbage collector, does not clear anything that
  • clear
  • 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

  • Reading from database using SQL prepared statement
  • setContentView (Activity)
  • requestLocationUpdates (LocationManager)
  • addToBackStack (FragmentTransaction)
  • Point (java.awt)
    A point representing a location in (x, y) coordinate space, specified in integer precision.
  • PrintWriter (java.io)
    Prints formatted representations of objects to a text-output stream. This class implements all of th
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • JFileChooser (javax.swing)
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