public boolean update(String strWherePart) {
    Statement stmt = null;

    if (!mflag) {
      con = DBConnPool.getConnection();
    }

    try {
      stmt = con.createStatement(ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY);
      SQLString sqlObj = new SQLString("LEDEPolicyMailInfo");
      LEDEPolicyMailInfoSchema aSchema = this.getSchema();
      sqlObj.setSQL(2, aSchema);
      String sql = "update LEDEPolicyMailInfo " + sqlObj.getUpdPart() + " where " + strWherePart;

      int operCount = stmt.executeUpdate(sql);
      if (operCount == 0) {
        // @@错误处理
        CError tError = new CError();
        tError.moduleName = "LEDEPolicyMailInfoDB";
        tError.functionName = "update";
        tError.errorMessage = "更新数据失败!";
        this.mErrors.addOneError(tError);

        if (!mflag) {
          try {
            con.close();
          } catch (Exception et) {
          }
        }
        return false;
      }
    } catch (Exception e) {
      // @@错误处理
      CError tError = new CError();
      tError.moduleName = "LEDEPolicyMailInfoDB";
      tError.functionName = "update";
      tError.errorMessage = e.toString();
      this.mErrors.addOneError(tError);

      try {
        stmt.close();
      } catch (Exception ex1) {
      }

      if (!mflag) {
        try {
          con.close();
        } catch (Exception et) {
        }
      }
      return false;
    }
    // 断开数据库连接
    if (!mflag) {
      try {
        con.close();
      } catch (Exception e) {
      }
    }

    return true;
  }