Exemplo n.º 1
0
 public long addTPersonBorrower(TPersonBorrower tPersonBorrower, TJobBorrower tJobBorrower) {
   long result = tPersonBorrowerDao.insert(tPersonBorrower);
   if (result <= 0) {
     throw new ZeroSQLException();
   }
   tJobBorrower.setPersonBorrowerId(tPersonBorrower.getId());
   result = tJobBorrowerDao.insert(tJobBorrower);
   if (result <= 0) {
     throw new ZeroSQLException();
   }
   return result;
 }
Exemplo n.º 2
0
 public long updateTPersonBorrower(TPersonBorrower tPersonBorrower, TJobBorrower tJobBorrower) {
   long result = tPersonBorrowerDao.update(tPersonBorrower);
   if (result <= 0) {
     throw new ZeroSQLException();
   }
   TJobBorrower tJobBorrowerModel =
       tJobBorrowerDao.getTJobBorrowerByPersonId(tPersonBorrower.getId());
   tJobBorrower.setId(tJobBorrowerModel.getId());
   result = tJobBorrowerDao.update(tJobBorrower);
   if (result <= 0) {
     throw new ZeroSQLException();
   }
   return result;
 }
Exemplo n.º 3
0
 public int inserttPersonBorrower(TPersonBorrower tPersonBorrower) {
   return tPersonBorrowerDao.insert(tPersonBorrower);
 }
Exemplo n.º 4
0
 public PageList queryTPersonBorrowerPage(
     TPersonBorrower tPersonBorrower, Map<String, SearchOperator> options, PageBounds pageBounds) {
   return (PageList) tPersonBorrowerDao.getAllBy(tPersonBorrower, options, pageBounds);
 }
Exemplo n.º 5
0
 public TPersonBorrower getTPersonBorrower(TPersonBorrower tPersonBorrower) {
   return tPersonBorrowerDao.get(tPersonBorrower);
 }