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

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

Best Java code snippets using org.hibernate.cfg.Settings.isWrapResultSetsEnabled (Showing top 4 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

private synchronized ResultSet wrapResultSetIfEnabled(final ResultSet rs, final SessionImplementor session) {
  // synchronized to avoid multi-thread access issues; defined as method synch to avoid
  // potential deadlock issues due to nature of code.
  if ( session.getFactory().getSettings().isWrapResultSetsEnabled() ) {
    try {
      log.debug("Wrapping result set [" + rs + "]");
      return new ResultSetWrapper( rs, retreiveColumnNameToIndexCache( rs ) );
    }
    catch(SQLException e) {
      log.info("Error wrapping result set", e);
      return rs;
    }
  }
  else {
    return rs;
  }
}
origin: hibernate/hibernate

private synchronized ResultSet wrapResultSetIfEnabled(final ResultSet rs, final SessionImplementor session) {
  // synchronized to avoid multi-thread access issues; defined as method synch to avoid
  // potential deadlock issues due to nature of code.
  if ( session.getFactory().getSettings().isWrapResultSetsEnabled() ) {
    try {
      log.debug("Wrapping result set [" + rs + "]");
      return new ResultSetWrapper( rs, retreiveColumnNameToIndexCache( rs ) );
    }
    catch(SQLException e) {
      log.info("Error wrapping result set", e);
      return rs;
    }
  }
  else {
    return rs;
  }
}
origin: org.hibernate/com.springsource.org.hibernate

private synchronized ResultSet wrapResultSetIfEnabled(final ResultSet rs, final SessionImplementor session) {
  // synchronized to avoid multi-thread access issues; defined as method synch to avoid
  // potential deadlock issues due to nature of code.
  if ( session.getFactory().getSettings().isWrapResultSetsEnabled() ) {
    try {
      LOG.debugf( "Wrapping result set [%s]", rs );
      return session.getFactory()
          .getJdbcServices()
          .getResultSetWrapper().wrap( rs, retreiveColumnNameToIndexCache( rs ) );
    }
    catch(SQLException e) {
      LOG.unableToWrapResultSet( e );
      return rs;
    }
  }
  else {
    return rs;
  }
}
origin: org.hibernate/com.springsource.org.hibernate.core

private synchronized ResultSet wrapResultSetIfEnabled(final ResultSet rs, final SessionImplementor session) {
  // synchronized to avoid multi-thread access issues; defined as method synch to avoid
  // potential deadlock issues due to nature of code.
  if ( session.getFactory().getSettings().isWrapResultSetsEnabled() ) {
    try {
      LOG.debugf( "Wrapping result set [%s]", rs );
      return session.getFactory()
          .getJdbcServices()
          .getResultSetWrapper().wrap( rs, retreiveColumnNameToIndexCache( rs ) );
    }
    catch(SQLException e) {
      LOG.unableToWrapResultSet( e );
      return rs;
    }
  }
  else {
    return rs;
  }
}
org.hibernate.cfgSettingsisWrapResultSetsEnabled

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

  • Reading from database using SQL prepared statement
  • addToBackStack (FragmentTransaction)
  • runOnUiThread (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • BigInteger (java.math)
    Immutable arbitrary-precision integers. All operations behave as if BigIntegers were represented in
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • JPanel (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