Package org.hibernate.loader.plan.spi

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


   * @param space The query space
   * @return a String containing details about the {@link QuerySpace}
   */
  public String extractDetails(QuerySpace space) {
    if ( EntityQuerySpace.class.isInstance( space ) ) {
      final EntityQuerySpace entityQuerySpace = (EntityQuerySpace) space;
      return String.format(
          "%s(uid=%s, entity=%s)",
          entityQuerySpace.getClass().getSimpleName(),
          entityQuerySpace.getUid(),
          entityQuerySpace.getEntityPersister().getEntityName()
      );
    }
    else if ( CompositeQuerySpace.class.isInstance( space ) ) {
      final CompositeQuerySpace compositeQuerySpace = (CompositeQuerySpace) space;
      return String.format(
View Full Code Here


    aliasResolutionContext.registerCompositeQuerySpaceUidResolution( rightHandSideUid, leftHandSideTableAlias );
  }

  private void renderEntityJoin(Join join, JoinFragment joinFragment) {
    final EntityQuerySpace rightHandSide = (EntityQuerySpace) join.getRightHandSide();

    // see if there is already aliases registered for this entity query space (collection joins)
    EntityReferenceAliases aliases = aliasResolutionContext.resolveEntityReferenceAliases( rightHandSide.getUid() );
    if ( aliases == null ) {
      aliasResolutionContext.generateEntityReferenceAliases(
          rightHandSide.getUid(),
          rightHandSide.getEntityPersister()
      );
    }

    final Joinable joinable = (Joinable) rightHandSide.getEntityPersister();
    addJoins(
        join,
        joinFragment,
        joinable
    );
View Full Code Here

    aliasResolutionContext.registerCompositeQuerySpaceUidResolution( rightHandSideUid, leftHandSideTableAlias );
  }

  private void renderEntityJoin(Join join, JoinFragment joinFragment) {
    final EntityQuerySpace rightHandSide = (EntityQuerySpace) join.getRightHandSide();

    // see if there is already aliases registered for this entity query space (collection joins)
    EntityReferenceAliases aliases = aliasResolutionContext.resolveEntityReferenceAliases( rightHandSide.getUid() );
    if ( aliases == null ) {
      aliasResolutionContext.generateEntityReferenceAliases(
          rightHandSide.getUid(),
          rightHandSide.getEntityPersister()
      );
    }

    final Joinable joinable = (Joinable) rightHandSide.getEntityPersister();
    addJoins(
        join,
        joinFragment,
        joinable
    );
View Full Code Here

    }
  }

  public String extractDetails(QuerySpace space) {
    if ( EntityQuerySpace.class.isInstance( space ) ) {
      final EntityQuerySpace entityQuerySpace = (EntityQuerySpace) space;
      return String.format(
          "%s(uid=%s, entity=%s)",
          entityQuerySpace.getClass().getSimpleName(),
          entityQuerySpace.getUid(),
          entityQuerySpace.getEntityPersister().getEntityName()
      );
    }
    else if ( CompositeQuerySpace.class.isInstance( space ) ) {
      final CompositeQuerySpace compositeQuerySpace = (CompositeQuerySpace) space;
      return String.format(
View Full Code Here

    aliasResolutionContext.registerCompositeQuerySpaceUidResolution( rightHandSideUid, leftHandSideTableAlias );
  }

  private void renderEntityJoin(Join join, JoinFragment joinFragment) {
    final EntityQuerySpace rightHandSide = (EntityQuerySpace) join.getRightHandSide();

    // see if there is already aliases registered for this entity query space (collection joins)
    EntityReferenceAliases aliases = aliasResolutionContext.resolveEntityReferenceAliases( rightHandSide.getUid() );
    if ( aliases == null ) {
      aliasResolutionContext.generateEntityReferenceAliases(
          rightHandSide.getUid(),
          rightHandSide.getEntityPersister()
      );
    }

    final Joinable joinable = (Joinable) rightHandSide.getEntityPersister();
    addJoins(
        join,
        joinFragment,
        joinable
    );
View Full Code Here

    }
  }

  public String extractDetails(QuerySpace space) {
    if ( EntityQuerySpace.class.isInstance( space ) ) {
      final EntityQuerySpace entityQuerySpace = (EntityQuerySpace) space;
      return String.format(
          "%s(uid=%s, entity=%s)",
          entityQuerySpace.getClass().getSimpleName(),
          entityQuerySpace.getUid(),
          entityQuerySpace.getEntityPersister().getEntityName()
      );
    }
    else if ( CompositeQuerySpace.class.isInstance( space ) ) {
      final CompositeQuerySpace compositeQuerySpace = (CompositeQuerySpace) space;
      return String.format(
View Full Code Here

TOP

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

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.