Example usage for org.springframework.transaction.annotation Propagation REQUIRED

List of usage examples for org.springframework.transaction.annotation Propagation REQUIRED

Introduction

In this page you can find the example usage for org.springframework.transaction.annotation Propagation REQUIRED.

Prototype

Propagation REQUIRED

To view the source code for org.springframework.transaction.annotation Propagation REQUIRED.

Click Source Link

Document

Support a current transaction, create a new one if none exists.

Usage

From source file:org.fits.proweb.business.NewsComponent.java

@Override
@Transactional(propagation = Propagation.REQUIRED)
public News getNews(int newsID) {
    return newsDao.getNews(newsID);
}

From source file:dao.DAONivel.java

/**
 * //w  w w. j  a va2  s. c om
 * @param _nivel 
 */
@Transactional(propagation = Propagation.REQUIRED, readOnly = false, rollbackFor = exceptionsDAO.GuardarNivelException.class)
public void guardarNivel(Nivel _nivel) {
    em.persist(_nivel);
}

From source file:dao.DAOVia.java

/**
 * //from   w w  w .j a  va  2  s.co m
 * @param _via 
 */
@Transactional(propagation = Propagation.REQUIRED, readOnly = false, rollbackFor = exceptionsDAO.GuardarViaException.class)
public void guardarVia(Via _via) {
    em.persist(_via);
}

From source file:dao.DAOOrientacion.java

/**
 * //from  w w  w  . j  a  v  a2s  .co  m
 * @param _o 
 */
@Transactional(propagation = Propagation.REQUIRED, readOnly = false, rollbackFor = exceptionsDAO.GuardarOrientacionException.class)
public void guardarOrientacion(Orientacion _o) {
    em.persist(_o);
}

From source file:DataBaseAcessLayer.TransactionDAO.java

@Transactional(readOnly = false, propagation = Propagation.REQUIRED)
void removeTransaction(Transaction transaction);

From source file:dao.DAOSector.java

/**
 * /*from  w  w w.  ja va2s  .com*/
 * @param _sector 
 */
@Transactional(propagation = Propagation.REQUIRED, readOnly = false, rollbackFor = exceptionsDAO.GuardarSectorException.class)
public void guardarSector(Sector _sector) {
    em.persist(_sector);
}

From source file:dao.DAOUsuario.java

/**
 * // w  ww  . j a va2s  .  c  o  m
 * @param _usuario 
 */
@Transactional(propagation = Propagation.REQUIRED, readOnly = false, rollbackFor = exceptionsDAO.GuardarUsuarioException.class)
public void guardarUsuario(Usuario _usuario) {
    em.persist(_usuario);
}

From source file:dao.DAOProvincia.java

/**
 * //w ww .j  av  a2 s.c  om
 * @param _provincia 
 */
@Transactional(propagation = Propagation.REQUIRED, readOnly = false, rollbackFor = exceptionsDAO.GuardarLugarException.class)
public void guardarProvincia(Provincia _provincia) {
    em.persist(_provincia);
}

From source file:DataBaseAcessLayer.UserDAO.java

@Transactional(readOnly = false, propagation = Propagation.REQUIRED)
void saveUser(Utilisateur utilisateur);

From source file:cs544.letmegiveexam.service.UserExamService.java

@Transactional(propagation = Propagation.REQUIRED)
public UserExam get(long Id) {
    return userExamDAO.get(Id);
}