All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.avaje.ebeaninternal.server.querydefn.OrmQueryLimitRequest Maven / Gradle / Ivy

There is a newer version: 8.1.1
Show newest version
package com.avaje.ebeaninternal.server.querydefn;

import com.avaje.ebean.config.dbplatform.DatabasePlatform;
import com.avaje.ebean.config.dbplatform.SqlLimitRequest;
import com.avaje.ebeaninternal.api.SpiQuery;

public class OrmQueryLimitRequest implements SqlLimitRequest {

  private final SpiQuery ormQuery;

  private final DatabasePlatform dbPlatform;

  private final String sql;

  private final String sqlOrderBy;

  public OrmQueryLimitRequest(String sql, String sqlOrderBy, SpiQuery ormQuery, DatabasePlatform dbPlatform) {
    this.sql = sql;
    this.sqlOrderBy = sqlOrderBy;
    this.ormQuery = ormQuery;
    this.dbPlatform = dbPlatform;
  }

  public String getDbOrderBy() {
    return sqlOrderBy;
  }

  public String getDbSql() {
    return sql;
  }

  public int getFirstRow() {
    return ormQuery.getFirstRow();
  }

  public int getMaxRows() {
    return ormQuery.getMaxRows();
  }

  public boolean isDistinct() {
    return ormQuery.isDistinctQuery();
  }

  public SpiQuery getOrmQuery() {
    return ormQuery;
  }

  public DatabasePlatform getDbPlatform() {
    return dbPlatform;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy