public static void deleteById(final CConnection connection,final String tableName,final int id) throws CouldntDeleteException {
  Preconditions.checkNotNull(connection,"IE00595: Connection argument can not be null");
  Preconditions.checkNotNull(tableName,"IE00596: Table name argument can not be null");
  Preconditions.checkArgument(id > 0,"IE00597: Id argument can not be less or equal zero");
  try {
    connection.executeUpdate(String.format("DELETE FROM %s WHERE id = %d",tableName,id),true);
  }
 catch (  final SQLException e) {
    throw new CouldntDeleteException(e);
  }
}

public static void deleteById ( final CConnection connection , final String tableName , final int id ) throws CouldntDeleteException { Preconditions . checkNotNull ( connection , "IE00595: Connection argument can not be null" ) ; Preconditions . checkNotNull ( tableName , "IE00596: Table name argument can not be null" ) ; Preconditions . checkArgument ( id > 0 , "IE00597: Id argument can not be less or equal zero" ) ; try { connection . executeUpdate ( String . format ( "DELETE FROM %s WHERE id = %d" , tableName , id ) , true ) ; } catch ( final SQLException e ) { throw new CouldntDeleteException ( e ) ; } }
deletes a row that is identified by an id from a table .
