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

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

Best Java code snippets using org.hibernate.cfg.Settings.isScrollableResultSetsEnabled (Showing top 17 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: hibernate/hibernate-orm

/**
 * Advance the cursor to the first required row of the <tt>ResultSet</tt>
 */
protected void advance(final ResultSet rs, final RowSelection selection) throws SQLException {
  final int firstRow = LimitHelper.getFirstRow( selection );
  if ( firstRow != 0 ) {
    if ( getFactory().getSettings().isScrollableResultSetsEnabled() ) {
      // we can go straight to the first required row
      rs.absolute( firstRow );
    }
    else {
      // we need to step through the rows one row at a time (slow)
      for ( int m = 0; m < firstRow; m++ ) {
        rs.next();
      }
    }
  }
}
origin: hibernate/hibernate-orm

protected ScrollMode getScrollMode(boolean scroll, boolean hasFirstRow, boolean useLimitOffSet, QueryParameters queryParameters) {
  final boolean canScroll = getFactory().getSettings().isScrollableResultSetsEnabled();
  if ( canScroll ) {
    if ( scroll ) {
      return queryParameters.getScrollMode();
    }
    if ( hasFirstRow && !useLimitOffSet ) {
      return ScrollMode.SCROLL_INSENSITIVE;
    }
  }
  return null;
}
origin: hibernate/hibernate

private CallableStatement getCallableStatement( final Connection conn, 
    final String sql, 
    boolean scrollable)
throws SQLException {
  if ( scrollable && !factory.getSettings().isScrollableResultSetsEnabled() ) {
    throw new AssertionFailure("scrollable result sets are not enabled");
  }
  log(sql);
  
  log.trace("preparing callable statement");
  if (scrollable) {
    return conn.prepareCall(sql, ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);
  }
  else {
    return conn.prepareCall(sql);
  }
}
origin: jboss.jboss-embeddable-ejb3/hibernate-all

/**
 * Advance the cursor to the first required row of the <tt>ResultSet</tt>
 */
private void advance(final ResultSet rs, final RowSelection selection)
    throws SQLException {
  final int firstRow = getFirstRow( selection );
  if ( firstRow != 0 ) {
    if ( getFactory().getSettings().isScrollableResultSetsEnabled() ) {
      // we can go straight to the first required row
      rs.absolute( firstRow );
    }
    else {
      // we need to step through the rows one row at a time (slow)
      for ( int m = 0; m < firstRow; m++ ) rs.next();
    }
  }
}
origin: hibernate/hibernate

/**
 * Advance the cursor to the first required row of the <tt>ResultSet</tt>
 */
private void advance(final ResultSet rs, final RowSelection selection)
    throws SQLException {
  final int firstRow = getFirstRow( selection );
  if ( firstRow != 0 ) {
    if ( getFactory().getSettings().isScrollableResultSetsEnabled() ) {
      // we can go straight to the first required row
      rs.absolute( firstRow );
    }
    else {
      // we need to step through the rows one row at a time (slow)
      for ( int m = 0; m < firstRow; m++ ) rs.next();
    }
  }
}
origin: org.hibernate/com.springsource.org.hibernate.core

/**
 * Advance the cursor to the first required row of the <tt>ResultSet</tt>
 */
private void advance(final ResultSet rs, final RowSelection selection)
    throws SQLException {
  final int firstRow = getFirstRow( selection );
  if ( firstRow != 0 ) {
    if ( getFactory().getSettings().isScrollableResultSetsEnabled() ) {
      // we can go straight to the first required row
      rs.absolute( firstRow );
    }
    else {
      // we need to step through the rows one row at a time (slow)
      for ( int m = 0; m < firstRow; m++ ) rs.next();
    }
  }
}
origin: org.hibernate/com.springsource.org.hibernate

/**
 * Advance the cursor to the first required row of the <tt>ResultSet</tt>
 */
private void advance(final ResultSet rs, final RowSelection selection)
    throws SQLException {
  final int firstRow = getFirstRow( selection );
  if ( firstRow != 0 ) {
    if ( getFactory().getSettings().isScrollableResultSetsEnabled() ) {
      // we can go straight to the first required row
      rs.absolute( firstRow );
    }
    else {
      // we need to step through the rows one row at a time (slow)
      for ( int m = 0; m < firstRow; m++ ) rs.next();
    }
  }
}
origin: jboss.jboss-embeddable-ejb3/hibernate-all

private CallableStatement getCallableStatement(
    final Connection conn,
    String sql,
    boolean scrollable) throws SQLException {
  if ( scrollable && !factory.getSettings().isScrollableResultSetsEnabled() ) {
    throw new AssertionFailure("scrollable result sets are not enabled");
  }
  sql = getSQL( sql );
  log( sql );
  log.trace("preparing callable statement");
  if ( scrollable ) {
    return conn.prepareCall(
        sql,
        ResultSet.TYPE_SCROLL_INSENSITIVE,
        ResultSet.CONCUR_READ_ONLY
    );
  }
  else {
    return conn.prepareCall( sql );
  }
}
origin: org.hibernate/com.springsource.org.hibernate.core

private ScrollMode getScrollMode(boolean scroll, boolean hasFirstRow, boolean useLimitOffSet, QueryParameters queryParameters) {
  final boolean canScroll = getFactory().getSettings().isScrollableResultSetsEnabled();
  if ( canScroll ) {
    if ( scroll ) {
      return queryParameters.getScrollMode();
    }
    if ( hasFirstRow && !useLimitOffSet ) {
      return ScrollMode.SCROLL_INSENSITIVE;
    }
  }
  return null;
}
/**
origin: org.hibernate/com.springsource.org.hibernate

private ScrollMode getScrollMode(boolean scroll, boolean hasFirstRow, boolean useLimitOffSet, QueryParameters queryParameters) {
  final boolean canScroll = getFactory().getSettings().isScrollableResultSetsEnabled();
  if ( canScroll ) {
    if ( scroll ) {
      return queryParameters.getScrollMode();
    }
    if ( hasFirstRow && !useLimitOffSet ) {
      return ScrollMode.SCROLL_INSENSITIVE;
    }
  }
  return null;
}
/**
origin: jboss.jboss-embeddable-ejb3/hibernate-all

  final ScrollMode scrollMode,
  final boolean callable) throws SQLException {
if ( scrollable && !factory.getSettings().isScrollableResultSetsEnabled() ) {
  throw new AssertionFailure("scrollable result sets are not enabled");
origin: hibernate/hibernate

throws SQLException {
  if ( scrollable && !factory.getSettings().isScrollableResultSetsEnabled() ) {
    throw new AssertionFailure("scrollable result sets are not enabled");
origin: org.hibernate/com.springsource.org.hibernate.core

  final ScrollMode scrollMode) {
if ( scrollMode != null && !scrollMode.equals( ScrollMode.FORWARD_ONLY ) ) {
  if ( ! settings().isScrollableResultSetsEnabled() ) {
    throw new AssertionFailure("scrollable result sets are not enabled");
origin: org.hibernate/com.springsource.org.hibernate

  final ScrollMode scrollMode) {
if ( scrollMode != null && !scrollMode.equals( ScrollMode.FORWARD_ONLY ) ) {
  if ( ! settings().isScrollableResultSetsEnabled() ) {
    throw new AssertionFailure("scrollable result sets are not enabled");
origin: org.hibernate/com.springsource.org.hibernate

boolean callable = queryParameters.isCallable();
final boolean canScroll = getFactory().getSettings().isScrollableResultSetsEnabled();
final boolean useScrollableResultSetToSkip = hasFirstRow &&
    !useLimitOffset && canScroll;
origin: org.hibernate/com.springsource.org.hibernate.core

boolean callable = queryParameters.isCallable();
final boolean canScroll = getFactory().getSettings().isScrollableResultSetsEnabled();
final boolean useScrollableResultSetToSkip = hasFirstRow &&
    !useLimitOffset && canScroll;
origin: hibernate/hibernate

    getFactory().getSettings().isScrollableResultSetsEnabled();
ScrollMode scrollMode = scroll ? queryParameters.getScrollMode() : ScrollMode.SCROLL_INSENSITIVE;
org.hibernate.cfgSettingsisScrollableResultSetsEnabled

Popular methods of Settings

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

Popular in Java

  • Reading from database using SQL prepared statement
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Set (java.util)
    A collection that contains no duplicate elements. More formally, sets contain no pair of elements e1
  • JLabel (javax.swing)
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
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