Added a limit that takes only a count.

This commit is contained in:
Michael Bayne
2010-12-07 23:14:29 +00:00
parent f48a688d99
commit 1e86fba829
@@ -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.
*/