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.PayTempKalkulasiServiceImpl.java
@Override @Transactional(readOnly = true, isolation = Isolation.READ_COMMITTED, propagation = Propagation.SUPPORTS, timeout = 30) public Long getTotalData() throws Exception { return payTempKalkulasiDao.getTotalData(); }
From source file:com.inkubator.hrm.service.impl.OhsaIncidentDocumentServiceImpl.java
@Override @Transactional(readOnly = true, isolation = Isolation.REPEATABLE_READ, propagation = Propagation.SUPPORTS, timeout = 30) public OhsaIncidentDocument getEntityByPKWithDetail(Integer id) { return ohsaIncidentDocumentDao.getEntityByPKWithDetail(id); }
From source file:com.inkubator.hrm.service.impl.PasswordComplexityServiceImpl.java
@Override @Transactional(readOnly = true, propagation = Propagation.SUPPORTS, isolation = Isolation.READ_COMMITTED, rollbackFor = Exception.class) public PasswordComplexity getByCode(String code) throws Exception { return this.passwordComplexityDao.getByCode(code); }
From source file:se.vgregion.dao.domain.patterns.repository.db.jpa.AbstractJpaRepository.java
/** * {@inheritDoc}/* w w w .j a va 2 s . c o m*/ */ @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) public T findInstanceByNamedQuery(String queryName, Map<String, ? extends Object> args) { Query namedQuery = entityManager.createNamedQuery(queryName); if (args != null) { for (Map.Entry<String, ? extends Object> entry : args.entrySet()) { // will throw IllegalArgumentException if parameter name not // found or value is incorrect type namedQuery.setParameter(entry.getKey(), entry.getValue()); } } try { @SuppressWarnings("unchecked") T result = (T) namedQuery.getSingleResult(); return result; } catch (NoResultException nre) { 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 getToalLoginThisYear() throws Exception { String tahun = DateFormatter.getDateAsStringsDefaultLocale(new Date(), CommonUtilConstant.DEFAULT_ONLY_YEAR_FORMAT); Date firtsYear = null;//from w w w. j av a 2s . co m try { firtsYear = DateFormatter.getDateWithDefaultLocale("01-01-" + tahun, CommonUtilConstant.DEFAULT_DATE_SHORT_PATTERN); } catch (ParseException ex) { LOGGER.error("Error", ex); } return this.loginHistoryDao.getTotalLoginByParam(firtsYear, new Date()); }
From source file:it.geosdi.era.server.dao.hibernate.DAOUtenteHibernate.java
@SuppressWarnings("unchecked") @Transactional(propagation = Propagation.SUPPORTS) public Utente inizializzaUtentiProgetto(Utente utente) throws DAOException { try {/*from w w w. ja va 2s . c o m*/ Session session = getSession(); Query query = session.createQuery( "select utente from Utente utente left join fetch utente.utentiProgetto where utente.id = ?"); query.setLong(0, utente.getId()); List<Utente> listaUtenti = query.list(); if (listaUtenti.size() != 0) return listaUtenti.get(0); } catch (HibernateException e) { throw new DAOException(e); } return null; }
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 getTotalEmpCareerHistoryDataByParamReport(ReportEmpMutationParameter searchParameter) { return this.empCareerHistoryDao.getTotalEmpCareerHistoryDataByParamReport(searchParameter); }
From source file:com.inkubator.hrm.service.impl.LogWtAttendanceRealizationServiceImpl.java
@Override @Transactional(readOnly = true, isolation = Isolation.REPEATABLE_READ, propagation = Propagation.SUPPORTS, timeout = 50) public List<TempAttendanceRealizationViewModel> getListTempAttendanceRealizationViewModelByWtPeriodId( WtAttendanceCalculationSearchParameter searchParameter, Long wtPeriodId, int firstResult, int maxResults, Order orderable) throws Exception { WtPeriode wtPeriode = wtPeriodeDao.getEntiyByPK(wtPeriodId); List<TempAttendanceRealizationViewModel> listTempAttendanceRealizationViewModel = logWtAttendanceRealizationDao .getListTempAttendanceRealizationViewModelByWtPeriodId(searchParameter, wtPeriodId, firstResult, maxResults, orderable); for (TempAttendanceRealizationViewModel tempModel : listTempAttendanceRealizationViewModel) { tempModel.setAbsenStatus(wtPeriode.getAbsen()); }//from w w w . j a v a2 s.c om return listTempAttendanceRealizationViewModel; }
From source file:com.inkubator.hrm.service.impl.WtScheduleShiftServiceImpl.java
@Override @Transactional(readOnly = true, isolation = Isolation.REPEATABLE_READ, propagation = Propagation.SUPPORTS, timeout = 50) public List<WtScheduleShift> getByParam(Long workingGroupId, int firstResult, int maxResults, Order order) throws Exception { return this.wtScheduleShiftDao.getByParam(workingGroupId, firstResult, maxResults, order); }
From source file:com.inkubator.sms.gateway.service.impl.TaskDefinitionServiceImpl.java
@Override @Transactional(readOnly = true, isolation = Isolation.REPEATABLE_READ, propagation = Propagation.SUPPORTS, timeout = 50) public List<TaskDefinition> getAllByFullTextService(String parameter, int minResult, int maxResult, Order order) throws Exception { return this.taskDefinitionDao.getAllByFullTextService(parameter, minResult, maxResult, order); }