set limits on results to return . the execution of the query is modified to return only a subset of results . if the filter would normally return 100 instances , skip is set to 50 , and limit is set to 40 , then the first 50 results that would have been returned are skipped , the next 40 results are returned and the remaining 10 results are ignored . skip must be greater than or equal to 0 . limit must be greater than or equal to 0 . limits may not be used with deletepersistentall . the limits as specified by the user are converted here into an internal form where the limit is the last record to deliver instead of the number of records to deliver . so if the user specifies limits of 10 , 20 we convert this to limits of 10 , 30 for the lower layers of the implementation . concode_field_sep long skip concode_elem_sep String[] orderingFields concode_elem_sep Logger logger concode_elem_sep QueryExecutionContextImpl context concode_elem_sep long limit concode_elem_sep SessionImpl session concode_elem_sep I18NHelper local concode_elem_sep QueryDomainTypeImpl<E> dobj concode_elem_sep Query.Ordering ordering concode_field_sep Map<String,Object> explain concode_elem_sep void setOrdering concode_elem_sep List<E> getResultList concode_elem_sep void setParameter concode_elem_sep int deletePersistentAll concode_elem_sep Results<E> execute concode_elem_sep Results<E> execute concode_elem_sep Results<E> execute
void function ( long arg0 , long arg1 ) { if ( arg0 < 0 || arg1 < 0 ) { throw new ClusterJUserException ( local . message ( "srini_string" , arg0 , arg1 ) ) ; } this . skip = arg0 ; if ( Long . MAX_VALUE - arg0 < arg1 ) { arg1 = Long . MAX_VALUE ; } else { this . limit = arg1 + arg0 ; } }