Examples of resolve()


Examples of org.hibernate.hql.ast.tree.IndexNode.resolve()

    literalProcessor.processNumeric( literal );
  }

  protected void processIndex(AST indexOp) throws SemanticException {
    IndexNode indexNode = ( IndexNode ) indexOp;
    indexNode.resolve( true, true );
  }

  protected void processFunction(AST functionCall, boolean inSelect) throws SemanticException {
    MethodNode methodNode = ( MethodNode ) functionCall;
    methodNode.resolve( inSelect );
View Full Code Here

Examples of org.hibernate.hql.ast.tree.MethodNode.resolve()

    indexNode.resolve( true, true );
  }

  protected void processFunction(AST functionCall, boolean inSelect) throws SemanticException {
    MethodNode methodNode = ( MethodNode ) functionCall;
    methodNode.resolve( inSelect );
  }

  protected void processConstructor(AST constructor) throws SemanticException {
    ConstructorNode constructorNode = ( ConstructorNode ) constructor;
    constructorNode.prepare();
View Full Code Here

Examples of org.hibernate.hql.ast.tree.ResolvableNode.resolve()

      ResolvableNode r = ( ResolvableNode ) node;
      if ( isInFunctionCall() ) {
        r.resolveInFunctionCall( false, true );
      }
      else {
        r.resolve( false, true )// Generate implicit joins, only if necessary.
      }
    }
  }

  protected void resolveSelectExpression(AST node) throws SemanticException {
View Full Code Here

Examples of org.hibernate.hql.internal.ast.tree.AggregateNode.resolve()

  }

  @Override
  protected void processAggregation(AST node, boolean inSelect) throws SemanticException {
    AggregateNode aggregateNode = (AggregateNode) node;
    aggregateNode.resolve();
  }

  @Override
  protected void processConstructor(AST constructor) throws SemanticException {
    ConstructorNode constructorNode = (ConstructorNode) constructor;
View Full Code Here

Examples of org.hibernate.hql.internal.ast.tree.CastFunctionNode.resolve()

  }

  @Override
  protected void processCastFunction(AST castFunctionCall, boolean inSelect) throws SemanticException {
    CastFunctionNode castFunctionNode = (CastFunctionNode) castFunctionCall;
    castFunctionNode.resolve( inSelect );
  }

  @Override
  protected void processAggregation(AST node, boolean inSelect) throws SemanticException {
    AggregateNode aggregateNode = (AggregateNode) node;
View Full Code Here

Examples of org.hibernate.hql.internal.ast.tree.CollectionFunction.resolve()

        // Re-arrange the tree so that the collection function is the root and the lhs is the path.
        f.setFirstChild( lhs );
        lhs.setNextSibling( null );
        dotNode.setFirstChild( f );
        resolve( lhs );            // Don't forget to resolve the argument!
        f.resolve( inSelect );    // Resolve the collection function now.
        return f;
      default:
        // Resolve everything up to this dot, but don't resolve the placeholders yet.
        dotNode.resolveFirstChild();
        return dotNode;
View Full Code Here

Examples of org.hibernate.hql.internal.ast.tree.DotNode.resolve()

    JoinType hibernateJoinType = JoinProcessor.toHibernateJoinType( joinType );
    dot.setJoinType( hibernateJoinType );    // Tell the dot node about the join type.
    dot.setFetch( fetch );
    // Generate an explicit join for the root dot node.   The implied joins will be collected and passed up
    // to the root dot node.
    dot.resolve( true, false, alias == null ? null : alias.getText() );

    final FromElement fromElement;
    if ( dot.getDataType() != null && dot.getDataType().isComponentType() ) {
      if ( dot.getDataType().isAnyType() ) {
        throw new SemanticException( "An AnyType attribute cannot be join fetched" );
View Full Code Here

Examples of org.hibernate.hql.internal.ast.tree.FromReferenceNode.resolve()

      }
      case ALIAS_REF: {
        // Notify the FROM element that it is being referenced by the select.
        FromReferenceNode aliasRefNode = (FromReferenceNode) node;
        //aliasRefNode.resolve( false, false, aliasRefNode.getText() ); //TODO: is it kosher to do it here?
        aliasRefNode.resolve( false, false ); //TODO: is it kosher to do it here?
        FromElement fromElement = aliasRefNode.getFromElement();
        if ( fromElement != null ) {
          fromElement.setIncludeSubclasses( true );
        }
        break;
View Full Code Here

Examples of org.hibernate.hql.internal.ast.tree.IdentNode.resolve()

    boolean isIdent = ( constant.getType() == IDENT || constant.getType() == WEIRD_IDENT );
    if ( resolveIdent && isIdent && isAlias( constant.getText() ) ) {
      // IDENT is a class alias in the FROM.
      IdentNode ident = (IdentNode) constant;
      // Resolve to an identity column.
      ident.resolve( false, true );
    }
    else {
      // IDENT might be the name of a class.
      Queryable queryable = walker.getSessionFactoryHelper().findQueryableUsingImports( constant.getText() );
      if ( isIdent && queryable != null ) {
View Full Code Here

Examples of org.hibernate.hql.internal.ast.tree.IndexNode.resolve()

  }

  @Override
  protected void processIndex(AST indexOp) throws SemanticException {
    IndexNode indexNode = (IndexNode) indexOp;
    indexNode.resolve( true, true );
  }

  @Override
  protected void processFunction(AST functionCall, boolean inSelect) throws SemanticException {
    MethodNode methodNode = (MethodNode) functionCall;
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.