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.fits.proweb.business.NewsComponent.java
@Override @Transactional(propagation = Propagation.REQUIRED) public void updateNews(News news) { newsDao.updateNews(news); }
From source file:dao.DAOEscuela.java
/** * /* w w w . jav a 2 s . c om*/ * @param _escuela */ @Transactional(propagation = Propagation.REQUIRED, readOnly = false, rollbackFor = exceptionsDAO.BorrarEscuelaException.class) public void borrarEscuela(Escuela _escuela) { em.remove(em.merge(_escuela)); }
From source file:com.mycompany.secondAttemptCrud.CarMERCEDEZCrudServiceImpl.java
@Transactional(propagation = Propagation.REQUIRED) public carMERCEDEZ remove(carMERCEDEZ entity) { //throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. return null;// w w w .j a va 2 s . c om }
From source file:gov.nih.nci.protexpress.service.impl.ProtExpressServiceImpl.java
/** * {@inheritDoc} */ @Transactional(readOnly = false, propagation = Propagation.REQUIRED) public void clear() { getHibernateTemplate().clear(); }
From source file:dao.DAOUsuario.java
/** * /*from w w w .j ava2 s . c om*/ * @param _usuario * @brief elimina un usuario de la base de datos */ @Transactional(propagation = Propagation.REQUIRED, readOnly = false, rollbackFor = exceptionsDAO.BorrarUsuarioException.class) public void borrarUsuario(Usuario _usuario) { em.remove(em.merge(_usuario)); }
From source file:DataBaseAcessLayer.UserDAOImpl.java
@Override @Transactional(readOnly = false, propagation = Propagation.REQUIRED) public void addUser(Utilisateur utilisateur) { org.hibernate.classic.Session session = hibernateTemplate.getSessionFactory().getCurrentSession(); session.saveOrUpdate(utilisateur);//www . ja v a2 s . co m System.out.println(utilisateur.toString()); }
From source file:com.oak_yoga_studio.service.impl.ProductServiceImpl.java
@Transactional(propagation = Propagation.REQUIRED) @Override/*from w ww.j a v a 2s . c o m*/ public void updateProduct(Product product) { try { productDAO.updateProduct(product); } catch (Exception e) { } }
From source file:com.mycompany.flooringmvc.dao.ProductDaoDbImpl.java
@Override @Transactional(propagation = Propagation.REQUIRED) public Product create(Product product) { jdbcTemplate.update(SQL_INSERT_PRODUCT, product.getProductType(), product.getMatCostSqf(), product.getLaborCostSqf());// w w w . java2 s . co m Integer id = jdbcTemplate.queryForObject("SELECT LAST_INSERT_ID()", Integer.class); product.setId(id); return product; }
From source file:uk.ac.ebi.intact.editor.services.admin.HqlQueryService.java
@Transactional(value = "jamiTransactionManager", readOnly = true, propagation = Propagation.REQUIRED) public List<? extends IntactPrimaryObject> runQuery(int maxResults, String hqlQuery) { maxResults = Math.min(maxResults, MAX_RESULTS); hqlQuery = cleanQuery(hqlQuery);//from w ww . j ava 2 s. c o m EntityManager em = getIntactDao().getEntityManager(); Query query = em.createQuery(hqlQuery); query.setMaxResults(maxResults); return query.getResultList(); }
From source file:com.mycompany.secondAttemptCrud.CarVOLGSWAGENCrudServiceImpl.java
@Transactional(propagation = Propagation.REQUIRED) public carVOLGSWAGEN remove(carVOLGSWAGEN entity) { //throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. return null;//from w w w . j ava 2 s . c o m }