Package org.hibernate.loader

Examples of org.hibernate.loader.PropertyPath


      throw new WalkingException(
          "Fetch owner stack was not empty on start; " +
              "be sure to not use LoadPlanBuilderStrategy instances concurrently"
      );
    }
    propertyPathStack.push( new PropertyPath() );
  }
View Full Code Here


      return path == null ? "<no-path>" : path.getFullPath();
    }

    public void pop() {
      pathStack.removeFirst();
      PropertyPath newHead = pathStack.peekFirst();
      MDC.put( MDC_KEY, extractFullPath( newHead ) );
    }
View Full Code Here

      visitAttributeDefinition( attributeDefinition );
    }
  }

  private void visitAttributeDefinition(AttributeDefinition attributeDefinition) {
    final PropertyPath subPath = currentPropertyPath.append( attributeDefinition.getName() );
    log.debug( "Visiting attribute path : " + subPath.getFullPath() );


    if ( attributeDefinition.getType().isAssociationType() ) {
      final AssociationAttributeDefinition associationAttributeDefinition =
          (AssociationAttributeDefinition) attributeDefinition;
      final AssociationKey associationKey = associationAttributeDefinition.getAssociationKey();
      if ( isDuplicateAssociationKey( associationKey ) ) {
        log.debug( "Property path deemed to be circular : " + subPath.getFullPath() );
        strategy.foundCircularAssociation( associationAttributeDefinition );
        // EARLY EXIT!!!
        return;
      }
    }


    boolean continueWalk = strategy.startingAttribute( attributeDefinition );
    if ( continueWalk ) {
      final PropertyPath old = currentPropertyPath;
      currentPropertyPath = subPath;
      try {
        final Type attributeType = attributeDefinition.getType();
        if ( attributeType.isAssociationType() ) {
          visitAssociation( (AssociationAttributeDefinition) attributeDefinition );
View Full Code Here

    super(
        querySpaces.makeRootEntityQuerySpace(
            querySpaces.generateImplicitUid(),
            entityDefinition.getEntityPersister()
        ),
        new PropertyPath( entityDefinition.getEntityPersister().getEntityName() )
    );
  }
View Full Code Here

    super(
        querySpaces.makeRootCollectionQuerySpace(
            querySpaces.generateImplicitUid(),
            collectionDefinition.getCollectionPersister()
        ),
        new PropertyPath( "[" + collectionDefinition.getCollectionPersister().getRole() + "]" ),
        true
    );
  }
View Full Code Here

    public void pop() {
      pathStack.removeFirst();
    }

    public String toString() {
      final PropertyPath path = pathStack.peekFirst();
      return path == null ? "<no-path>" : path.getFullPath();
    }
View Full Code Here

      throw new WalkingException(
          "Fetch owner stack was not empty on start; " +
              "be sure to not use LoadPlanBuilderStrategy instances concurrently"
      );
    }
    propertyPathStack.push( new PropertyPath() );
  }
View Full Code Here

      return path == null ? "<no-path>" : path.getFullPath();
    }

    public void pop() {
      pathStack.removeFirst();
      PropertyPath newHead = pathStack.peekFirst();
      MDC.put( MDC_KEY, extractFullPath( newHead ) );
    }
View Full Code Here

      visitAttributeDefinition( attributeDefinition );
    }
  }

  private void visitAttributeDefinition(AttributeDefinition attributeDefinition) {
    final PropertyPath subPath = currentPropertyPath.append( attributeDefinition.getName() );
    log.debug( "Visiting attribute path : " + subPath.getFullPath() );


    if ( attributeDefinition.getType().isAssociationType() ) {
      final AssociationAttributeDefinition associationAttributeDefinition =
          (AssociationAttributeDefinition) attributeDefinition;
      final AssociationKey associationKey = associationAttributeDefinition.getAssociationKey();
      if ( isDuplicateAssociationKey( associationKey ) ) {
        log.debug( "Property path deemed to be circular : " + subPath.getFullPath() );
        strategy.foundCircularAssociation( associationAttributeDefinition );
        // EARLY EXIT!!!
        return;
      }
    }


    boolean continueWalk = strategy.startingAttribute( attributeDefinition );
    if ( continueWalk ) {
      final PropertyPath old = currentPropertyPath;
      currentPropertyPath = subPath;
      try {
        final Type attributeType = attributeDefinition.getType();
        if ( attributeType.isAssociationType() ) {
          visitAssociation( (AssociationAttributeDefinition) attributeDefinition );
View Full Code Here

      visitAttributeDefinition( attributeDefinition );
    }
  }

  private void visitAttributeDefinition(AttributeDefinition attributeDefinition) {
    final PropertyPath subPath = currentPropertyPath.append( attributeDefinition.getName() );
    log.debug( "Visiting attribute path : " + subPath.getFullPath() );


    if ( attributeDefinition.getType().isAssociationType() ) {
      final AssociationAttributeDefinition associationAttributeDefinition =
          (AssociationAttributeDefinition) attributeDefinition;
      final AssociationKey associationKey = associationAttributeDefinition.getAssociationKey();
      if ( isDuplicateAssociationKey( associationKey ) ) {
        log.debug( "Property path deemed to be circular : " + subPath.getFullPath() );
        strategy.foundCircularAssociation( associationAttributeDefinition );
        // EARLY EXIT!!!
        return;
      }
    }


    boolean continueWalk = strategy.startingAttribute( attributeDefinition );
    if ( continueWalk ) {
      final PropertyPath old = currentPropertyPath;
      currentPropertyPath = subPath;
      try {
        final Type attributeType = attributeDefinition.getType();
        if ( attributeType.isAssociationType() ) {
          visitAssociation( (AssociationAttributeDefinition) attributeDefinition );
View Full Code Here

TOP

Related Classes of org.hibernate.loader.PropertyPath

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.