this utility method can be used to combine two criteria using an and . if both criteria are null , then null will be returned . if either is null , then the other will be returned . concode_field_sep PlaceHolder placeHolder concode_field_sep void separateCriteria concode_elem_sep List<Condition> separateCriteriaByAnd
Condition function ( Condition arg0 , Condition arg1 , LanguageFactory arg2 ) { if ( arg0 == null ) { return arg1 ; } else if ( arg1 == null ) { return arg0 ; } else { return arg2 . createAndOr ( Operator . AND , arg0 , arg1 ) ; } }