Examples of EntityFetch


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

      );
      targetEntityReferenceInitializer.hydrateEntityState( resultSet, context );
    }
    for ( Fetch fetch : fetchSource.getFetches() ) {
      if ( EntityFetch.class.isInstance( fetch ) ) {
        final EntityFetch entityFetch = (EntityFetch) fetch;
        final EntityReferenceInitializer  entityReferenceInitializer = initializerByEntityReference.get( entityFetch );
        if ( entityReferenceInitializer != null ) {
          resolveEntityKey(
              resultSet,
              context,
View Full Code Here

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

  private void writeFetch(Fetch fetch, int depth, PrintWriter printWriter) {
    printWriter.print( TreePrinterHelper.INSTANCE.generateNodePrefix( depth ) );

    if ( EntityFetch.class.isInstance( fetch ) ) {
      final EntityFetch entityFetch = (EntityFetch) fetch;
      printWriter.println( extractDetails( entityFetch ) );
      writeEntityReferenceFetches( entityFetch, depth+1, printWriter );
    }
    else if ( CompositeFetch.class.isInstance( fetch ) ) {
      final CompositeFetch compositeFetch = (CompositeFetch) fetch;
View Full Code Here

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

        attributeDefinition,
        fetchedPersister,
        loadPlanBuildingContext.getQuerySpaces().generateImplicitUid(),
        attributeDefinition.isNullable()
    );
    final EntityFetch fetch = new EntityFetchImpl( this, attributeDefinition, fetchStrategy, join );
    addFetch( fetch );
    return fetch;
  }
View Full Code Here

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

    );
  }

  private void handleMissingIdentifier(ResultSetProcessingContext context) {
    if ( EntityFetch.class.isInstance( entityReference ) ) {
      final EntityFetch fetch = (EntityFetch) entityReference;
      final EntityType fetchedType = fetch.getFetchedType();
      if ( ! fetchedType.isOneToOne() ) {
        return;
      }

      final EntityReferenceProcessingState fetchOwnerState = context.getOwnerProcessingState( fetch );
View Full Code Here

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

    if ( nature == AssociationAttributeDefinition.AssociationNature.ANY ) {
      return false;
    }

    if ( nature == AssociationAttributeDefinition.AssociationNature.ENTITY ) {
      EntityFetch fetch = currentSource.buildEntityFetch(
          attributeDefinition,
          fetchStrategy,
          this
      );
      pushToStack( (ExpandingFetchSource) fetch );
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.