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.lewischooman.services.IUserSrv.java

@Transactional(value = "txManager", propagation = Propagation.REQUIRED)
boolean login(HttpSession httpSession, String uid, String password);

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

@Transactional(propagation = Propagation.REQUIRED)
public carKIA remove(carKIA entity) {
    //throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    return null;/*from  w  w  w  . ja  v  a 2  s.  com*/
}

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

@Override
@Transactional(propagation = Propagation.REQUIRED)
public void delUserRole(String userLogin) {
    userRoleDao.delUserRole(userLogin);
}

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

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

From source file:com.mycompany.dvdmvc.dao.NotesDaoDbImpl.java

@Override
@Transactional(propagation = Propagation.REQUIRED)
public Note create(Note note) {
    jdbcTemplate.update(SQL_INSERT_NOTE, note.getMovieId(), note.getNote());

    Integer id = jdbcTemplate.queryForObject("SELECT LAST_INSERT_ID()", Integer.class);

    note.setId(id);//w ww .java 2 s .com

    return note;
}

From source file:com.oak_yoga_studio.service.impl.CourseServiceImpl.java

@Transactional(propagation = Propagation.REQUIRED)
@Override/*from   w ww.j  av a  2 s . com*/
public void updateCourse(Course course) {
    try {
        courseDAO.updateCourse(course);
    } catch (Exception e) {

    }
}

From source file:cs544.wamp_blog_engine.service.impl.SettingsService.java

@Override
@Transactional(propagation = Propagation.REQUIRED)
public void modifyBlogCategory(Category category) {
    categoryDAO.updateCategory(category);
}

From source file:com.inkubator.hrm.service.impl.RiwayatAccessMessagesListener.java

@Override
@Transactional(readOnly = false, propagation = Propagation.REQUIRED, isolation = Isolation.READ_COMMITTED, rollbackFor = Exception.class)
public void onMessage(Message message) {
    try {//from   w w  w. j  av  a2s.c  o m
        TextMessage textMessage = (TextMessage) message;
        String json = textMessage.getText();
        RiwayatAkses riwayatAccess = (RiwayatAkses) jsonConverter.getClassFromJson(json, RiwayatAkses.class);
        riwayatAccess.setId(Long.parseLong(RandomNumberUtil.getRandomNumber(14)));
        String data = StringUtils.substringAfter(riwayatAccess.getPathUrl(), riwayatAccess.getContextPath());
        HrmMenu hrmMenu = hrmMenuDao.getByPathRelative(data);
        riwayatAccess.setHrmMenu(hrmMenu);
        //            String b = StringUtils.reverse(riwayatAccess.getPathUrl());
        //            String c = StringUtils.substringBefore(b, "/");
        //            String d = StringUtils.reverse(c);
        //            riwayatAccess.setName(d);
        //            if (StringUtils.containsOnly(c, "htm")) {
        //                d = StringUtils.substringAfter(c, ".");
        //                riwayatAccess.setName(StringUtils.reverse(d));
        //            }
        riwayatAksesDao.save(riwayatAccess);
    } catch (JMSException | NumberFormatException ex) {
        LOGGER.error("Error", ex);
    }
}

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

@Transactional(propagation = Propagation.REQUIRED)
public carMAZDA remove(carMAZDA entity) {
    //throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    return null;// w w w  .j a  v  a  2  s . com
}

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

@Transactional(propagation = Propagation.REQUIRED)
public Customer remove(Customer entity) {
    //throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    return null;/*  www . j  a va  2s .co m*/
}