Codota Logo
Settings.isAutoCloseSessionEnabled
Code IndexAdd Codota to your IDE (free)

How to use
isAutoCloseSessionEnabled
method
in
org.hibernate.cfg.Settings

Best Java code snippets using org.hibernate.cfg.Settings.isAutoCloseSessionEnabled (Showing top 7 results out of 315)

  • Common ways to obtain Settings
private void myMethod () {
Settings s =
  • Codota Iconnew Settings()
  • Codota IconSessionFactoryImplementor sessionFactoryImplementor;sessionFactoryImplementor.getSettings()
  • Codota IconUnionSubclassEntityPersister unionSubclassEntityPersister;unionSubclassEntityPersister.getFactory().getSettings()
  • Smart code suggestions by Codota
}
origin: jboss.jboss-embeddable-ejb3/hibernate-all

public boolean isAutoCloseSessionEnabled() {
  return factory.getSettings().isAutoCloseSessionEnabled();
}
origin: org.hibernate/com.springsource.org.hibernate

@Override
public boolean isAutoCloseSessionEnabled() {
  return factory.getSettings().isAutoCloseSessionEnabled();
}
origin: org.hibernate/com.springsource.org.hibernate.core

@Override
public boolean isAutoCloseSessionEnabled() {
  return factory.getSettings().isAutoCloseSessionEnabled();
}
origin: org.hibernate/com.springsource.org.hibernate

SessionBuilderImpl(SessionFactoryImpl sessionFactory) {
  this.sessionFactory = sessionFactory;
  final Settings settings = sessionFactory.settings;
  // set up default builder values...
  this.interceptor = sessionFactory.getInterceptor();
  this.connectionReleaseMode = settings.getConnectionReleaseMode();
  this.autoClose = settings.isAutoCloseSessionEnabled();
  this.flushBeforeCompletion = settings.isFlushBeforeCompletionEnabled();
}
origin: org.hibernate/com.springsource.org.hibernate.core

SessionBuilderImpl(SessionFactoryImpl sessionFactory) {
  this.sessionFactory = sessionFactory;
  final Settings settings = sessionFactory.settings;
  // set up default builder values...
  this.interceptor = sessionFactory.getInterceptor();
  this.connectionReleaseMode = settings.getConnectionReleaseMode();
  this.autoClose = settings.isAutoCloseSessionEnabled();
  this.flushBeforeCompletion = settings.isFlushBeforeCompletionEnabled();
}
origin: jboss.jboss-embeddable-ejb3/hibernate-all

private SessionImpl openSession(
  Connection connection,
  boolean autoClose,
  long timestamp,
  Interceptor sessionLocalInterceptor
) {
  return new SessionImpl(
      connection,
      this,
      autoClose,
      timestamp,
      sessionLocalInterceptor == null ? interceptor : sessionLocalInterceptor,
      settings.getDefaultEntityMode(),
      settings.isFlushBeforeCompletionEnabled(),
      settings.isAutoCloseSessionEnabled(),
      settings.getConnectionReleaseMode()
    );
}
origin: hibernate/hibernate

private SessionImpl openSession(
  Connection connection, 
  boolean autoClose, 
  long timestamp, 
  Interceptor sessionLocalInterceptor
) {
  return  new SessionImpl(
      connection,
      this,
      autoClose,
      timestamp,
      sessionLocalInterceptor,
      sessionEventListenerConfig,
      settings.getDefaultEntityMode(),
      settings.isFlushBeforeCompletionEnabled(),
      settings.isAutoCloseSessionEnabled(),
      settings.getConnectionReleaseMode()
  );
}
org.hibernate.cfgSettingsisAutoCloseSessionEnabled

Popular methods of Settings

  • isMinimalPutsEnabled
  • <init>
  • getConnectionReleaseMode
  • getDefaultSchemaName
  • getDefaultCatalogName
  • getJdbcFetchSize
  • getMaximumFetchDepth
  • getSessionFactoryName
  • isIdentifierRollbackEnabled
  • isQueryCacheEnabled
  • isSecondLevelCacheEnabled
  • isStatisticsEnabled
  • isSecondLevelCacheEnabled,
  • isStatisticsEnabled,
  • getCacheRegionPrefix,
  • getConnectionProvider,
  • isCommentsEnabled,
  • isScrollableResultSetsEnabled,
  • isStructuredCacheEntriesEnabled,
  • getDefaultBatchFetchSize,
  • getMultiTenancyStrategy,
  • getQueryCacheFactory

Popular in Java

  • Running tasks concurrently on multiple threads
  • findViewById (Activity)
  • getSharedPreferences (Context)
  • onCreateOptionsMenu (Activity)
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Runner (org.openjdk.jmh.runner)
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