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:com.tracy.immutable.service.crud.Impl.TextBookCrudServiceImpl.java

@Override
@Transactional(propagation = Propagation.REQUIRED)
public Textbook remove(Textbook entity) {

    return null;

}

From source file:inc.cygnus.service.impl.PurchaseServiceImpl.java

@Override
@Transactional(propagation = Propagation.REQUIRED, readOnly = false)
public Purchase delete(Purchase purchase) {
    return purchaseDao.deleteBase(purchase);
}

From source file:app.core.TransactionTestHelper.java

@Transactional(propagation = Propagation.REQUIRED) // What about MANDATORY??
public void throwExceptionIfNoExistingTransaction() {
}

From source file:com.google.ie.business.dao.impl.BadWordDaoImpl.java

@Override
@Transactional(readOnly = false, propagation = Propagation.REQUIRED)
public BadWord saveBadWord(BadWord badWord) {
    badWord = getJdoTemplate().makePersistent(badWord);
    return badWord;
}

From source file:inc.cygnus.service.impl.CustomerServiceImpl.java

@Override
@Transactional(propagation = Propagation.REQUIRED, readOnly = false)
public Customer delete(Customer customer) {
    return customerDao.deleteBase(customer);
}

From source file:com.pharmacy.pharmacyweb.services.crud.Impl.ProductCrudServiceImpl.java

@Override
@Transactional(propagation = Propagation.REQUIRED)
public Product remove(Product entity) {
    return null;
}

From source file:com.immutabledomain.phonestore.services.crud.Impl.NokiaCrudServiceImpl.java

@Override
@Transactional(propagation = Propagation.REQUIRED)
public Nokia remove(Nokia entity) {
    return null;
}

From source file:com.sihle.elections2.services.crud.Imp.PresidentCrudserviceImp.java

@Override
@Transactional(propagation = Propagation.REQUIRED)
public Presidents remove(Presidents entity) {
    return null;
}

From source file:dao.DAOSector.java

/**
 * //  w ww.j  av a2  s .co  m
 * @param _sector 
 */
@Transactional(propagation = Propagation.REQUIRED, readOnly = false, rollbackFor = exceptionsDAO.ActualizarSectorException.class)
public void actualizarSector(Sector _sector) {
    em.merge(_sector);
}

From source file:com.sihle.elections2.services.crud.Imp.StatisticCrudserviceImp.java

@Override
@Transactional(propagation = Propagation.REQUIRED)
public Statistics remove(Statistics entity) {
    return null;
}