METHOD_0 ( ) { org . pentaho . di . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_3 IDENT_4 = mock ( org . pentaho . di . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_3 . class ) ; doReturn ( null ) . when ( IDENT_4 ) . METHOD_1 ( ) ; org . pentaho . di . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_5 meta = mock ( org . pentaho . di . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_5 . class ) ; org . pentaho . di . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_6 data = mock ( org . pentaho . di . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_6 . class ) ; "<AssertPlaceHolder>" ; } METHOD_2 ( org . pentaho . di . IDENT_0 . IDENT_7 . IDENT_8 , org . pentaho . di . IDENT_0 . IDENT_7 . IDENT_9 ) { meta = ( ( org . pentaho . di . IDENT_0 . IDENT_1 . sql . IDENT_10 ) ( IDENT_11 ) ) ; data = ( ( org . pentaho . di . IDENT_0 . IDENT_1 . sql . IDENT_12 ) ( IDENT_13 ) ) ; if ( ! ( meta . METHOD_3 ( ) ) ) { org . pentaho . di . core . IDENT_14 IDENT_15 = org . pentaho . di . IDENT_0 . IDENT_1 . sql . IDENT_16 . METHOD_4 ( data . result , meta . METHOD_5 ( ) , meta . METHOD_6 ( ) , meta . METHOD_7 ( ) , meta . METHOD_8 ( ) ) ; METHOD_9 ( IDENT_15 . METHOD_10 ( ) , IDENT_15 . METHOD_11 ( ) ) ; METHOD_12 ( ) ; return false ; } java . lang . Object [ ] row = METHOD_1 ( ) ; if ( row == null ) { METHOD_12 ( ) ; return false ; } if ( first ) { first = false ; data . IDENT_17 = METHOD_13 ( ) . METHOD_14 ( ) ; meta . METHOD_15 ( data . IDENT_17 , METHOD_16 ( ) , null , null , this , repository , IDENT_18 ) ; data . IDENT_19 = new int [ meta . METHOD_17 ( ) . length ] ; for ( int i = 0 ; i < ( meta . METHOD_17 ( ) . length ) ; i ++ ) { data . IDENT_19 [ i ] = this . METHOD_13 ( ) . METHOD_18 ( meta . METHOD_17 ( ) [ i ] ) ; if ( ( data . IDENT_19 [ i ] ) < 0 ) { METHOD_19 ( ( ( ( org . pentaho . di . IDENT_20 . IDENT_21 . getString ( org . pentaho . di . IDENT_0 . IDENT_1 . sql . IDENT_16 . IDENT_22 , STRING_0 ) ) + ( meta . METHOD_17 ( ) [ i ] ) ) + "]" ) ) ; throw new org . pentaho . di . core . exception . METHOD_20 ( org . pentaho . di . IDENT_20 . IDENT_21 . getString ( org . pentaho . di . IDENT_0 . IDENT_1 . sql . IDENT_16 . IDENT_22 , STRING_1 , meta . METHOD_17 ( ) [ i ] ) ) ; } if ( meta . METHOD_21 ( ) ) { if ( i == 0 ) { data . IDENT_23 = new org . pentaho . di . core . row . METHOD_22 ( ) ; } data . IDENT_23 . METHOD_23 ( METHOD_13 ( ) . METHOD_24 ( data . IDENT_19 [ i ] ) ) ; } } if ( ! ( meta . METHOD_21 ( ) ) ) { data . IDENT_24 = new java . util . ArrayList < java . lang . Integer > ( ) ; int len = data . sql . length ( ) ; int pos = len - 1 ; while ( pos >= 0 ) { if ( ( data . sql . charAt ( pos ) ) == STRING_2 ) { data . IDENT_24 . add ( java . lang . Integer . valueOf ( pos ) ) ; } pos OP_0 ; } } } java . lang . String sql ; java . lang . Object [ ] IDENT_25 = null ; if ( meta . METHOD_21 ( ) ) { IDENT_25 = new java . lang . Object [ data . IDENT_19 . length ] ; sql = this . data . sql ; for ( int i = 0 ; i < ( this . data . IDENT_19 . length ) ; i ++ ) { IDENT_25 [ i ] = row [ data . IDENT_19 [ i ] ] ; } } else { int IDENT_26 = data . IDENT_24 . size ( ) ; if ( IDENT_26 > 0 ) { java . lang . StringBuilder buf = new java . lang . StringBuilder ( data . sql ) ; for ( int i = 0 ; i < IDENT_26 ; i ++ ) { int index = data . IDENT_19 [ ( ( ( data . IDENT_24 . size ( ) ) - i ) - 1 ) ] ; org . pentaho . di . core . row . IDENT_27 IDENT_28 = METHOD_13 ( ) . METHOD_24 ( index ) ; java . lang . Object IDENT_29 = row [ index ] ; int pos = data . IDENT_24 . get ( i ) ; java . lang . String IDENT_30 = IDENT_28 . getString ( IDENT_29 ) ; IDENT_30 = org . pentaho . di . core . IDENT_31 . METHOD_25 ( IDENT_30 , "" ) ; if ( ( meta . METHOD_26 ( ) ) && ( ( IDENT_28 . getType ( ) ) == ( org . pentaho . di . core . row . IDENT_27 . IDENT_32 ) ) ) { IDENT_30 = meta . METHOD_27 ( ) . METHOD_28 ( IDENT_30 ) ; } buf . replace ( pos , ( pos + 1 ) , IDENT_30 ) ; } sql = buf . toString ( ) ; } else { sql = data . sql ; } } if ( log . METHOD_29 ( ) ) { METHOD_30 ( ( ( ( org . pentaho . di . IDENT_20 . IDENT_21 . getString ( org . pentaho . di . IDENT_0 . IDENT_1 . sql . IDENT_16 . IDENT_22 , STRING_3 ) ) + ( org . pentaho . di . core . IDENT_31 . IDENT_33 ) ) + sql ) ) ; } boolean IDENT_34 = false ; java . lang . String IDENT_35 = null ; try { if ( meta . METHOD_31 ( ) ) { data . result = data . db . METHOD_32 ( sql , data . IDENT_23 , IDENT_25 ) ; } else { data . result = data . db . METHOD_33 ( sql , data . IDENT_23 , IDENT_25 ) ; } org . pentaho . di . core . IDENT_14 add = org . pentaho . di . IDENT_0 . IDENT_1 . sql . IDENT_16 . METHOD_4 ( data . result , meta . METHOD_5 ( ) , meta . METHOD_6 ( ) , meta . METHOD_7 ( ) , meta . METHOD_8 ( ) ) ; row = org . pentaho . di . core . row . IDENT_36 . METHOD_34 ( row , METHOD_13 ( ) . size ( ) , add . METHOD_11 ( ) ) ; if ( ! ( data . db . METHOD_35 ( ) ) ) { data . db . commit ( ) ; } METHOD_9 ( data . IDENT_17 , row ) ; if ( METHOD_36 ( METHOD_37 ( ) ) ) { if ( log . METHOD_38 ( ) ) { METHOD_39 ( ( ( org . pentaho . di . IDENT_20 . IDENT_21 . getString ( org . pentaho . di . IDENT_0 . IDENT_1 . sql . IDENT_16 . IDENT_22 , STRING_4 ) ) + ( METHOD_37 ( ) ) ) ) ; } } } catch ( org . pentaho . di . core . exception . IDENT_37 e ) { if ( METHOD_40 ( ) . METHOD_41 ( ) ) { IDENT_34 = true ; IDENT_35 = e . toString ( ) ; } else { throw new org . pentaho . di . core . exception . METHOD_20 ( org . pentaho . di . IDENT_20 . IDENT_21 . getString ( org . pentaho . di . IDENT_0 . IDENT_1 . sql . IDENT_16 . IDENT_22 , STRING_5 ) , e ) ; } if ( IDENT_34 ) { METHOD_42 ( METHOD_13 ( ) , row , 1 , IDENT_35 , null , STRING_6 ) ; } } return true ; }
org . junit . Assert . assertEquals ( false , IDENT_4 . METHOD_2 ( meta , data ) )