Package org.hibernate.loader.plan.spi

Examples of org.hibernate.loader.plan.spi.CollectionFetch


  }

  static Fetch buildFetch(FetchOwner fetchOwner, AttributeNodeImplementor attributeNode) {
    if ( attributeNode.getAttribute().isAssociation() ) {
      if ( attributeNode.getAttribute().isCollection() ) {
        return new CollectionFetch(
            (SessionFactoryImplementor) attributeNode.entityManagerFactory().getSessionFactory(),
            LockMode.NONE,
            fetchOwner,
            new FetchStrategy( FetchTiming.IMMEDIATE, FetchStyle.SELECT ),
            attributeNode.getAttributeName()
View Full Code Here


  }

  static Fetch buildFetch(FetchOwner fetchOwner, AttributeNodeImplementor attributeNode) {
    if ( attributeNode.getAttribute().isAssociation() ) {
      if ( attributeNode.getAttribute().isCollection() ) {
        return new CollectionFetch(
            (SessionFactoryImplementor) attributeNode.entityManagerFactory().getSessionFactory(),
            LockMode.NONE,
            fetchOwner,
            new FetchStrategy( FetchTiming.IMMEDIATE, FetchStyle.SELECT ),
            attributeNode.getAttributeName()
View Full Code Here

  public static CollectionFetch buildStandardCollectionFetch(
      FetchOwner fetchOwner,
      AssociationAttributeDefinition attributeDefinition,
      FetchStrategy fetchStrategy,
      LoadPlanBuildingContext loadPlanBuildingContext) {
    return new CollectionFetch(
        loadPlanBuildingContext.getSessionFactory(),
        LockMode.NONE, // todo : for now
        fetchOwner,
        fetchStrategy,
        attributeDefinition.getName()
View Full Code Here

          readerCollector,
          stats
      );
    }
    else if ( CollectionFetch.class.isInstance( fetch ) ) {
      final CollectionFetch collectionFetch = (CollectionFetch) fetch;
      processCollectionFetch(
          selectStatementBuilder,
          factory,
          joinFragment,
          fetchOwner,
          collectionFetch,
          buildingParameters,
          aliasResolutionContext,
          readerCollector,
          stats
      );
      if ( collectionFetch.getIndexGraph() != null ) {
        processJoinFetches(
            selectStatementBuilder,
            factory,
            joinFragment,
            collectionFetch.getIndexGraph(),
            buildingParameters,
            aliasResolutionContext,
            readerCollector,
            stats
        );
      }
      if ( collectionFetch.getElementGraph() != null ) {
        processJoinFetches(
            selectStatementBuilder,
            factory,
            joinFragment,
            collectionFetch.getElementGraph(),
            buildingParameters,
            aliasResolutionContext,
            readerCollector,
            stats
        );
View Full Code Here

  public static CollectionFetch buildStandardCollectionFetch(
      FetchOwner fetchOwner,
      AssociationAttributeDefinition attributeDefinition,
      FetchStrategy fetchStrategy,
      LoadPlanBuildingContext loadPlanBuildingContext) {
    return new CollectionFetch(
        loadPlanBuildingContext.getSessionFactory(),
        LockMode.NONE, // todo : for now
        fetchOwner,
        fetchStrategy,
        attributeDefinition
View Full Code Here

  public static CollectionFetch buildStandardCollectionFetch(
      FetchOwner fetchOwner,
      AssociationAttributeDefinition attributeDefinition,
      FetchStrategy fetchStrategy,
      LoadPlanBuildingContext loadPlanBuildingContext) {
    return new CollectionFetch(
        loadPlanBuildingContext.getSessionFactory(),
        LockMode.NONE, // todo : for now
        fetchOwner,
        fetchStrategy,
        attributeDefinition.getName()
View Full Code Here

  public static CollectionFetch buildStandardCollectionFetch(
      FetchOwner fetchOwner,
      AssociationAttributeDefinition attributeDefinition,
      FetchStrategy fetchStrategy,
      LoadPlanBuildingContext loadPlanBuildingContext) {
    return new CollectionFetch(
        loadPlanBuildingContext.getSessionFactory(),
        LockMode.NONE, // todo : for now
        fetchOwner,
        fetchStrategy,
        attributeDefinition.getName()
View Full Code Here

TOP

Related Classes of org.hibernate.loader.plan.spi.CollectionFetch

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.