public final class PageableQueryValidator
extends java.lang.Object
Constructor and Description |
---|
PageableQueryValidator(PersistenceContext context,
java.lang.String queryName,
javax.ws.rs.core.UriInfo uri)
Creates a validator.
|
Modifier and Type | Method and Description |
---|---|
int |
getLimit()
Returns a value of Limit paging parameter.
|
int |
getOffset()
Returns a value of Offset paging parameter.
|
boolean |
isFeatureApplicable()
Checks if request is valid.
|
public PageableQueryValidator(PersistenceContext context, java.lang.String queryName, javax.ws.rs.core.UriInfo uri)
context
- persistence contextqueryName
- query name to validateuri
- request uripublic boolean isFeatureApplicable() throws JPARSException
JPARSException
- in case of any validation errorspublic int getOffset()
public int getLimit()