Package org.hibernate.hql.ast.tree

Examples of org.hibernate.hql.ast.tree.MethodNode


    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


        out( " " );
    }
  }

  protected void beginFunctionTemplate(AST m, AST i) {
    MethodNode methodNode = ( MethodNode ) m;
    SQLFunction template = methodNode.getSQLFunction();
    if ( template == null ) {
      // if template is null we just write the function out as it appears in the hql statement
      super.beginFunctionTemplate( m, i );
    }
    else {
View Full Code Here

      writer = new FunctionArguments();
    }
  }

  protected void endFunctionTemplate(AST m) {
    MethodNode methodNode = ( MethodNode ) m;
    SQLFunction template = methodNode.getSQLFunction();
    if ( template == null ) {
      super.endFunctionTemplate( m );
    }
    else {
      // this function has a template -> restore output, apply the template and write the result out
View Full Code Here

        ( ( ParameterNode ) versionValueNode ).setHqlParameterSpecification( paramSpec );
        parameters.add( 0, paramSpec );

        if ( sessionFactoryHelper.getFactory().getDialect().requiresCastingOfParametersInSelectClause() ) {
          // we need to wrap the param in a cast()
          MethodNode versionMethodNode = ( MethodNode ) getASTFactory().create( HqlSqlTokenTypes.METHOD_CALL, "(" );
          AST methodIdentNode = getASTFactory().create( HqlSqlTokenTypes.IDENT, "cast" );
          versionMethodNode.addChild( methodIdentNode );
          versionMethodNode.initializeMethodNode(methodIdentNode, true );
          AST castExprListNode = getASTFactory().create( HqlSqlTokenTypes.EXPR_LIST, "exprList" );
          methodIdentNode.setNextSibling( castExprListNode );
          castExprListNode.addChild( versionValueNode );
          versionValueNode.setNextSibling(
              getASTFactory().create(
View Full Code Here

    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

    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

        out( " " );
    }
  }

  protected void beginFunctionTemplate(AST m, AST i) {
    MethodNode methodNode = ( MethodNode ) m;
    SQLFunction template = methodNode.getSQLFunction();
    if ( template == null ) {
      // if template is null we just write the function out as it appears in the hql statement
      super.beginFunctionTemplate( m, i );
    }
    else {
View Full Code Here

      writer = new FunctionArguments();
    }
  }

  protected void endFunctionTemplate(AST m) {
    MethodNode methodNode = ( MethodNode ) m;
    SQLFunction template = methodNode.getSQLFunction();
    if ( template == null ) {
      super.endFunctionTemplate( m );
    }
    else {
      // this function has a template -> restore output, apply the template and write the result out
View Full Code Here

        out( " " );
    }
  }

  protected void beginFunctionTemplate(AST m, AST i) {
    MethodNode methodNode = ( MethodNode ) m;
    SQLFunction template = methodNode.getSQLFunction();
    if ( template == null ) {
      // if template is null we just write the function out as it appears in the hql statement
      super.beginFunctionTemplate( m, i );
    }
    else {
View Full Code Here

      writer = new FunctionArguments();
    }
  }

  protected void endFunctionTemplate(AST m) {
    MethodNode methodNode = ( MethodNode ) m;
    SQLFunction template = methodNode.getSQLFunction();
    if ( template == null ) {
      super.endFunctionTemplate( m );
    }
    else {
      // this function has a template -> restore output, apply the template and write the result out
View Full Code Here

TOP

Related Classes of org.hibernate.hql.ast.tree.MethodNode

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.