question: public static int update ( String sql , Object [ ] args ) { Connection c = null ; PreparedStatement p = null ; try { c = getConnection ( ) ; if ( c == null ) return - 1 ; p = c . prepareStatement ( sql ) ; int order = 1 ; if ( args != null ) { for ( int i = 0 ; i < args . length ; i ++ ) { Object o = args [ i ] ; setParameter ( p , order ++ , o ) ; } } return p . executeUpdate ( ) ; } catch ( Exception e ) { if ( log . isErrorEnabled ( ) ) log . error ( sql + toString ( args ) , e ) ; } finally { close ( p , c ) ; } return 0 ; }
target:  Update the data using the sql sentence.