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

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

Introduction

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

Prototype

Propagation REQUIRES_NEW

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

Click Source Link

Document

Create a new transaction, and suspend the current transaction if one exists.

Usage

From source file:com.karriem.tp2.immutable_domain_model_assignment.Service.Crud.EmployeesCrud.Impl.DoctorCrudServiceImpl.java

@Override
@Transactional(propagation = Propagation.REQUIRES_NEW)
public DoctorsPersonal merge(DoctorsPersonal entity) {

    return null;
}

From source file:com.karriem.tp2.immutable_domain_model_assignment.Service.Crud.PaymentMethodCrud.Impl.CreditCardCrudServiceImpl.java

@Override
@Transactional(propagation = Propagation.REQUIRES_NEW)
public CreditCard merge(CreditCard entity) {

    return null;
}

From source file:com.Services.Impl.PlayerRecords.Bowler_CrudImpl.java

@Override
@Transactional(propagation = Propagation.REQUIRES_NEW)
public BowlerWickets merge(BowlerWickets entity) {
    if (entity == null) {
        try {/*www  .  j av  a 2  s .  c o m*/
            throw new Exception();
        } catch (Exception ex) {
            Logger.getLogger(Bowler_CrudImpl.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
    return entity;
}

From source file:com.Services.Impl.SportRecords.RugbyRecords_CrudImpl.java

@Override
@Transactional(propagation = Propagation.REQUIRES_NEW)
public Rugby_Records merge(Rugby_Records entity) {
    if (entity == null) {
        try {// ww w. ja  v a2 s. c  o  m
            throw new Exception();
        } catch (Exception ex) {
            Logger.getLogger(RugbyRecords_CrudImpl.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
    return entity;
}

From source file:com.karriem.tp2.immutable_domain_model_assignment.Service.Crud.PatientsCrud.Impl.TerminalCrudServiceImpl.java

@Override
@Transactional(propagation = Propagation.REQUIRES_NEW)
public TerminalPatients merge(TerminalPatients entity) {

    return null;
}

From source file:com.karriem.tp2.immutable_domain_model_assignment.Service.Crud.TreatmentCrud.Impl.ICUTreatmentCrudServiceImpl.java

@Override
@Transactional(propagation = Propagation.REQUIRES_NEW)
public ICUTreatment merge(ICUTreatment entity) {

    return null;
}

From source file:com.mycompany.secondAttemptCrud.CarKIACrudServiceImpl.java

@Transactional(propagation = Propagation.REQUIRES_NEW)
public carKIA merge(carKIA entity) {
    // throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    return null;// ww w  .  j  a  v  a 2  s  . c o  m
}

From source file:com.Services.Impl.PlayerRecords.GoalScorer_CrudImpl.java

@Override
@Transactional(propagation = Propagation.REQUIRES_NEW)
public goal_Scorers merge(goal_Scorers entity) {

    if (entity == null) {
        try {//  w ww .j  a v a 2s.co m
            throw new Exception();
        } catch (Exception ex) {
            Logger.getLogger(GoalScorer_CrudImpl.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
    return entity;

}

From source file:com.mycompany.secondAttemptCrud.CarFORDCrudServiceImpl.java

@Transactional(propagation = Propagation.REQUIRES_NEW)
public carFORD merge(carFORD entity) {
    // throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    return null;/*from w  ww . jav a  2s  .c  o m*/
}

From source file:com.karriem.tp2.immutable_domain_model_assignment.Service.Crud.TreatmentCrud.Impl.ComaTreatmentCrudServiceImpl.java

@Override
@Transactional(propagation = Propagation.REQUIRES_NEW)
public ComaTreatment merge(ComaTreatment entity) {

    return null;
}