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.jdbi.v3.spring4.DummyService.java

@Override
@Transactional(propagation = Propagation.REQUIRED)
public void inPropagationRequired(Callback c) {
    c.call(jdbi);
}

From source file:het.springapp.service.impl.UserDetailsServiceImpl.java

@Override
@Transactional(propagation = Propagation.REQUIRED)
public UserDetails loadUserByUsername(String userId) throws UsernameNotFoundException {
    User user = userDao.getUser(userId);
    return buildUserForAuthentication(user);
}

From source file:com.mycompany.Services.implementation.ContackCrudImpl.java

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

From source file:com.milos.neo4j.dao.impl.UserGameScoresDAOImpl.java

@Transactional(readOnly = false, propagation = Propagation.REQUIRED)
@Override/*w ww .  j a  v a 2 s. c  o  m*/
public void createNewUserGame(Long gameId, String username, Long score) {
    String query = "MATCH (g:Game),(u:User) where ID(g)={gameId} and u.username = {username} "
            + "CREATE (g)<-[r:GAME_SCORE_RELATION]-(ug:UserGameScores {gameId : {gameId}, username: {username}, score: {score}})-[y:USER_SCORE_RELATION]->(u) "
            + "return g,u,ug,r,y";
    Map<String, Object> params = new HashMap<>();
    params.put("gameId", gameId);
    params.put("username", username);
    params.put("score", score);
    session.query(query, params, false);
}

From source file:service.crud.Impl.crudDaycareStaffImpl.java

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

From source file:service.crud.Impl.crudNurseDetailsImpl.java

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

From source file:service.crud.Impl.crudStartPokemonImpl.java

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

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

@Transactional(propagation = Propagation.REQUIRED)
@Override
public void modifyBlog(Blog blog) {
    blogDAO.updateBlog(blog);
}

From source file:org.tutev.web.erp.service.BaseDao.java

@Transactional(propagation = Propagation.REQUIRED, readOnly = false)
public void save(Object o) {
    getSession().save(o);
}

From source file:org.skife.jdbi.v2.spring.DummyService.java

@Override
@Transactional(propagation = Propagation.REQUIRED)
public void inPropagationRequired(Callback c) {
    c.call(dbi);
}