Ejemplo n.º 1
0
 /**
  * Save record.
  *
  * <pre>
  * Example:
  * Record userRole = new Record().set("user_id", 123).set("role_id", 456);
  * Db.save("user_role", "user_id, role_id", userRole);
  * </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 will be saved
  * @param true if save succeed otherwise false
  */
 public static boolean save(String tableName, String primaryKey, Record record) {
   return dbPro.save(tableName, primaryKey, record);
 }
Ejemplo n.º 2
0
 /** @see #save(String, String, Record) */
 public static boolean save(String tableName, Record record) {
   return dbPro.save(tableName, record);
 }
Ejemplo n.º 3
0
 static boolean save(
     Config config, Connection conn, String tableName, String primaryKey, Record record)
     throws SQLException {
   return dbPro.save(config, conn, tableName, primaryKey, record);
 }