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.sms.gateway.service.impl.SmsActivityServiceImpl.java
@Override @Transactional(readOnly = true, propagation = Propagation.SUPPORTS, isolation = Isolation.REPEATABLE_READ, timeout = 50) public List<SmsActivity> getListBySendDate(Date date) throws Exception { // return this.smsActivityDao.getListBySendDate(date); return this.smsActivityDao.getAllByLucenSendDate(date); }
From source file:it.geosdi.era.server.dao.hibernate.DAOUtenteHibernate.java
@SuppressWarnings("unchecked") @Transactional(propagation = Propagation.SUPPORTS) public Utente findById(Long userId) throws DAOException { try {//from w ww .j a v a 2 s . c om List<Utente> userList = getSession().createCriteria(Utente.class).add(Restrictions.idEq(userId)).list(); if (userList.size() > 0) return userList.get(0); } catch (HibernateException e) { throw new DAOException(e); } return null; }
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 getTotalLoginThisMonth() throws Exception { Date firtsMonth = null;//from ww w . ja va2 s . c o m try { String bulanTahun = DateFormatter.getDateAsStringsDefaultLocale(new Date(), CommonUtilConstant.DEFAULT_ONLY_YEAR_AND_MONTH_SHORT_FORMAT); firtsMonth = DateFormatter.getDateWithDefaultLocale("01-" + bulanTahun, CommonUtilConstant.DEFAULT_DATE_SHORT_PATTERN); } catch (ParseException ex) { LOGGER.error("Error", ex); } return this.loginHistoryDao.getTotalLoginByParam(firtsMonth, new Date()); }
From source file:com.inkubator.hrm.service.impl.WtScheduleShiftServiceImpl.java
@Override @Transactional(readOnly = true, isolation = Isolation.READ_COMMITTED, propagation = Propagation.SUPPORTS, timeout = 30) public Long getTotalWtScheduleShiftByParam(Long workingGroupId) throws Exception { return this.wtScheduleShiftDao.getTotalWtScheduleShiftByParam(workingGroupId); }
From source file:edu.northwestern.bioinformatics.studycalendar.service.SubjectService.java
/** * Derives scheduled events from the given planned event and applies them to the given scheduled studySegment. * <p>/* w ww . j av a 2 s .co m*/ * The input plannedActivity should already match the provided sourceAmendment. */ @Transactional(propagation = Propagation.SUPPORTS) public void schedulePlannedActivity(PlannedActivity plannedActivity, Period period, Amendment sourceAmendment, String reason, ScheduledStudySegment targetStudySegment) { // TODO: this seems to be ignoring the PA's population. Examine and determine whether this is a bug. RMS20080919. schedulePlannedActivity(plannedActivity, period, sourceAmendment, reason, null, targetStudySegment); }
From source file:org.jrecruiter.service.impl.JobServiceImpl.java
/** {@inheritDoc} */ @Override/*from w w w. ja v a 2 s . com*/ @Transactional(readOnly = true, propagation = Propagation.SUPPORTS) public List<Configuration> getJRecruiterSettings() { return configurationDao.getAll(); }
From source file:com.inkubator.sms.gateway.service.impl.ModemDefinitionServiceImpl.java
@Override @Transactional(readOnly = true, isolation = Isolation.REPEATABLE_READ, propagation = Propagation.SUPPORTS, timeout = 50) public List<ModemDefinition> getAllByFullText(String param) throws Exception { return this.modemDefinitionDao.getAllByFullText(param); }
From source file:se.vgregion.dao.domain.patterns.repository.db.jpa.AbstractJpaRepository.java
/** * {@inheritDoc}/*from ww w . j a v a2 s .c o m*/ */ @SuppressWarnings("unchecked") @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) public Collection<T> findByAttribute(String attributeName, Object value) { try { return entityManager .createQuery( "select e from " + type.getSimpleName() + " e where e." + attributeName + " = :attr") .setParameter("attr", value).getResultList(); } catch (NoResultException e) { return null; } }
From source file:com.inkubator.sms.gateway.service.impl.TaskDefinitionServiceImpl.java
@Override @Transactional(readOnly = true, isolation = Isolation.READ_COMMITTED, propagation = Propagation.SUPPORTS, timeout = 30) public Integer getTotalByFullTextService(String parameter) throws Exception { return this.taskDefinitionDao.getTotalByFullTextService(parameter); }