public static boolean executeSql ( final String sql , final Connection connection , final boolean isDebug ) throws SQLException { if ( isDebug || LOGGER . isTraceEnabled ( ) ) { LOGGER . log ( Level . INFO , "Executing SQL [" + sql + "]" ) ; } final Statement statement = connection . createStatement ( ) ; final boolean isSuccess = ! statement . execute ( sql ) ; statement . close ( ) ; return isSuccess ; }
Executes the specified SQL with the specified connection .