// @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; } }
// @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; } }
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; }
public LECBnfDBSet() { db = new DBOper("LECBnf"); con = db.getConnection(); }
public LEDOccupationDBSet() { db = new DBOper("LEDOccupation"); con = db.getConnection(); }