Class QueryLimit

java.lang.Object
com.ptsmods.mysqlw.query.QueryLimit

public class QueryLimit extends Object
Indicates a limit of the amount of rows you wish to have returned. Can optionally also indicate an offset.
  • Method Details

    • limit

      public static QueryLimit limit(int limit)
      Parameters:
      limit - The maximum amount of rows a query may return
      Returns:
      A QueryLimit that limits the amount of rows returned by a query
    • limit

      public static QueryLimit limit(int limit, int offset)
      Parameters:
      limit - The maximum amount of rows a query may return
      offset - The offset at which the RDBMS should get these rows
      Returns:
      A QueryLimit that limits the amount of rows returned by a query and gets them at a specific offset.
    • getLimit

      public int getLimit()
      Returns:
      The maximum amount of rows this QueryLimit allows a query to return.
    • getOffset

      public int getOffset()
      Returns:
      The offset at which the RDBMS should get the rows.
    • toString

      public String toString()
      Overrides:
      toString in class Object