コード例 #1
0
 /**
  * 메일필터링을 통계를 삭제 한다.
  *
  * @param massmailID
  * @param scheduleID
  * @return
  */
 public int deleteMassMailFilter(int massmailID, int scheduleID) {
   int result = 0;
   try {
     result = massmailStatisticDAO.deleteMassMailFilter(massmailID, scheduleID);
   } catch (Exception e) {
     logger.error(e);
   }
   return result;
 }
コード例 #2
0
 /**
  * 메일필터링을 삭제후에 인서트 한다.
  *
  * @param massmailID
  * @param scheduleID
  * @return
  */
 public int insertAfterDeleteMassMailFilter(int massmailID, int scheduleID) {
   int result = 0;
   TransactionStatus status =
       getTransactionManager()
           .getTransaction(getDefinition(TransactionDefinition.ISOLATION_READ_COMMITTED, false));
   try {
     result = massmailStatisticDAO.deleteMassMailFilter(massmailID, scheduleID);
     result = massmailStatisticDAO.insertMassMailFilter(massmailID, scheduleID);
     getTransactionManager().commit(status);
   } catch (Exception e) {
     getTransactionManager().rollback(status);
     logger.error(e);
   }
   return result;
 }