METHOD_0 ( ) { org . oscarehr . IDENT_0 . IDENT_1 . IDENT_2 IDENT_3 = new org . oscarehr . IDENT_0 . IDENT_1 . METHOD_1 ( ) ; org . oscarehr . IDENT_0 . IDENT_1 . IDENT_4 IDENT_5 = new org . oscarehr . IDENT_0 . IDENT_1 . METHOD_2 ( ) ; IDENT_5 . value = "test" ; org . oscarehr . IDENT_0 . IDENT_1 . METHOD_2 [ ] IDENT_6 = new org . oscarehr . IDENT_0 . IDENT_1 . METHOD_2 [ ] { IDENT_5 } ; IDENT_3 . IDENT_3 = IDENT_6 ; "<AssertPlaceHolder>" ; } METHOD_3 ( org . oscarehr . IDENT_0 . IDENT_1 . METHOD_1 ) { java . util . Map < java . lang . Integer , org . oscarehr . common . model . IDENT_7 > IDENT_8 = new java . util . HashMap < java . lang . Integer , org . oscarehr . common . model . IDENT_7 > ( ) ; java . lang . String sql = STRING_0 ; for ( org . oscarehr . IDENT_0 . IDENT_1 . METHOD_2 IDENT_5 : IDENT_3 . IDENT_3 ) { if ( ( IDENT_5 . value ) != null ) { sql = sql + STRING_1 ; } else if ( ( IDENT_5 . IDENT_9 ) != null ) { sql = sql + STRING_2 ; } else if ( ( IDENT_5 . values ) != null ) { sql = sql + STRING_3 ; for ( int i = 0 ; i < ( IDENT_5 . values . length ) ; i ++ ) { if ( i > 0 ) sql = sql + STRING_4 ; sql = ( ( sql + STRING_5 ) + ( i + 2 ) ) + STRING_6 ; } sql = sql + STRING_7 ; } } javax . persistence . Query query = IDENT_10 . METHOD_4 ( sql ) ; int c = 1 ; for ( org . oscarehr . IDENT_0 . IDENT_1 . METHOD_2 IDENT_5 : IDENT_3 . IDENT_3 ) { query . METHOD_5 ( ( c ++ ) , IDENT_5 . field ) ; if ( ( IDENT_5 . value ) != null ) { query . METHOD_5 ( ( c ++ ) , IDENT_5 . value ) ; } else if ( ( IDENT_5 . IDENT_9 ) != null ) { query . METHOD_5 ( ( c ++ ) , IDENT_5 . IDENT_9 ) ; query . METHOD_5 ( ( c ++ ) , IDENT_5 . IDENT_11 ) ; } else if ( ( IDENT_5 . values ) != null ) { for ( int i = 0 ; i < ( IDENT_5 . values . length ) ; i ++ ) { query . METHOD_5 ( ( c ++ ) , IDENT_5 . values [ i ] ) ; } } } @ org . oscarehr . IDENT_0 . dao . METHOD_6 ( STRING_8 ) java . util . List < java . lang . Object [ ] > results = query . METHOD_7 ( ) ; for ( java . lang . Object [ ] IDENT_12 : results ) { org . oscarehr . common . model . IDENT_7 f = new org . oscarehr . common . model . METHOD_8 ( ) ; f . setId ( ( ( java . lang . Integer ) ( IDENT_12 [ 0 ] ) ) ) ; f . METHOD_9 ( ( ( java . lang . Integer ) ( IDENT_12 [ 1 ] ) ) ) ; f . METHOD_10 ( ( ( java . sql . IDENT_13 ) ( IDENT_12 [ 2 ] ) ) ) ; org . oscarehr . common . model . METHOD_8 IDENT_14 = IDENT_8 . get ( f . getId ( ) ) ; if ( ( IDENT_14 == null ) || ( ( IDENT_14 . METHOD_11 ( ) . getTime ( ) ) < ( f . METHOD_11 ( ) . getTime ( ) ) ) ) { IDENT_8 . put ( f . getId ( ) , f ) ; } } return IDENT_8 . values ( ) ; }
org . junit . Assert . assertEquals ( 0 , dao . METHOD_3 ( IDENT_3 ) . size ( ) )