Esempio n. 1
0
 /*
  * (non-Javadoc)
  *
  * @see
  * com.pfchoice.core.service.HospitalService#update(com.pfchoice.core.entity
  * .Hospital)
  */
 @Override
 public Hospital update(final Hospital bean) {
   Updater<Hospital> updater = new Updater<>(bean, Updater.UpdateMode.MAX);
   updater.exclude("createdBy");
   updater.exclude("createdDate");
   return hospitalDao.updateByUpdater(updater);
 }
Esempio n. 2
0
 /*
  * (non-Javadoc)
  *
  * @see com.pfchoice.core.service.HospitalService#getPage(int, int,
  * java.lang.String, java.lang.String, java.lang.String)
  */
 @Override
 @Transactional(readOnly = true)
 public Pagination getPage(
     final int pageNo,
     final int pageSize,
     final String sSearch,
     final String sort,
     final String sortdir) {
   return hospitalDao.getPage(pageNo, pageSize, sSearch, sort, sortdir);
 }
Esempio n. 3
0
 /*
  * (non-Javadoc)
  *
  * @see
  * com.pfchoice.core.service.HospitalService#save(com.pfchoice.core.entity.
  * Hospital)
  */
 @Override
 public Hospital save(final Hospital bean) {
   return hospitalDao.save(bean);
 }
Esempio n. 4
0
 /*
  * (non-Javadoc)
  *
  * @see com.pfchoice.core.service.HospitalService#getPage(int, int)
  */
 @Override
 @Transactional(readOnly = true)
 public Pagination getPage(final int pageNo, final int pageSize) {
   return hospitalDao.getPage(pageNo, pageSize);
 }
Esempio n. 5
0
 /*
  * (non-Javadoc)
  *
  * @see
  * com.pfchoice.core.service.HospitalService#findById(java.lang.Integer)
  */
 @Override
 @Transactional(readOnly = true)
 public Hospital findById(final Integer id) {
   return hospitalDao.findById(id);
 }
Esempio n. 6
0
 /*
  * (non-Javadoc)
  *
  * @see
  * com.pfchoice.core.service.HospitalService#deleteById(java.lang.Integer)
  */
 @Override
 public Hospital deleteById(final Integer id) {
   return hospitalDao.deleteById(id);
 }
Esempio n. 7
0
 /*
  * (non-Javadoc)
  *
  * @see com.pfchoice.core.service.HospitalService#findByName(java.lang.
  * String)
  */
 @Override
 public Hospital findByName(String hospitalName) {
   Hospital hospital = hospitalDao.findByName(hospitalName);
   return hospital;
 }
Esempio n. 8
0
 /*
  * (non-Javadoc)
  *
  * @see
  * com.pfchoice.core.service.HospitalService#loadData(java.lang.Integer)
  */
 @Override
 public Integer loadData(final Integer fileId) {
   return hospitalDao.loadData(fileId);
 }