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:org.jrecruiter.service.impl.JobServiceImpl.java
/** {@inheritDoc} */ @Override//from www . j av a2s .c o m @Transactional(readOnly = true, propagation = Propagation.SUPPORTS) public List<Job> getJobs(Integer pageSize, Integer pageNumber, Map<String, String> sortOrders, Map<String, String> jobFilters) { return jobDao.getJobs(pageSize, pageNumber, sortOrders, jobFilters); }
From source file:com.bsb.cms.moss.service.impl.auth.SysRoleServiceImpl.java
/** * ??//w w w . j a v a 2 s .c o m * * @param roleId * @param sysModelIds * @param creator */ @Transactional(propagation = Propagation.SUPPORTS) private void insertRoleModel(Long roleId, String[] sysModelIds, String creator) { SysRoleModel sysRoleModel; for (String sysModelId : sysModelIds) { sysRoleModel = new SysRoleModel(Long.valueOf(sysModelId), roleId, creator); sysRoleModelMapper.insert(sysRoleModel); } }
From source file:it.scoppelletti.programmerpower.security.DefaultUserManager.java
@Transactional(propagation = Propagation.SUPPORTS) public String digestPassword(SecureString value) { return DigestUtils.sha256Hex(value.getBytes()); }
From source file:com.oak_yoga_studio.dao.impl.CustomerDAOImpl.java
@Transactional(propagation = Propagation.SUPPORTS) @Override// w w w .ja va 2 s . c o m public List<Waiver> getAllWaiversByCustomer(Customer customer) { List<Waiver> waivers; Query query = sf.getCurrentSession().createQuery(" from Waiver where customer=:customer"); query.setParameter("customer", customer); waivers = query.list(); System.out.println("Waivers length is " + waivers.size()); return waivers; }
From source file:es.upm.fiware.rss.expenditureLimit.manager.test.BalanceAccumulateManagerTest.java
/** * //from w w w.j a v a2s .c o m */ @Transactional(propagation = Propagation.SUPPORTS) public void checkUserBalance() throws RSSException { BalanceAccumulateManagerTest.logger.debug("Into checkUserBalance method."); thrown.expect(RSSException.class); thrown.expectMessage("Insufficient payment method balance"); ExpendControl control = generateExpendControl(); AccumsExpend result = balanceAccumulateManager.checkUserBalance(endUserId, control); Assert.assertNotNull(result); Assert.assertTrue(result.getAccums().size() > 0); control.setAmount(new BigDecimal(1000)); result = balanceAccumulateManager.checkUserBalance(endUserId, control); }
From source file:net.longfalcon.newsj.TVRageService.java
@Transactional(propagation = Propagation.SUPPORTS) public void processTvReleases(boolean lookupTvRage) { List<Category> movieCats = categoryDAO.findByParentId(CategoryService.CAT_PARENT_TV); List<Integer> ids = new ArrayList<>(); for (Category category : movieCats) { ids.add(category.getId());/* w w w . j a v a2 s . c om*/ } List<Release> releases = releaseDAO.findReleasesByRageIdAndCategoryId(-1, ids); if (!releases.isEmpty()) { _log.info("Processing tv for " + releases.size() + " releases"); if (lookupTvRage) { _log.info("Looking up tv info from the web"); } } for (Release release : releases) { ShowInfo showInfo = parseNameEpSeason(release.getName()); if (showInfo != null) { // update release with season, ep, and airdate info (if available) from releasetitle updateEpInfo(showInfo, release); // find the trakt ID long traktId = 0; String cleanName = showInfo.getCleanName(); try { _log.info("looking up " + cleanName + " in db"); traktId = getByTitle(cleanName); } catch (Exception e) { _log.error("unable to find tvinfo for " + cleanName + " - " + e.toString(), e); } if (traktId < 0 && traktId > -2 && lookupTvRage) { // if it doesnt exist locally and lookups are allowed lets try to get it _log.info("didnt find trakt id for \"" + cleanName + "\" in local db, checking web..."); traktId = getTraktMatch(showInfo); if (traktId > 0) { updateRageInfo(traktId, showInfo, release); } else { // no match //add to tvrage with rageID = -2 and cleanName title only _log.info("no trakt data found for " + cleanName + " - adding placeholder"); TvRage tvRage = new TvRage(); tvRage.setRageId(-2); tvRage.setTraktId((long) -2); tvRage.setReleaseTitle(cleanName); tvRage.setCreateDate(new Date()); tvRage.setDescription(""); tvRageDAO.update(tvRage); release.setRageId(tvRage.getId()); } } else if (traktId > 0) { if (lookupTvRage) { // update airdate and ep title updateEpisodeInfo(traktId, showInfo.getSeason(), showInfo.getEpisode(), release); } TvRage tvRage = tvRageDAO.findByTvTraktId(traktId); release.setRageId(tvRage.getId()); } } else { // not a tv episode, so set rageid to n/a release.setRageId((long) -2); } releaseDAO.updateRelease(release); } }
From source file:com.oak_yoga_studio.service.impl.FacultyServiceImpl.java
@Transactional(propagation = Propagation.SUPPORTS) @Override// w w w.j a va 2s . co m public List<Section> getFacultySections(Faculty faculty) { try { faculty = facultyDAO.getFaculty(faculty.getId()); System.out.println("Section Size" + faculty.getSections().size()); return faculty.getSections(); } catch (Exception e) { return new ArrayList(); } }
From source file:es.upm.fiware.rss.expenditureLimit.server.test.ExpenditureLimitServerTest.java
/** * /* w w w .ja va 2s . c o m*/ * @throws Exception */ @Transactional(propagation = Propagation.SUPPORTS) public void getUserExpLimits() throws Exception { Response response = server.getUserExpLimits(aggregator, appProvider, userId, service, currency, type); Assert.assertEquals(200, response.getStatus()); }
From source file:es.upm.fiware.rss.expenditureLimit.server.test.BalanceAccumulatedServerTest.java
/** * //ww w .java 2 s . co m * @throws Exception */ @Transactional(propagation = Propagation.SUPPORTS) public void checkUserBalance() throws Exception { ExpendControl expendControl = generateExpendControl(); Response response = server.checkUserBalance("endUserId", expendControl); Assert.assertEquals(201, response.getStatus()); }
From source file:org.apigw.authserver.svc.impl.CertifiedClientDetailsServiceImpl.java
@Override @Transactional(propagation = Propagation.SUPPORTS) public List<CertifiedClient> findAllClients() { return certifiedClientRepository.findAll(new Sort(Sort.Direction.ASC, "clientId")); }