Examples of CollectionFetch


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

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

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

  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

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

          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

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

  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

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

  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

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

  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

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

          readerCollector,
          fetchStats
      );
    }
    else if ( CollectionFetch.class.isInstance( fetch ) ) {
      final CollectionFetch collectionFetch = (CollectionFetch) fetch;
      processCollectionFetch(
          selectStatementBuilder,
          fetchSource,
          collectionFetch,
          readerCollector,
View Full Code Here

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

      final CompositeFetch compositeFetch = (CompositeFetch) fetch;
      printWriter.println( extractDetails( compositeFetch ) );
      writeCompositeFetchFetches( compositeFetch, depth+1, printWriter );
    }
    else if ( CollectionFetch.class.isInstance( fetch ) ) {
      final CollectionFetch collectionFetch = (CollectionFetch) fetch;
      printWriter.println( extractDetails( collectionFetch ) );
      writeCollectionReferenceFetches( collectionFetch, depth+1, printWriter );
    }
  }
View Full Code Here

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

    final Join join = querySpace.addCollectionJoin(
        attributeDefinition,
        fetchedPersister,
        loadPlanBuildingContext.getQuerySpaces().generateImplicitUid()
    );
    final CollectionFetch fetch = new CollectionFetchImpl(
        this,
        attributeDefinition,
        fetchStrategy,
        join,
        loadPlanBuildingContext
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.