List of usage examples for org.springframework.transaction.annotation Propagation SUPPORTS
Propagation SUPPORTS
To view the source code for org.springframework.transaction.annotation Propagation SUPPORTS.
Click Source Link
From source file:com.inkubator.hrm.service.impl.MecineFingerServiceImpl.java
@Override @Transactional(readOnly = true, isolation = Isolation.READ_COMMITTED, propagation = Propagation.SUPPORTS, timeout = 50) public List<MecineFinger> getAllData() throws Exception { return mecineFingerDao.getAllData(); }
From source file:com.inkubator.hrm.service.impl.EmpCareerHistoryServiceImpl.java
@Override @Transactional(readOnly = true, isolation = Isolation.REPEATABLE_READ, propagation = Propagation.SUPPORTS, timeout = 50) public List<EmpCareerHistory> getByParamReport(ReportEmpMutationParameter searchParameter, int firstResult, int maxResults, Order order) { return this.empCareerHistoryDao.getByParamReport(searchParameter, firstResult, maxResults, order); }
From source file:com.inkubator.hrm.service.impl.OhsaIncidentDocumentServiceImpl.java
@Override @Transactional(readOnly = true, isolation = Isolation.REPEATABLE_READ, propagation = Propagation.SUPPORTS, timeout = 50) public List<OhsaIncidentDocument> getListByOhsaIncidentId(Long ohsaIncidentId) { return ohsaIncidentDocumentDao.getListByOhsaIncidentId(ohsaIncidentId); }
From source file:es.upm.fiware.rss.expenditureLimit.processing.test.ProcessingLimitServiceTest.java
/** * /*from www . j a va 2 s . c om*/ * Check that not existing control are created. */ @Transactional(propagation = Propagation.SUPPORTS) public void creationControls() { try { DbeTransaction tx = ProcessingLimitServiceTest.generateTransaction(); // Set user for testing tx.setTxEndUserId("userForCreation"); List<DbeExpendControl> controls = controlService.getExpendDataForUserAppProvCurrency( tx.getTxEndUserId(), tx.getAppProvider().getId().getAggregator().getTxEmail(), tx.getAppProvider().getId().getTxAppProviderId(), tx.getBmCurrency()); Assert.assertTrue(controls.isEmpty()); // Update limits. DefaultTransactionDefinition def = new DefaultTransactionDefinition(); def.setPropagationBehavior(TransactionDefinition.PROPAGATION_REQUIRES_NEW); TransactionStatus status = transactionManager.getTransaction(def); limitService.proccesLimit(tx); transactionManager.commit(status); controls = controlService.getExpendDataForUserAppProvCurrency(tx.getTxEndUserId(), tx.getAppProvider().getId().getAggregator().getTxEmail(), tx.getAppProvider().getId().getTxAppProviderId(), tx.getBmCurrency()); Assert.assertNotNull(controls); Assert.assertTrue(controls.size() == 3); // All the new control have to be set to 0 for (DbeExpendControl control : controls) { Assert.assertTrue(control.getFtExpensedAmount().compareTo(new BigDecimal(0)) == 0); } ProcessingLimitServiceTest.logger.debug("Controls:" + controls.size()); } catch (RSSException e) { ProcessingLimitServiceTest.logger.debug("Error: " + e.getMessage()); } }
From source file:com.inkubator.hrm.service.impl.LoginHistoryServiceImpl.java
@Override @Transactional(readOnly = true, propagation = Propagation.SUPPORTS, isolation = Isolation.READ_COMMITTED, timeout = 30) public Long getTotalLogin() throws Exception { return this.loginHistoryDao.getTotalLogin(); }
From source file:com.inkubator.hrm.service.impl.TempAttendanceRealizationServiceImpl.java
@Override @Transactional(readOnly = true, isolation = Isolation.READ_COMMITTED, propagation = Propagation.SUPPORTS, timeout = 30) public Long getTotalTempAttendanceRealizationByParam(TempAttendanceRealizationSearchParameter searchParameter) throws Exception { return this.tempAttendanceRealizationDao.getTotalTempAttendanceRealizationByParam(searchParameter); }
From source file:com.inkubator.hrm.service.impl.ProscessToApproveServiceImpl.java
@Override @Transactional(readOnly = true, isolation = Isolation.READ_COMMITTED, propagation = Propagation.SUPPORTS, timeout = 30) public Long getTotalLoginHistoryByParam(ProscessToApproveSearchParameter searchParameter) throws Exception { return this.proscessToApproveDao.getTotalLoginHistoryByParam(searchParameter); }
From source file:edu.northwestern.bioinformatics.studycalendar.service.SubjectService.java
@Transactional(propagation = Propagation.SUPPORTS) protected void schedulePeriod(Period period, Amendment sourceAmendment, String reason, Population restrictToPopulation, ScheduledStudySegment targetStudySegment, int repetitionNumber) { log.debug("Adding events for rep {} from period {}", repetitionNumber, period); for (PlannedActivity plannedActivity : period.getPlannedActivities()) { schedulePlannedActivity(plannedActivity, period, sourceAmendment, reason, restrictToPopulation, targetStudySegment, repetitionNumber); }/*from ww w . jav a 2 s . c o m*/ }
From source file:org.jrecruiter.service.impl.JobServiceImpl.java
/** {@inheritDoc} */ @Override/* www .j a v a2s . c o m*/ @Transactional(readOnly = true, propagation = Propagation.SUPPORTS) public List<Job> searchByKeyword(final String keyword) { return jobDao.searchByKeyword(keyword); }
From source file:com.inkubator.hrm.service.impl.BioSertifikasiServiceImpl.java
@Override @Transactional(readOnly = true, isolation = Isolation.REPEATABLE_READ, propagation = Propagation.SUPPORTS, timeout = 50) public List<BioSertifikasi> getAllDataByBioDataId(Long bioDataId) { return this.bioSertifikasiDao.getAllDataByBioDataId(bioDataId); }