List of usage examples for org.springframework.transaction.annotation Isolation READ_COMMITTED
Isolation READ_COMMITTED
To view the source code for org.springframework.transaction.annotation Isolation READ_COMMITTED.
Click Source Link
From source file:com.inkubator.hrm.service.impl.PayTempOvertimeServiceImpl.java
@Override @Transactional(readOnly = false, isolation = Isolation.READ_COMMITTED, propagation = Propagation.REQUIRED, rollbackFor = Exception.class) public void delete(PayTempOvertime entity) throws Exception { this.payTempOvertimeDao.delete(entity); }
From source file:com.inkubator.sms.gateway.service.impl.TaskDefinitionServiceImpl.java
@Override @Transactional(readOnly = false, isolation = Isolation.READ_COMMITTED, propagation = Propagation.REQUIRED, rollbackFor = Exception.class) public void delete(TaskDefinition entity) throws Exception { this.taskDefinitionDao.delete(entity); }
From source file:com.inkubator.hrm.service.impl.BioRelasiPerusahaanServiceImpl.java
@Override @Transactional(readOnly = false, isolation = Isolation.READ_COMMITTED, propagation = Propagation.REQUIRED, rollbackFor = Exception.class) public void delete(BioRelasiPerusahaan entity) throws Exception { this.bioRelasiPerusahaanDao.delete(entity); }
From source file:com.inkubator.sms.gateway.service.impl.ModemDefinitionServiceImpl.java
@Override @Transactional(readOnly = false, isolation = Isolation.READ_COMMITTED, propagation = Propagation.REQUIRED, rollbackFor = Exception.class) public void delete(ModemDefinition entity) throws Exception { this.modemDefinitionDao.delete(entity); }
From source file:com.inkubator.hrm.service.impl.TempAttendanceRealizationServiceImpl.java
@Override @Transactional(readOnly = false, isolation = Isolation.READ_COMMITTED, propagation = Propagation.REQUIRED, rollbackFor = Exception.class) public void update(TempAttendanceRealization tempAttendanceRealization) throws Exception { //Uncomment below if u have unik code //long totalDuplicates = tempAttendanceRealizationDao.getTotalByCodeAndNotId(tempAttendanceRealization.getCode(),tempAttendanceRealization.getId()) //if (totalDuplicates > 0) { //throw new BussinessException("tempAttendanceRealization.error_duplicate_code") //}//from ww w . ja v a 2s . c om TempAttendanceRealization tempAttendanceRealization1 = tempAttendanceRealizationDao .getEntiyByPK(tempAttendanceRealization.getId()); // tempAttendanceRealization1.setUpdatedBy(UserInfoUtil.getUserName()); // tempAttendanceRealization1.setUpdatedOn(new Date()); tempAttendanceRealization1.setWtGroupWorking(tempAttendanceRealization.getWtGroupWorking()); tempAttendanceRealization1.setLeave(tempAttendanceRealization.getLeave()); tempAttendanceRealization1.setEmpData(tempAttendanceRealization.getEmpData()); tempAttendanceRealization1.setDuty(tempAttendanceRealization.getDuty()); tempAttendanceRealization1.setAttendanceDaysPresent(tempAttendanceRealization.getAttendanceDaysPresent()); tempAttendanceRealization1.setPermit(tempAttendanceRealization.getPermit()); tempAttendanceRealization1.setAttendanceDaysSchedule(tempAttendanceRealization.getAttendanceDaysSchedule()); tempAttendanceRealization1.setSick(tempAttendanceRealization.getSick()); tempAttendanceRealizationDao.update(tempAttendanceRealization1); }
From source file:com.inkubator.sms.gateway.service.impl.UserServiceImpl.java
@Override @Transactional(readOnly = false, isolation = Isolation.READ_COMMITTED, propagation = Propagation.REQUIRED, rollbackFor = Exception.class) public void delete(SmsGatewayUser entity) throws Exception { userDao.delete(entity);/* w w w .j ava 2 s .c o m*/ }
From source file:com.inkubator.hrm.service.impl.BioDataServiceImpl.java
@Override @Transactional(readOnly = true, isolation = Isolation.READ_COMMITTED, propagation = Propagation.SUPPORTS, timeout = 30) public BioData getEntiyByPK(Long id) throws Exception { BioData bioData = bioDataDao.getEntiyByPK(id); /*bioData.getCity().getCityName(); bioData.getReligion().getName();/*from w ww. j av a 2 s . co m*/ bioData.getMaritalStatus().getName(); bioData.getNationality().getNationalityName(); bioData.getRace().getRaceName(); bioData.getDialect().getDialectName();*/ return bioData; }
From source file:com.inkubator.hrm.service.impl.MecineFingerServiceImpl.java
@Override @Transactional(readOnly = false, isolation = Isolation.READ_COMMITTED, propagation = Propagation.REQUIRED, rollbackFor = Exception.class) public void delete(MecineFinger entity) throws Exception { this.mecineFingerDao.delete(entity); }
From source file:com.inkubator.hrm.service.impl.LoanTypeServiceImpl.java
@Override @Transactional(readOnly = false, isolation = Isolation.READ_COMMITTED, propagation = Propagation.REQUIRED, rollbackFor = Exception.class) public void delete(LoanType t) throws Exception { loanTypeDao.delete(t);//from w w w . jav a 2 s .c om }
From source file:com.inkubator.hrm.service.impl.BioDataServiceImpl.java
@Override @Transactional(readOnly = false, isolation = Isolation.READ_COMMITTED, propagation = Propagation.REQUIRED, rollbackFor = Exception.class) public void save(BioData entity) throws Exception { Long totalDuplicateNpwp = bioDataDao.getTotalByNpwp(entity.getNpwp()); if (totalDuplicateNpwp > 0) { throw new BussinessException("biodata.error_duplicate_npwp"); }//from w w w . j av a2s .c om entity.setCreatedBy(UserInfoUtil.getUserName()); entity.setCreatedOn(new Date()); entity.setCity(this.cityDao.getEntiyByPK(entity.getCity().getId())); entity.setDialect(this.dialectDao.getEntiyByPK(entity.getDialect().getId())); entity.setMaritalStatus(this.maritalStatusDao.getEntiyByPK(entity.getMaritalStatus().getId())); entity.setNationality(nationalityDao.getEntiyByPK(entity.getNationality().getId())); entity.setRace(this.raceDao.getEntiyByPK(entity.getRace().getId())); entity.setReligion(this.religionDao.getEntiyByPK(entity.getReligion().getId())); this.bioDataDao.save(entity); }