Package org.hibernate.loader.plan.spi

Examples of org.hibernate.loader.plan.spi.EntityReturn


      String[] keyColumnNames,
      LoadPlan loadPlan,
      SessionFactoryImplementor factory,
      QueryBuildingParameters buildingParameters,
      AliasResolutionContext aliasResolutionContext) {
    final EntityReturn rootReturn = Helper.INSTANCE.extractRootReturn( loadPlan, EntityReturn.class );

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

    return generateSql(
        keyColumnNamesToUse,
        rootReturn,
        factory,
View Full Code Here


  }

  @Override
  protected EntityReturn buildRootEntityReturn(EntityDefinition entityDefinition) {
    final String entityName = entityDefinition.getEntityPersister().getEntityName();
    return new EntityReturn(
        sessionFactory(),
        LockMode.NONE, // todo : for now
        entityName
    );
  }
View Full Code Here

  }

  @Override
  protected EntityReturn buildRootEntityReturn(EntityDefinition entityDefinition) {
    final String entityName = entityDefinition.getEntityPersister().getEntityName();
    return new EntityReturn(
        sessionFactory(),
        LockMode.NONE, // todo : for now
        entityName
    );
  }
View Full Code Here

    if ( fetchOwnerStack.isEmpty() ) {
      // this is a root...
      if ( ! supportsRootEntityReturns() ) {
        throw new HibernateException( "This strategy does not support root entity returns" );
      }
      final EntityReturn entityReturn = buildRootEntityReturn( entityDefinition );
      addRootReturn( entityReturn );
      pushToStack( entityReturn );
    }
    // otherwise this call should represent a fetch which should have been handled in #startingAttribute
  }
View Full Code Here

    if ( fetchOwnerStack.isEmpty() ) {
      // this is a root...
      if ( ! supportsRootEntityReturns() ) {
        throw new HibernateException( "This strategy does not support root entity returns" );
      }
      final EntityReturn entityReturn = buildRootEntityReturn( entityDefinition );
      addRootReturn( entityReturn );
      pushToStack( entityReturn );
    }
    // otherwise this call should represent a fetch which should have been handled in #startingAttribute
  }
View Full Code Here

    if ( fetchOwnerStack.isEmpty() ) {
      // this is a root...
      if ( ! supportsRootEntityReturns() ) {
        throw new HibernateException( "This strategy does not support root entity returns" );
      }
      final EntityReturn entityReturn = buildRootEntityReturn( entityDefinition );
      addRootReturn( entityReturn );
      pushToStack( entityReturn );
    }
    // otherwise this call should represent a fetch which should have been handled in #startingAttribute
  }
View Full Code Here

TOP

Related Classes of org.hibernate.loader.plan.spi.EntityReturn

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.