コード例 #1
0
 public void deleteSaleExpense(int seq) throws IOException {
   // ATTENTION: STUB CODE, MUST MODIFY, DELETE THIS LINE WHEN DONE
   try {
     transaction.begin();
     saleExpenseDao.deleteSaleExpense(transaction, seq);
     transaction.commit();
   } catch (IOException e) {
     transaction.rollback();
     throw e;
   }
 }
コード例 #2
0
 public List<SaleExpenseDto> getBySalepersonId(String id) throws IOException {
   // TODO: STUB CODE, MUST MODIFY, DELETE THIS LINE WHEN DONE
   try {
     transaction.begin();
     List<SaleExpenseDto> all = saleExpenseDao.getBySalepersonId(transaction, id);
     transaction.commit();
     return all;
   } catch (IOException e) {
     transaction.rollback();
     throw e;
   }
 }
コード例 #3
0
 public int getSeq() throws IOException {
   // TODO: STUB CODE, MUST MODIFY, DELETE THIS LINE WHEN DONE
   try {
     transaction.begin();
     int seq = saleExpenseDao.getSeq(transaction);
     transaction.commit();
     return seq;
   } catch (IOException e) {
     transaction.rollback();
     throw e;
   }
 }
コード例 #4
0
 public SaleExpenseDto getSaleExpenseById(int seq) throws IOException {
   // ATTENTION: STUB CODE, MUST MODIFY, DELETE THIS LINE WHEN DONE
   try {
     transaction.begin();
     SaleExpenseDto result = saleExpenseDao.getSaleExpenseById(transaction, seq);
     transaction.commit();
     return result;
   } catch (IOException e) {
     transaction.rollback();
     throw e;
   }
 }