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

com.rapleaf.jack.queries.LimitCriterion Maven / Gradle / Ivy

There is a newer version: 1.8
Show newest version
package com.rapleaf.jack.queries;
    
public class LimitCriterion implements QueryCondition {
  private int offset;
  private int nResults;

  public LimitCriterion(int offset, int nResults) {
    this.offset = offset;
    this.nResults = nResults;
  }

  public LimitCriterion(int nResults) {
    this.offset = 0;
    this.nResults = nResults;
  }

  public int getOffset() {
    return offset;
  }

  public int getNResults() {
    return nResults;
  }

  @Override
  public String getSqlStatement() {
    return "LIMIT " + nResults + " OFFSET " + offset;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy