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.netsteadfast.greenstep.base.service.BaseService.java
@ServiceMethodAuthority(type = { ServiceMethodType.SELECT }) @Transactional(isolation = Isolation.READ_COMMITTED, timeout = 25, readOnly = true) public long countByParams(Map<String, Object> params) throws ServiceException, Exception { return countByParams(params, null); }
From source file:com.netsteadfast.greenstep.base.service.BaseService.java
/** * map ???select//from ww w . j a v a2 s .co m * * map key persisent obj ??? * map value persisent obj ? * * likeParams value '%test%' 'test%' * * @param params * @param likeParams * @return * @throws Exception */ @ServiceMethodAuthority(type = { ServiceMethodType.SELECT }) @Transactional(propagation = Propagation.REQUIRES_NEW, isolation = Isolation.READ_COMMITTED, timeout = 25, readOnly = true) public List<E> findListByParams(Map<String, Object> params, Map<String, String> likeParams) throws ServiceException, Exception { // No Session found for current thread REQUIRES_NEW return (List<E>) this.getBaseDataAccessObject().findListByParams(params, likeParams, null); }
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 deleteAllData() throws Exception { tempAttendanceRealizationDao.deleteAllData(); }
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 TempAttendanceRealizationViewModel calculateEmpTempAttendanceRealization(Long empDataId, Long wtPeriodId) throws Exception { TempAttendanceRealizationViewModel tempAttendanceRealizationViewModel = new TempAttendanceRealizationViewModel(); EmpData empData = empDataDao.getByEmpIdWithDetail(empDataId); String religionCode = empData.getBioData().getReligion().getCode(); WtGroupWorking wtGroupWorking = wtGroupWorkingDao.getEntiyByPK(empData.getWtGroupWorking().getId()); WtPeriode wtPeriode = wtPeriodeDao.getEntiyByPK(wtPeriodId); List<MedicalCare> listMedicalCares = medicalCareDao .getListWhereStartDateBetweenDateFromAndDateUntillByEmpId(empDataId, wtPeriode.getFromPeriode(), wtPeriode.getUntilPeriode()); List<ImplementationOfOverTime> listImplementationOfOverTime = implementationOfOverTimeDao .getAllEmpOtImplBetweenStartDateAndEndDate(empDataId, wtPeriode.getFromPeriode(), wtPeriode.getUntilPeriode()); List<LeaveImplementation> listLeaveImplementation = leaveImplementationDao .getListByStartDateBetweenDateAndEmpId(empDataId, wtPeriode.getFromPeriode(), wtPeriode.getUntilPeriode()); List<PermitImplementation> listPermitImplementation = permitImplementationDao .getListByStartDateBetweenDateAndEmpId(empDataId, wtPeriode.getFromPeriode(), wtPeriode.getUntilPeriode()); List<BusinessTravel> listBusinessTravel = businessTravelDao.getListByStartDateBetweenDateAndEmpIdAndNotOff( empDataId, wtPeriode.getFromPeriode(), wtPeriode.getUntilPeriode()); Integer attendanceDaysSchedule = this.getTotalWorkingDaysBetween(empDataId, wtPeriode.getFromPeriode(), wtPeriode.getUntilPeriode()); Integer attendanceDaysPresent = tempProcessReadFingerDao.getEmpTotalAttendanceBetweenDateFromAndDateUntill( empDataId, wtPeriode.getFromPeriode(), wtPeriode.getUntilPeriode()).intValue(); Integer sick = calculateAndCheckTotalSick(listMedicalCares, wtPeriode.getFromPeriode(), wtPeriode.getUntilPeriode(), empDataId); Integer leave = calculateAndCheckTotalLeave(listLeaveImplementation, wtPeriode.getFromPeriode(), wtPeriode.getUntilPeriode(), empDataId); Integer permit = calculateAndCheckTotalPermit(listPermitImplementation, wtPeriode.getFromPeriode(), wtPeriode.getUntilPeriode(), empDataId); Integer duty = calculateAndCheckTotalDuty(listBusinessTravel, wtPeriode.getFromPeriode(), wtPeriode.getUntilPeriode(), empDataId); Float overtime = calculateAndCheckTotalOverTime(listImplementationOfOverTime, wtPeriode, empDataId, religionCode);//ww w . j a va 2s . c om tempAttendanceRealizationViewModel.setId(Long.parseLong(RandomNumberUtil.getRandomNumber(9))); tempAttendanceRealizationViewModel.setAbsenStatus(HRMConstant.WT_PERIOD_STATUS_ACTIVE); tempAttendanceRealizationViewModel.setAttendanceDaysPresent(attendanceDaysPresent); tempAttendanceRealizationViewModel.setAttendanceDaysSchedule(attendanceDaysSchedule); tempAttendanceRealizationViewModel.setDuty(duty); tempAttendanceRealizationViewModel.setEmpId(empDataId); tempAttendanceRealizationViewModel.setEmpName(empData.getBioData().getFullName()); tempAttendanceRealizationViewModel.setLeaves(leave); tempAttendanceRealizationViewModel.setNik(empData.getNik()); tempAttendanceRealizationViewModel.setOverTime(overtime); tempAttendanceRealizationViewModel.setPermit(permit); tempAttendanceRealizationViewModel.setSick(sick); tempAttendanceRealizationViewModel.setWtGroupWorkingId(wtGroupWorking.getId()); tempAttendanceRealizationViewModel.setWtGroupWorkingName(wtGroupWorking.getName()); tempAttendanceRealizationViewModel.setWtPeriodId(wtPeriodId); return tempAttendanceRealizationViewModel; }
From source file:com.netsteadfast.greenstep.base.service.BaseService.java
/** * map ???select//from w w w .jav a 2 s. c o m * * map key persisent obj ??? * map value persisent obj ? * * likeParams value '%test%' 'test%' * * orderParams value {"account???", "asc?"} , {"name???", "desc?"} * * @param params * @param likeParams * @return * @throws Exception */ @ServiceMethodAuthority(type = { ServiceMethodType.SELECT }) @Transactional(propagation = Propagation.REQUIRES_NEW, isolation = Isolation.READ_COMMITTED, timeout = 25, readOnly = true) public List<E> findListByParams(Map<String, Object> params, Map<String, String> likeParams, Map<String, String> orderParams) throws ServiceException, Exception { return (List<E>) this.getBaseDataAccessObject().findListByParams(params, likeParams, orderParams); }
From source file:com.netsteadfast.greenstep.base.service.BaseService.java
@ServiceMethodAuthority(type = { ServiceMethodType.SELECT }) @Transactional(propagation = Propagation.REQUIRES_NEW, isolation = Isolation.READ_COMMITTED, timeout = 25, readOnly = true) public List<E> findListByParams(Map<String, Object> params) throws ServiceException, Exception { return findListByParams(params, null); }
From source file:com.netsteadfast.greenstep.base.service.BaseService.java
@ServiceMethodAuthority(type = { ServiceMethodType.SELECT }) @Transactional(propagation = Propagation.REQUIRES_NEW, isolation = Isolation.READ_COMMITTED, timeout = 25, readOnly = true) public List<E> findListByParams2(Map<String, CustomeOperational> customOperParams) throws ServiceException, Exception { return this.getBaseDataAccessObject().findListByParams2(customOperParams); }
From source file:com.inkubator.hrm.service.impl.EmpCareerHistoryServiceImpl.java
@Override @Transactional(readOnly = true, isolation = Isolation.READ_COMMITTED, propagation = Propagation.SUPPORTS, timeout = 30) public Long getTotalListEmpEliminationViewModelByParam(EmpEliminationSearchParameter searchParameter) throws Exception { return empCareerHistoryDao.getTotalListEmpEliminationViewModelByParam(searchParameter); }
From source file:com.netsteadfast.greenstep.base.service.BaseService.java
@ServiceMethodAuthority(type = { ServiceMethodType.SELECT }) @Transactional(propagation = Propagation.REQUIRES_NEW, isolation = Isolation.READ_COMMITTED, timeout = 25, readOnly = true) public List<E> findListByParams2(Map<String, Object> params, Map<String, CustomeOperational> customOperParams) throws ServiceException, Exception { return this.getBaseDataAccessObject().findListByParams2(params, customOperParams); }
From source file:com.netsteadfast.greenstep.base.service.BaseService.java
@ServiceMethodAuthority(type = { ServiceMethodType.SELECT }) @Transactional(propagation = Propagation.REQUIRES_NEW, isolation = Isolation.READ_COMMITTED, timeout = 25, readOnly = true) public List<E> findListByParams2(Map<String, Object> params, Map<String, String> likeParams, Map<String, CustomeOperational> customOperParams) throws ServiceException, Exception { return this.getBaseDataAccessObject().findListByParams2(params, likeParams, customOperParams); }