METHOD_0 ( ) { final long count = com . IDENT_0 . util . IDENT_1 . METHOD_1 ( null , null , null , STRING_0 ) ; "<AssertPlaceHolder>" ; } METHOD_1 ( java . sql . ResultSet , java . io . IDENT_2 , com . IDENT_0 . nifi . IDENT_3 . api . IDENT_4 , java . lang . String ) { int IDENT_5 = 0 ; if ( ( rs == null ) || ( ( rs . METHOD_2 ( ) ) == null ) ) { com . IDENT_0 . util . IDENT_1 . log . warn ( STRING_1 ) ; return 0 ; } java . io . IDENT_6 writer = new java . io . METHOD_3 ( IDENT_7 ) ; final java . sql . IDENT_8 meta = rs . METHOD_2 ( ) ; final com . IDENT_0 . util . IDENT_1 . IDENT_9 IDENT_10 = new com . IDENT_0 . util . IDENT_1 . METHOD_4 ( IDENT_11 ) ; final int IDENT_12 = meta . METHOD_5 ( ) ; java . lang . StringBuffer sb = new java . lang . StringBuffer ( ) ; for ( int i = 1 ; i <= IDENT_12 ; i ++ ) { java . lang . String IDENT_13 = meta . METHOD_6 ( i ) ; sb . append ( IDENT_10 . METHOD_7 ( IDENT_13 ) ) ; if ( i != IDENT_12 ) { sb . append ( IDENT_11 ) ; } else { sb . append ( "\n" ) ; } } writer . append ( sb . toString ( ) ) ; long IDENT_14 = 0 ; while ( rs . next ( ) ) { if ( IDENT_15 != null ) { IDENT_15 . METHOD_8 ( rs ) ; } sb = new java . lang . StringBuffer ( ) ; IDENT_14 ++ ; for ( int i = 1 ; i <= IDENT_12 ; i ++ ) { java . lang . String val = null ; int IDENT_16 = meta . METHOD_9 ( i ) ; if ( ( IDENT_16 == ( java . sql . IDENT_17 . IDENT_18 ) ) || ( IDENT_16 == ( java . sql . IDENT_17 . IDENT_19 ) ) ) { java . sql . IDENT_20 IDENT_21 = null ; try { IDENT_21 = com . IDENT_0 . util . IDENT_1 . METHOD_10 ( rs , i ) ; } catch ( java . lang . Exception e ) { if ( ( IDENT_5 ++ ) < 10 ) { com . IDENT_0 . util . IDENT_1 . log . warn ( STRING_2 , rs . METHOD_2 ( ) . METHOD_6 ( i ) ) ; } } if ( IDENT_15 != null ) { IDENT_15 . METHOD_11 ( rs . METHOD_2 ( ) . METHOD_6 ( i ) , IDENT_16 , IDENT_21 ) ; } if ( IDENT_21 != null ) { org . joda . time . format . IDENT_22 IDENT_23 = org . joda . time . format . IDENT_24 . METHOD_12 ( ) . METHOD_13 ( ) ; val = IDENT_23 . METHOD_14 ( new org . joda . time . METHOD_15 ( IDENT_21 . getTime ( ) ) ) ; } } else if ( IDENT_16 == ( java . sql . IDENT_17 . IDENT_25 ) ) { java . sql . IDENT_26 time = rs . getTime ( i ) ; if ( IDENT_15 != null ) { IDENT_15 . METHOD_11 ( rs . METHOD_2 ( ) . METHOD_6 ( i ) , IDENT_16 , time ) ; } if ( time != null ) { org . joda . time . format . IDENT_22 IDENT_23 = org . joda . time . format . IDENT_24 . time ( ) . METHOD_13 ( ) ; val = IDENT_23 . METHOD_14 ( new org . joda . time . METHOD_15 ( time . getTime ( ) ) ) ; } } else if ( IDENT_16 == ( java . sql . IDENT_17 . IDENT_27 ) ) { byte [ ] bytes = rs . getBytes ( i ) ; if ( bytes != null ) val = rs . getBytes ( i ) . toString ( ) ; if ( IDENT_15 != null ) { IDENT_15 . METHOD_11 ( rs . METHOD_2 ( ) . METHOD_6 ( i ) , IDENT_16 , val ) ; } } else { val = rs . getString ( i ) ; if ( IDENT_15 != null ) { IDENT_15 . METHOD_11 ( rs . METHOD_2 ( ) . METHOD_6 ( i ) , IDENT_16 , val ) ; } } sb . append ( ( val == null ? "" : IDENT_10 . METHOD_7 ( val ) ) ) ; if ( i != IDENT_12 ) { sb . append ( IDENT_11 ) ; } else { sb . append ( "\n" ) ; } } writer . append ( sb . toString ( ) ) ; } writer . METHOD_16 ( ) ; return IDENT_14 ; }
org . junit . Assert . assertEquals ( 0L , count )