Added a limit that takes only a count.
This commit is contained in:
@@ -160,6 +160,15 @@ public class QueryBuilder<T extends PersistentRecord>
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Configures a {@link Limit} clause configured with the supplied count.
|
||||
*/
|
||||
public QueryBuilder<T> limit (int count)
|
||||
{
|
||||
_limit = new Limit(0, count);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Configures a {@link Limit} clause configured with the supplied offset and count.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user