Esempio n. 1
0
  /**
   * 获取删除语句<br>
   * <功能详细描述>
   *
   * @return [参数说明]
   * @return String [返回类型说明]
   * @exception throws [异常类型] [异常说明]
   * @see [类、类#方法、类#成员]
   */
  public String deleteSql() {
    AssertUtils.notEmpty(this.pkName, "pkName is empty.");
    AssertUtils.isTrue(
        this.getter2columnNameMapping.containsKey(this.pkName),
        "property2columnNameMapping not contains pkName:{}.",
        this.pkName);

    // 开始构建sql
    SqlBuilder.BEGIN();
    SqlBuilder.DELETE_FROM(this.tableName);
    SqlBuilder.WHERE(this.getter2columnNameMapping.get(this.pkName) + " = ? ");
    String deleteSql = SqlBuilder.SQL();
    SqlBuilder.RESET();

    return deleteSql;
  }
 public String deleteByExample(StudentLogAssignExample example) {
   BEGIN();
   DELETE_FROM("student_log_assign");
   applyWhere(example, false);
   return SQL();
 }
 /**
  * This method was generated by MyBatis Generator. This method corresponds to the database table
  * voltage_rank_classify
  *
  * @mbggenerated Wed Jan 13 12:15:38 CST 2016
  */
 public String deleteByExample(VoltageRankClassifyExample example) {
   BEGIN();
   DELETE_FROM("voltage_rank_classify");
   applyWhere(example, false);
   return SQL();
 }
Esempio n. 4
0
 public String deleteByExample(NewsExample example) {
   BEGIN();
   DELETE_FROM("news");
   applyWhere(example, false);
   return SQL();
 }