Package com.ptsmods.mysqlw.query
Class QueryLimit
java.lang.Object
com.ptsmods.mysqlw.query.QueryLimit
Indicates a limit of the amount of rows you wish to have returned.
Can optionally also indicate an offset.
-
Method Summary
Modifier and TypeMethodDescriptionint
getLimit()
int
static QueryLimit
limit
(int limit) static QueryLimit
limit
(int limit, int offset) toString()
-
Method Details
-
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
- Parameters:
limit
- The maximum amount of rows a query may returnoffset
- 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
-