Package org.hibernate.loader.plan.exec.internal

Examples of org.hibernate.loader.plan.exec.internal.AliasResolutionContextImpl


  public static CollectionLoadQueryDetails makeForBatching(
      LoadPlan loadPlan,
      QueryBuildingParameters buildingParameters,
      SessionFactoryImplementor factory) {
    final CollectionReturn rootReturn = Helper.INSTANCE.extractRootReturn( loadPlan, CollectionReturn.class );
    final AliasResolutionContextImpl aliasResolutionContext = new AliasResolutionContextImpl( factory );
    return new OneToManyLoadQueryDetails(
            loadPlan,
            aliasResolutionContext,
            rootReturn,
            buildingParameters,
View Full Code Here


    final String[] keyColumnNamesToUse = keyColumnNames != null
        ? keyColumnNames
        : ( (Queryable) rootReturn.getEntityPersister() ).getIdentifierColumnNames();
    // Should be just one querySpace (of type EntityQuerySpace) in querySpaces.  Should we validate that?
    // Should we make it a util method on Helper like we do for extractRootReturn ?
    final AliasResolutionContextImpl aliasResolutionContext = new AliasResolutionContextImpl( factory );
    return new EntityLoadQueryDetails(
        loadPlan,
        keyColumnNamesToUse,
        aliasResolutionContext,
        rootReturn,
View Full Code Here

  public static CollectionLoadQueryDetails makeForBatching(
      LoadPlan loadPlan,
      QueryBuildingParameters buildingParameters,
      SessionFactoryImplementor factory) {
    final CollectionReturn rootReturn = Helper.INSTANCE.extractRootReturn( loadPlan, CollectionReturn.class );
    final AliasResolutionContextImpl aliasResolutionContext = new AliasResolutionContextImpl( factory );
    return new BasicCollectionLoadQueryDetails(
            loadPlan,
            aliasResolutionContext,
            rootReturn,
            buildingParameters,
View Full Code Here

      SessionFactoryImplementor factory) {
    this.loadPlan = loadPlan;

    final SelectStatementBuilder select = new SelectStatementBuilder( factory.getDialect() );
    final EntityReturn rootReturn = Helper.INSTANCE.extractRootReturn( loadPlan, EntityReturn.class );
    final AliasResolutionContext aliasResolutionContext = new AliasResolutionContextImpl( factory );
    final ReaderCollectorImpl readerCollector = new ReaderCollectorImpl();

    final String[] keyColumnNamesToUse = keyColumnNames != null
        ? keyColumnNames
        : ( (Queryable) rootReturn.getEntityPersister() ).getIdentifierColumnNames();

    // apply root entity return specifics
    applyRootReturnSpecifics(
        select,
        keyColumnNamesToUse,
        rootReturn,
        factory,
        buildingParameters,
        aliasResolutionContext
    );
    readerCollector.addReader(
        new EntityReturnReader(
            rootReturn,
            aliasResolutionContext.resolveAliases( rootReturn ),
            new EntityIdentifierReaderImpl(
                rootReturn,
                aliasResolutionContext.resolveAliases( rootReturn ),
                Collections.<EntityReferenceReader>emptyList()
            )
        )
    );
View Full Code Here

TOP

Related Classes of org.hibernate.loader.plan.exec.internal.AliasResolutionContextImpl

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.