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:pl.edu.agh.samm.db.impl.IActionExecutionDAO.java
@Transactional(propagation = Propagation.SUPPORTS, readOnly = false) void store(ActionExecution execution);
From source file:com.oak_yoga_studio.dao.impl.AddressDAOImpl.java
@Transactional(propagation = Propagation.SUPPORTS) @Override//ww w . j av a 2 s . c om public Address getAddress(int id) { Address address = (Address) sf.getCurrentSession().get(Address.class, id); return address; }
From source file:com.oak_yoga_studio.dao.impl.WaiverDAOImpl.java
@Transactional(propagation = Propagation.SUPPORTS) @Override// www . j a v a 2s .com public Waiver getWaiverr(int id) { System.out.println("id " + id); Waiver waiver = (Waiver) sf.getCurrentSession().get(Waiver.class, id); return waiver; }
From source file:org.horizontaldb.example.model.dao.PersonDaoImpl.java
@Override @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) public long getCountOfPersonsByDepartment(Long departmentId) { Query query = getQueryBuilder().query("select count( name ) from Person where department_id = :deparmentId") .build();/*from ww w .j av a 2 s.c o m*/ query.setParameter("deparmentId", departmentId); long retval = (Long) query.uniqueResult(); return retval; }
From source file:org.horizontaldb.example.model.dao.DepartmentDaoImpl.java
@Override @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) public long getCountOfDepartments() { Query query = getQueryBuilder().query("select count( name ) from Department").build(); long retval = (Long) query.uniqueResult(); return retval; }
From source file:com.oak_yoga_studio.dao.impl.FacultyDAOImpl.java
@Transactional(propagation = Propagation.SUPPORTS) @Override/*from w ww . ja v a 2 s . com*/ public Faculty getFaculty(int id) { Faculty faculty = (Faculty) sf.getCurrentSession().get(Faculty.class, id); return faculty; }
From source file:com.oak_yoga_studio.dao.impl.ProductDAOImpl.java
@Transactional(propagation = Propagation.SUPPORTS) @Override// w ww.j a v a2s. c om public Product getProduct(int id) { Product product = (Product) sf.getCurrentSession().get(Product.class, id); return product; }
From source file:com.oak_yoga_studio.dao.impl.CourseDAOImpl.java
@Transactional(propagation = Propagation.SUPPORTS) @Override//from ww w . j a v a2s . com public Course getCourse(int id) { Course course = (Course) sf.getCurrentSession().get(Course.class, id); return course; }
From source file:com.oak_yoga_studio.dao.impl.CredentialDAOImpl.java
@Transactional(propagation = Propagation.SUPPORTS) @Override//from w w w . j a v a 2 s. c om public Credential getCredential(int credentialid) { Credential c = (Credential) sf.getCurrentSession().get(Credential.class, credentialid); return c; }
From source file:mjg.spring.services.AccountService.java
@Transactional(readOnly = true, propagation = Propagation.SUPPORTS) public BigDecimal getAccountBalance(int id) { Account account = dao.findAccountById(id); return account.getBalance(); }