Package org.hibernate.hql.ast.util

Examples of org.hibernate.hql.ast.util.SessionFactoryHelper


  throws SemanticException {
    if ( isResolved() ) {
      return;
    }
    FromReferenceNode collectionNode = ( FromReferenceNode ) getFirstChild();
    SessionFactoryHelper sessionFactoryHelper = getSessionFactoryHelper();
    collectionNode.resolveIndex( this );    // Fully resolve the map reference, create implicit joins.

    Type type = collectionNode.getDataType();
    if ( !type.isCollectionType() ) {
      throw new SemanticException( "The [] operator cannot be applied to type " + type.toString() );
    }
    String collectionRole = ( ( CollectionType ) type ).getRole();
    QueryableCollection queryableCollection = sessionFactoryHelper.requireQueryableCollection( collectionRole );
    if ( !queryableCollection.hasIndex() ) {
      throw new QueryException( "unindexed fromElement before []: " + collectionNode.getPath() );
    }

    // Generate the inner join -- The elements need to be joined to the collection they are in.
View Full Code Here


      Map tokenReplacements,
      String collectionRole) {
    setASTFactory( new SqlASTFactory( this ) );
    this.parseErrorHandler = new ErrorCounter();
    this.queryTranslatorImpl = qti;
    this.sessionFactoryHelper = new SessionFactoryHelper( sfi );
    this.literalProcessor = new LiteralProcessor( this );
    this.tokenReplacements = tokenReplacements;
    this.hqlParser = parser;
    this.printer = new ASTPrinter( SqlTokenTypes.class );
    this.collectionFilterRole = collectionRole;
View Full Code Here

      String collectionRole) {
    setASTFactory( new SqlASTFactory( this ) );
    // Initialize the error handling delegate.
    this.parseErrorHandler = new ErrorCounter();
    this.queryTranslatorImpl = qti;
    this.sessionFactoryHelper = new SessionFactoryHelper( sfi );
    this.literalProcessor = new LiteralProcessor( this );
    this.tokenReplacements = tokenReplacements;
    this.collectionFilterRole = collectionRole;
    this.hqlParser = parser;
    this.printer = new ASTPrinter( SqlTokenTypes.class );
View Full Code Here

TOP

Related Classes of org.hibernate.hql.ast.util.SessionFactoryHelper

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.