示例#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);
 }
示例#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);
 }
示例#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);
 }
示例#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);
 }
示例#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);
 }
示例#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);
 }
示例#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;
 }
示例#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);
 }