List of usage examples for org.springframework.transaction.annotation Propagation REQUIRED
Propagation REQUIRED
To view the source code for org.springframework.transaction.annotation Propagation REQUIRED.
Click Source Link
From source file:uk.ac.ebi.intact.editor.services.reviewer.ReviewerAvailabilityService.java
@Transactional(value = "jamiTransactionManager", readOnly = true, propagation = Propagation.REQUIRED) public Collection<User> loadAllReviewers() { Collection<User> reviewers = getIntactDao().getUserDao().getByRole(Role.ROLE_REVIEWER); for (User user : reviewers) { if (user.getAc() != null) { Hibernate.initialize(user.getPreferences()); Hibernate.initialize(user.getRoles()); }/*from w w w. j a va 2 s. co m*/ } return reviewers; }
From source file:jp.gmo.zcom.ticket.service.impl.BookTicketServiceImpl.java
/** * get list of match//from w w w . j a v a 2 s. c om * * @param stadiumId * @param matchDate * @return list match */ @Transactional(readOnly = true, propagation = Propagation.REQUIRED) @Override public List<MatchDto> getListMatch(Date matchDate) { List<Match> listMatch = bookTicketDao.getListMatch(matchDate); List<MatchDto> listMatchDto = new ArrayList<MatchDto>(); for (Match match : listMatch) { MatchDto matchDto = new MatchDto(); matchDto.setMatchId(match.getMatchId()); matchDto.setMatchName(match.getMatchName()); matchDto.setMatchDate(DateUtils.getDateByFormat(match.getMatchDate(), "dd/MM/yyyy")); matchDto.setMatchTime(match.getMatchTime()); matchDto.setStadium(bookTicketDao.getStadiumById(match.getStadiumId())); listMatchDto.add(matchDto); } return listMatchDto; }
From source file:com.cimpoint.mes.server.repositories.ApplicationRepository.java
@Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class) public EApplication createApplication(String name, String version, String category, String description, ELayout layout, TrxInfo trxInfo) throws Exception { ELayout topLevelLayout = null;//from www .jav a 2 s. co m createLayout(layout, topLevelLayout); if (topLevelLayout == null) topLevelLayout = layout; EApplication e = new EApplication(name, version, category, description, topLevelLayout); this.create(e, trxInfo); return e; }
From source file:org.openhie.openempi.service.KeyManagerService.java
/** * Deletes a key from the keystore. The system locates the key record using the key identifier as a search criteria. If the record is not * found an unchecked exception is thrown to notify the caller that this record does not exist in the system. If the record is found, the record * is voided from the system rather than deleted to preserve a history. * // www .ja v a2 s .c o m * @param keyId: identifier of the Key entity to be deleted */ @Transactional(propagation = Propagation.REQUIRED, readOnly = false) public void deleteKey(long keyId) throws ApplicationException;
From source file:com.crm.earnify.services.org.impl.OrgServiceImpl.java
/** * * @param p_org_entity_to_save_or_update *//*from ww w . jav a 2s . c om*/ @Override @Transactional(propagation = Propagation.REQUIRED) public void saveOrUpdateOrg(OrganizationalEntity p_org_entity_to_save_or_update) { this.i_org_dao.saveOrUpdateOrg(p_org_entity_to_save_or_update); }
From source file:com.oak_yoga_studio.service.impl.EnrollmentServiceImpl.java
@Transactional(propagation = Propagation.REQUIRED) @Override// w w w . jav a 2s . com public void addEnrollment(Enrollment enrollment) { try { enrollmentDAO.addEnrollment(enrollment); } catch (Exception e) { } }
From source file:com.github.carlomicieli.service.hibernate.TeamServiceImpl.java
/** * Update a team in the repository.//ww w. j a va2 s . co m * @param team the modified team. */ @Override @Transactional(propagation = Propagation.REQUIRED, readOnly = false) public void updateTeam(Team team) { teamDAO.updateTeam(team); }
From source file:uk.ac.ebi.intact.editor.services.curate.interaction.InteractionEditorService.java
@Transactional(value = "jamiTransactionManager", readOnly = true, propagation = Propagation.REQUIRED) public int countXrefs(IntactInteractionEvidence interaction) { return getIntactDao().getInteractionDao().countXrefsForInteraction(interaction.getAc()); }
From source file:cs544.wamp_blog_engine.service.impl.CategoryTagService.java
@Transactional(propagation = Propagation.REQUIRED) @Override public void addCategory(Category category) { categoryDAO.createCategory(category); }
From source file:com.crm.earnify.services.IGenericEarnifyServiceImpl.java
@Override @Transactional(propagation = Propagation.REQUIRED) public E getById(K p_key) { return this.i_generic_dao.find(p_key); }