setFirstResult(startPosition) - JPA TypedQuery's method
Method javax.persistence.TypedQuery
TypedQuery<X> setFirstResult(
int startPosition
)
Set the position of the first result to retrieve.
- Parameters:
-
startPosition
- position of the first result, numbered from 0
- Returns:
- the same query instance
- Throws:
-
IllegalArgumentException
- if the argument is negative
- Since:
- JPA 2.0