コード例 #1
0
 // @Method
 public boolean deleteSQL() {
   if (db.deleteSQL(this)) {
     return true;
   } else {
     // @@错误处理
     this.mErrors.copyAllErrors(db.mErrors);
     CError tError = new CError();
     tError.moduleName = "LECBnfDBSet";
     tError.functionName = "deleteSQL";
     tError.errorMessage = "操作失败!";
     this.mErrors.addOneError(tError);
     return false;
   }
 }
コード例 #2
0
 // @Method
 public boolean deleteSQL() {
   LEDEPolicyMailInfoSchema tSchema = this.getSchema();
   if (db.deleteSQL(tSchema)) {
     return true;
   } else {
     // @@错误处理
     this.mErrors.copyAllErrors(db.mErrors);
     CError tError = new CError();
     tError.moduleName = "LEDEPolicyMailInfoDB";
     tError.functionName = "deleteSQL";
     tError.errorMessage = "操作失败!";
     this.mErrors.addOneError(tError);
     return false;
   }
 }
コード例 #3
0
  public int getCount() {
    LEDEPolicyMailInfoSchema tSchema = this.getSchema();

    int tCount = db.getCount(tSchema);
    if (tCount < 0) {
      // @@错误处理
      this.mErrors.copyAllErrors(db.mErrors);
      CError tError = new CError();
      tError.moduleName = "LEDEPolicyMailInfoDB";
      tError.functionName = "getCount";
      tError.errorMessage = "操作失败!";
      this.mErrors.addOneError(tError);

      return -1;
    }

    return tCount;
  }
コード例 #4
0
 public LECBnfDBSet() {
   db = new DBOper("LECBnf");
   con = db.getConnection();
 }
コード例 #5
0
 public LEDOccupationDBSet() {
   db = new DBOper("LEDOccupation");
   con = db.getConnection();
 }