Package org.hibernate.hql.internal.ast

Examples of org.hibernate.hql.internal.ast.SqlGenerator


  public BasicExecutor(HqlSqlWalker walker, Queryable persister) {
        super(walker, null);
    this.persister = persister;
    try {
      SqlGenerator gen = new SqlGenerator( getFactory() );
      gen.statement( walker.getAST() );
      sql = gen.getSQL();
      gen.getParseErrorHandler().throwQueryException();
      parameterSpecifications = gen.getCollectedParameters();
    }
    catch ( RecognitionException e ) {
      throw QuerySyntaxException.convert( e );
    }
  }
View Full Code Here


  public BasicExecutor(HqlSqlWalker walker, Queryable persister) {
    this.factory = walker.getSessionFactoryHelper().getFactory();
    this.persister = persister;
    try {
      SqlGenerator gen = new SqlGenerator( factory );
      gen.statement( walker.getAST() );
      sql = gen.getSQL();
      gen.getParseErrorHandler().throwQueryException();
      parameterSpecifications = gen.getCollectedParameters();
    }
    catch ( RecognitionException e ) {
      throw QuerySyntaxException.convert( e );
    }
  }
View Full Code Here

      final DeleteStatement deleteStatement = ( DeleteStatement ) walker.getAST();
     
      final String idSubselectWhere;
      if (deleteStatement.hasWhereClause()) {
        final AST whereClause = deleteStatement.getWhereClause();
        final SqlGenerator gen = new SqlGenerator( factory );
        gen.whereClause( whereClause );
        parameterSpecifications = gen.getCollectedParameters();
        idSubselectWhere = gen.getSQL().length() > 7 ? gen.getSQL() : "";
      }
      else {
        parameterSpecifications = new ArrayList<ParameterSpecification>();
        idSubselectWhere = "";
      }
View Full Code Here

  public BasicExecutor(HqlSqlWalker walker, Queryable persister) {
    this.factory = walker.getSessionFactoryHelper().getFactory();
    this.persister = persister;
    try {
      SqlGenerator gen = new SqlGenerator( factory );
      gen.statement( walker.getAST() );
      sql = gen.getSQL();
      gen.getParseErrorHandler().throwQueryException();
      parameterSpecifications = gen.getCollectedParameters();
    }
    catch ( RecognitionException e ) {
      throw QuerySyntaxException.convert( e );
    }
  }
View Full Code Here

  public BasicExecutor(HqlSqlWalker walker, Queryable persister) {
    this.factory = walker.getSessionFactoryHelper().getFactory();
    this.persister = persister;
    try {
      SqlGenerator gen = new SqlGenerator( factory );
      gen.statement( walker.getAST() );
      sql = gen.getSQL();
      gen.getParseErrorHandler().throwQueryException();
      parameterSpecifications = gen.getCollectedParameters();
    }
    catch ( RecognitionException e ) {
      throw QuerySyntaxException.convert( e );
    }
  }
View Full Code Here

      final DeleteStatement deleteStatement = ( DeleteStatement ) walker.getAST();
     
      final String idSubselectWhere;
      if (deleteStatement.hasWhereClause()) {
        final AST whereClause = deleteStatement.getWhereClause();
        final SqlGenerator gen = new SqlGenerator( factory );
        gen.whereClause( whereClause );
        parameterSpecifications = gen.getCollectedParameters();
        idSubselectWhere = gen.getSQL().length() > 7 ? gen.getSQL() : "";
      }
      else {
        parameterSpecifications = new ArrayList<ParameterSpecification>();
        idSubselectWhere = "";
      }
View Full Code Here

TOP

Related Classes of org.hibernate.hql.internal.ast.SqlGenerator

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.