public Expression < java . util . Date > in ( java . util . Date [ ] value ) { SimpleDateFormat formatter = getDateTimeFormatter ( ) ; String valueString = "" ; Boolean firstCalendar = true ; for ( Date v : value ) { if ( firstCalendar ) { valueString = valueString . concat ( "('" ) . concat ( formatter . format ( v ) . concat ( "Z" ) ) . concat ( "'" ) ; firstCalendar = false ; } else { valueString = valueString . concat ( ", '" ) . concat ( formatter . format ( v ) . concat ( "Z" ) ) . concat ( "'" ) ; } } valueString = valueString . concat ( ")" ) ; return new Expression < java . util . Date > ( this , Operation . in , valueString ) ; }
Method to construct the in expression for date