示例#1
0
 /**
  *
  *
  * <pre>
  * Example:
  * boolean succeed = Db.delete("user", user);
  * </pre>
  *
  * @see #delete(String, String, Record)
  */
 public static boolean delete(String tableName, Record record) {
   return dbPro.delete(tableName, record);
 }
示例#2
0
 /**
  * Delete record.
  *
  * <pre>
  * Example:
  * boolean succeed = Db.delete("user", "id", user);
  * </pre>
  *
  * @param tableName the table name of the table
  * @param primaryKey the primary key of the table, composite primary key is separated by comma
  *     character: ","
  * @param record the record
  * @return true if delete succeed otherwise false
  */
 public static boolean delete(String tableName, String primaryKey, Record record) {
   return dbPro.delete(tableName, primaryKey, record);
 }