public org . grails . datastore . mapping . query . api . Criteria between ( String propertyName , Object lo , Object hi ) { if ( ! validateSimpleExpression ( ) ) { throwRuntimeException ( new IllegalArgumentException ( "Call to [between] with propertyName [" + propertyName + "] not allowed here." ) ) ; } propertyName = calculatePropertyName ( propertyName ) ; addToCriteria ( Restrictions . between ( propertyName , lo , hi ) ) ; return this ; }
Creates a between Criterion based on the property name and specified lo and hi values