private List < Object > getQueryParametersAsList ( ) { // iterate over all restrictions of this criteria Iterator < MetaEntry < Criterion >> iter = rootCriteria . getCriterionList ( ) . iterator ( ) ; // result list List < Object > result = new ArrayList < Object > ( ) ; // loop over all criterion while ( iter . hasNext ( ) ) { // the current criterion Criterion criterion = iter . next ( ) . getEntry ( ) ; // get the values to set Object [ ] parameterValues = criterion . getParameterValues ( ) ; // null should be ignores if ( parameterValues == null ) { continue ; } // set all parameters for ( Object value : parameterValues ) { result . add ( value ) ; } } return result ; }
Creates an ordered list of all parameter values registered at the root criteria .