Package org.hibernate.hql.internal.ast.tree

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


    // If the constant is an IDENT, figure out what it means...
    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 ) {
        constant.setText( queryable.getDiscriminatorSQLValue() );
View Full Code Here

    // If the constant is an IDENT, figure out what it means...
    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 ) {
        constant.setText( queryable.getDiscriminatorSQLValue() );
View Full Code Here

    // If the constant is an IDENT, figure out what it means...
    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 ) {
        constant.setText( queryable.getDiscriminatorSQLValue() );
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.