Package com.avaje.ebeaninternal.api

Examples of com.avaje.ebeaninternal.api.ManyWhereJoins


    if (query.isRawSql()) {
      query.setFirstRow(0);
      query.setMaxRows(0);
    }

    ManyWhereJoins manyWhereJoins = query.getManyWhereJoins();
   
    boolean hasMany = manyWhereJoins.isHasMany();
    if (manyWhereJoins.isSelectId()) {
      // just select the id property
      query.setSelectId();
    } else {
      // select the id and the required formula properties
      query.select(manyWhereJoins.getFormulaProperties());
    }

    String sqlSelect = "select count(*)";
    if (hasMany) {
      // need to count distinct id's ...
View Full Code Here


  /**
   * Return true if the where expressions contains a many property.
   */
  public boolean initManyWhereJoins() {
    manyWhereJoins = new ManyWhereJoins();
    if (whereExpressions != null) {
      whereExpressions.containsMany(beanDescriptor, manyWhereJoins);
    }
    return !manyWhereJoins.isEmpty();
  }
View Full Code Here

TOP

Related Classes of com.avaje.ebeaninternal.api.ManyWhereJoins

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.