Package com.avaje.ebeaninternal.server.querydefn

Examples of com.avaje.ebeaninternal.server.querydefn.OrmQueryProperties


      }
    }

    BeanPropertyAssocMany<?> manyProperty = request.getManyProperty();
    if (manyProperty != null) {
      OrmQueryProperties chunk = query.getDetail().getChunk(manyProperty.getName(), false);
      SpiExpressionList<?> filterMany = chunk.getFilterMany();
      if (filterMany != null) {
        DefaultExpressionRequest filterReq = new DefaultExpressionRequest(request, deployParser);
        filterManyExprBindValues = filterMany.buildBindValues(filterReq);
        if (buildSql) {
          filterManyExprSql = filterMany.buildSql(filterReq);
View Full Code Here


    this.manyPropertyEl = sqlTree.getManyPropertyEl();
    this.manyIncluded = sqlTree.isManyIncluded();
    if (manyIncluded) {
      // get filter to put on the collection for reuse with refresh
      String manyPropertyName = sqlTree.getManyPropertyName();
      OrmQueryProperties chunk = query.getDetail().getChunk(manyPropertyName, false);
      this.filterMany = chunk.getFilterMany();
    } else {
      this.filterMany = null;
    }

    this.sql = queryPlan.getSql();
View Full Code Here

  }

  private SqlTreeNode buildNode(String prefix, BeanPropertyAssoc<?> prop, BeanDescriptor<?> desc,
      List<SqlTreeNode> myList) {

    OrmQueryProperties queryProps = queryDetail.getChunk(prefix, false);

    SqlTreeProperties props = getBaseSelect(desc, queryProps);

    if (prefix == null) {
      buildExtraJoins(desc, myList);
View Full Code Here

   */
  public void executeSecondaryQueries(OrmQueryRequest<?> parentRequest, int defaultQueryBatch) {
   
    if (secQuery != null){
      for (int i = 0; i < secQuery.size(); i++) {
        OrmQueryProperties properties = secQuery.get(i);
       
        int batchSize = properties.getQueryFetchBatch();
        if (batchSize == 0){
          batchSize = defaultQueryBatch;
        }
        LoadSecondaryQuery load = getLoadSecondaryQuery(properties.getPath());
        load.loadSecondaryQuery(parentRequest, batchSize, properties.isQueryFetchAll());
      }
    }
  }
View Full Code Here

  public void registerSecondaryQueries(SpiQuery<?> query) {
 
    secQuery = query.removeQueryJoins();
    if (secQuery != null){
      for (int i = 0; i < secQuery.size(); i++) {
        OrmQueryProperties props = secQuery.get(i);
        registerSecondaryQuery(props);
      }
    }
   
    List<OrmQueryProperties> lazyQueries = query.removeLazyJoins();
    if (lazyQueries != null){
      for (int i = 0; i < lazyQueries.size(); i++) {
        OrmQueryProperties lazyProps = lazyQueries.get(i);
        registerSecondaryQuery(lazyProps);
      }
    }
  }
View Full Code Here

TOP

Related Classes of com.avaje.ebeaninternal.server.querydefn.OrmQueryProperties

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.