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.HrmRoleServiceImpl.java
@Override @Transactional(readOnly = true, isolation = Isolation.READ_COMMITTED, propagation = Propagation.SUPPORTS, timeout = 30) public Long getTotalHrmRoleByParam(HrmRoleSearchParameter searchParameter) throws Exception { return this.hrmRoleDao.getTotalHrmRoleByParam(searchParameter); }
From source file:com.inkubator.hrm.service.impl.TempAttendanceRealizationServiceImpl.java
@Override @Transactional(readOnly = true, isolation = Isolation.REPEATABLE_READ, propagation = Propagation.SUPPORTS, timeout = 50) public List<TempAttendanceRealization> getByParam(TempAttendanceRealizationSearchParameter searchParameter, int firstResult, int maxResults, Order order) throws Exception { return this.tempAttendanceRealizationDao.getByParam(searchParameter, firstResult, maxResults, order); }
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> getEmployeeCareerByBioId(long id) throws Exception { return this.empCareerHistoryDao.getEmployeeCareerByBioId(id); }
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 getTotalLoginHistoryByParam(LoginHistorySearchParameter searchParameter) throws Exception { return this.loginHistoryDao.getTotalLoginHistoryByParam(searchParameter); }
From source file:es.tid.fiware.rss.expenditureLimit.processing.test.ProcessingLimitServiceTest.java
/** * /*from w w w.j a va2 s . co m*/ * Check that not existing control are created. */ @Test @Transactional(propagation = Propagation.SUPPORTS) public void creationControls() { try { DbeTransaction tx = ProcessingLimitServiceTest.generateTransaction(); // Set user for testing tx.setTxEndUserId("userForCreation"); List<DbeExpendControl> controls = controlService.getExpendDataForUserAppProvCurrencyObCountry( tx.getTxEndUserId(), tx.getBmService(), tx.getTxAppProvider(), tx.getBmCurrency(), tx.getBmObMop().getBmObCountry()); Assert.assertTrue(controls.size() == 0); // 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.getExpendDataForUserAppProvCurrencyObCountry(tx.getTxEndUserId(), tx.getBmService(), tx.getTxAppProvider(), tx.getBmCurrency(), tx.getBmObMop().getBmObCountry()); 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.ProscessToApproveServiceImpl.java
@Override @Transactional(readOnly = true, isolation = Isolation.REPEATABLE_READ, propagation = Propagation.SUPPORTS, timeout = 50) public List<ProscessToApprove> getByParam(ProscessToApproveSearchParameter searchParameter, int firstResult, int maxResults, Order order) throws Exception { return this.proscessToApproveDao.getByParam(searchParameter, firstResult, maxResults, order); }
From source file:org.jrecruiter.service.impl.JobServiceImpl.java
/** {@inheritDoc} */ @Override//from ww w .j a v a2s .c o m @Transactional(readOnly = true, propagation = Propagation.SUPPORTS) public Job getJobForId(final Long jobId) { return jobDao.get(jobId); }
From source file:es.upm.fiware.rss.expenditureLimit.manager.test.ExpenditureLimitManagerTest.java
/** * /*from www. java 2 s . c o m*/ */ @Transactional(propagation = Propagation.SUPPORTS) public void deleteGeneralUserExpLimits() throws RSSException { ExpenditureLimitManagerTest.logger.debug("Into deleteGeneralUserExpLimits method"); elManager.deleteUserLmits(aggregator, appProvider, userId, service, currency, type); ExpenditureLimitManagerTest.logger.debug("No exception produced"); }
From source file:edu.northwestern.bioinformatics.studycalendar.service.SubjectService.java
/** * Derives one repetition's worth of scheduled events from the given period and applies them to * the given scheduled studySegment./* ww w . j av a 2 s . c o m*/ * <p> * The input period should already match the provided sourceAmendment. */ @Transactional(propagation = Propagation.SUPPORTS) public void schedulePeriod(Period period, Amendment sourceAmendment, String reason, ScheduledStudySegment targetStudySegment, int repetitionNumber) { schedulePeriod(period, sourceAmendment, reason, null, targetStudySegment, repetitionNumber); }
From source file:com.ibm.asset.trails.service.impl.ReconWorkspaceServiceImpl.java
@Transactional(readOnly = true, propagation = Propagation.SUPPORTS) public void reconCustomerOwned(Account account, String remoteUser, List<ReconWorkspace> selectedList, Recon pRecon, String runon, boolean automated, boolean manual, String comments) { log.debug(account.toString() + " " + remoteUser + " " + pRecon.getReconcileType().toString() + " " + runon + " " + automated + " " + manual); String owner = null;//from w w w . j a v a 2 s . c o m // AB added,each time access to the interface, first clear the flag to // avoid of confusing by last time // Story 26012 setScheduleFValResult(null); // I can probably just get rid of this based on selection if (runon.equals("IBMHW")) { owner = "IBM"; reconCustomerOwnedGroup(account, remoteUser, selectedList, pRecon, automated, manual, owner, comments); } else if (runon.equals("CUSTHW")) { owner = "CUSTO"; reconCustomerOwnedGroup(account, remoteUser, selectedList, pRecon, automated, manual, owner, comments); } else if (runon.equals("ALL")) { owner = runon; reconCustomerOwnedGroup(account, remoteUser, selectedList, pRecon, automated, manual, owner, comments); } else if (runon.equals("SELECTED")) { owner = runon; reconCustomerOwnedSelected(account, remoteUser, selectedList, pRecon, automated, manual, owner, comments); } else { return; } }