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

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

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

private boolean isOuterJoinFetchingDisabled() {
  return new Integer(0).equals( sessionFactory().getSettings().getMaximumFetchDepth() );
}
origin: hibernate/hibernate-orm

protected FetchStrategy adjustJoinFetchIfNeeded(
    AssociationAttributeDefinition attributeDefinition, FetchStrategy fetchStrategy) {
  if ( lockMode.greaterThan( LockMode.READ ) ) {
    return new FetchStrategy( fetchStrategy.getTiming(), FetchStyle.SELECT );
  }
  final Integer maxFetchDepth = sessionFactory().getSettings().getMaximumFetchDepth();
  if ( maxFetchDepth != null && currentDepth() > maxFetchDepth ) {
    return new FetchStrategy( fetchStrategy.getTiming(), FetchStyle.SELECT );
  }
  if ( attributeDefinition.getType().isCollectionType() && isTooManyCollections() ) {
    // todo : have this revert to batch or subselect fetching once "sql gen redesign" is in place
    return new FetchStrategy( fetchStrategy.getTiming(), FetchStyle.SELECT );
  }
  return fetchStrategy;
}
origin: jboss.jboss-embeddable-ejb3/hibernate-all

protected boolean isTooDeep(int currentDepth) {
  Integer maxFetchDepth = getFactory().getSettings().getMaximumFetchDepth();
  return maxFetchDepth!=null && currentDepth >= maxFetchDepth.intValue();
}
 
origin: hibernate/hibernate

protected boolean isTooDeep(int currentDepth) {
  Integer maxFetchDepth = getFactory().getSettings().getMaximumFetchDepth();
  return maxFetchDepth!=null && currentDepth >= maxFetchDepth.intValue();
}

origin: org.hibernate/com.springsource.org.hibernate.core

protected boolean isTooDeep(int currentDepth) {
  Integer maxFetchDepth = getFactory().getSettings().getMaximumFetchDepth();
  return maxFetchDepth!=null && currentDepth >= maxFetchDepth.intValue();
}

origin: org.hibernate/com.springsource.org.hibernate

protected boolean isTooDeep(int currentDepth) {
  Integer maxFetchDepth = getFactory().getSettings().getMaximumFetchDepth();
  return maxFetchDepth!=null && currentDepth >= maxFetchDepth.intValue();
}

origin: jboss.jboss-embeddable-ejb3/hibernate-all

/**
 * Should we join this association?
 */
protected boolean isJoinable(
  final int joinType,
  final Set visitedAssociationKeys, 
  final String lhsTable,
  final String[] lhsColumnNames,
  final AssociationType type,
  final int depth
) {
  if (joinType<0) return false;
  
  if (joinType==JoinFragment.INNER_JOIN) return true;
  
  Integer maxFetchDepth = getFactory().getSettings().getMaximumFetchDepth();
  final boolean tooDeep = maxFetchDepth!=null && 
    depth >= maxFetchDepth.intValue();
  
  return !tooDeep && !isDuplicateAssociation(lhsTable, lhsColumnNames, type);
}
 
origin: org.hibernate/com.springsource.org.hibernate.core

/**
 * Should we join this association?
 */
protected boolean isJoinable(
    final JoinType joinType,
    final Set visitedAssociationKeys,
    final String lhsTable,
    final String[] lhsColumnNames,
    final AssociationType type,
    final int depth) {
  if ( joinType == JoinType.NONE ) {
    return false;
  }
  
  if ( joinType == JoinType.INNER_JOIN ) {
    return true;
  }
  Integer maxFetchDepth = getFactory().getSettings().getMaximumFetchDepth();
  final boolean tooDeep = maxFetchDepth!=null && depth >= maxFetchDepth.intValue();
  
  return !tooDeep && !isDuplicateAssociation(lhsTable, lhsColumnNames, type);
}

origin: org.hibernate/com.springsource.org.hibernate

/**
 * Should we join this association?
 */
protected boolean isJoinable(
    final JoinType joinType,
    final Set visitedAssociationKeys,
    final String lhsTable,
    final String[] lhsColumnNames,
    final AssociationType type,
    final int depth) {
  if ( joinType == JoinType.NONE ) {
    return false;
  }
  
  if ( joinType == JoinType.INNER_JOIN ) {
    return true;
  }
  Integer maxFetchDepth = getFactory().getSettings().getMaximumFetchDepth();
  final boolean tooDeep = maxFetchDepth!=null && depth >= maxFetchDepth.intValue();
  
  return !tooDeep && !isDuplicateAssociation(lhsTable, lhsColumnNames, type);
}

origin: hibernate/hibernate

/**
 * Should we join this association?
 */
protected boolean isJoinable(
  final int joinType,
  final Set visitedAssociationKeys, 
  final String lhsTable,
  final String[] lhsColumnNames,
  final AssociationType type,
  final int depth
) {
  if (joinType<0) return false;
  
  if (joinType==JoinFragment.INNER_JOIN) return true;
  
  Integer maxFetchDepth = getFactory().getSettings().getMaximumFetchDepth();
  final boolean tooDeep = maxFetchDepth!=null && 
    depth >= maxFetchDepth.intValue();
  
  return !tooDeep && !isDuplicateAssociation(
    visitedAssociationKeys, 
    lhsTable, 
    lhsColumnNames, 
    type
  );    
}

org.hibernate.cfgSettingsgetMaximumFetchDepth

Popular methods of Settings

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

Popular in Java

  • Running tasks concurrently on multiple threads
  • onCreateOptionsMenu (Activity)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • setContentView (Activity)
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Iterator (java.util)
    An iterator over a collection. Iterator takes the place of Enumeration in the Java Collections Frame
  • PriorityQueue (java.util)
    An unbounded priority Queue based on a priority heap. The elements of the priority queue are ordered
  • JCheckBox (javax.swing)
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.This exception may include information for locating the er
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