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:org.openregistry.core.service.IdentifierNotificationService.java
/** * An overloaded version of sendAccountActivationNotification() that does not * take the role into account. /* ww w . j av a2 s. c o m*/ * This is necessitated by the fact that some implementations may not require * a role for account to be activated * @param person * @param identifierType * @throws IllegalArgumentException * @throws IllegalStateException */ @Transactional(propagation = Propagation.REQUIRED) public void sendAccountActivationNotification(Person person, IdentifierType identifierType) throws IllegalArgumentException, IllegalStateException;
From source file:it.geosolutions.geobatch.ftpserver.dao.hibernate.HibFtpServerConfigDAO.java
@Transactional(propagation = Propagation.REQUIRED) public FtpServerConfig load() throws DAOException { List<FtpServerConfig> list = super.findAll(); switch (list.size()) { case 0://from ww w. j a v a 2 s .co m LOGGER.info("No FTP server config found. Storing a brand new one."); FtpServerConfig config = new FtpServerConfig(); return super.makePersistent(config); case 1: return list.get(0); default: LOGGER.error("Too many FTP server configs found(" + list.size() + ")."); return list.get(0); } }
From source file:no.dusken.barweb.service.impl.BalanceTransaksjonExtendedService.java
@Transactional(propagation = Propagation.REQUIRED, isolation = Isolation.DEFAULT, readOnly = false) public boolean deleteTransactionUpdatePerson(BalanceTransaksjon transaksjon, BarPerson barPerson) { try {//from w w w .j a v a 2 s . co m barPersonService.save(barPerson); transaksjonService.delete(transaksjon); } catch (Exception e) { return false; } return true; }
From source file:uk.ac.ebi.intact.editor.services.curate.interactor.InteractorEditorService.java
@Transactional(value = "jamiTransactionManager", readOnly = true, propagation = Propagation.REQUIRED) public int countXrefs(IntactInteractor interactor) { return getIntactDao().getInteractorDao(IntactInteractor.class).countXrefsForInteractor(interactor.getAc()); }
From source file:com.wonders.bud.freshmommy.service.sysuser.service.impl.LoginSuccessHandler.java
@Override @Transactional(readOnly = false, propagation = Propagation.REQUIRED, rollbackFor = { Exception.class }) public void onAuthenticationSuccess(HttpServletRequest request, HttpServletResponse response, Authentication authentication) throws IOException, ServletException { saveLoginInfo(request, authentication); super.onAuthenticationSuccess(request, response, authentication); }
From source file:com.mycompany.flooringmvc.dao.ProductDaoDbImpl.java
@Override @Transactional(propagation = Propagation.REQUIRED) public void update(Product product) { jdbcTemplate.update(SQL_UPDATE_PRODUCT, product.getProductType(), product.getMatCostSqf(), product.getLaborCostSqf(), product.getId()); }
From source file:cs544.wamp_blog_engine.service.impl.UserService.java
@Transactional(propagation = Propagation.REQUIRED) @Override public void modifyCredential(Credential credential) { this.credentialDAO.updateCredential(credential); }
From source file:com.milos.neo4j.services.impl.UnknownInputsServiceImpl.java
@Transactional(readOnly = false, propagation = Propagation.REQUIRED) @Override//from w ww. j a v a 2s . c o m public void saveUnknownIntoDatabase() { List<String> names = new ArrayList<>(); List<String> queryList = buildList(names); int i = unknownInputsDAO.saveUnknownIntoDatabase(queryList, names); emptyMaps(names, i); }
From source file:com.inkubator.hrm.service.impl.HrmRoleServiceImpl.java
@Override @Transactional(readOnly = false, propagation = Propagation.REQUIRED, isolation = Isolation.READ_COMMITTED, rollbackFor = Exception.class) public void save(HrmRole entity) throws Exception { this.hrmRoleDao.save(entity); }
From source file:com.inkubator.sms.gateway.service.impl.LoginHistoryServiceImpl.java
@Override @Transactional(readOnly = false, isolation = Isolation.READ_COMMITTED, propagation = Propagation.REQUIRED, rollbackFor = Exception.class) public void save(LoginHistory entity) throws Exception { this.loginHistoryDao.save(entity); }