Example usage for org.springframework.transaction.annotation Isolation READ_COMMITTED

List of usage examples for org.springframework.transaction.annotation Isolation READ_COMMITTED

Introduction

In this page you can find the example usage for org.springframework.transaction.annotation Isolation READ_COMMITTED.

Prototype

Isolation READ_COMMITTED

To view the source code for org.springframework.transaction.annotation Isolation READ_COMMITTED.

Click Source Link

Document

A constant indicating that dirty reads are prevented; non-repeatable reads and phantom reads can occur.

Usage

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

@Override
@Transactional(readOnly = false, propagation = Propagation.REQUIRED, isolation = Isolation.READ_COMMITTED, rollbackFor = Exception.class)
public void save(LoginHistory entity) throws Exception {
    this.loginHistoryDao.save(entity);
    //         PushContext pushContext = PushContextFactory.getDefault().getPushContext();
}

From source file:org.alienlabs.hatchetharry.persistence.dao.ArrowDaoImpl.java

/**
 * Save the Arrow to the DB//  w w  w.  ja  va  2 s  . c  o  m
 * 
 * @param Arrow
 * @return persistent instance of Arrow
 */
@Override
@Transactional(isolation = Isolation.READ_COMMITTED)
public Long save(final Arrow arrow) {
    return (Long) this.getSession().save(arrow);
}

From source file:org.alienlabs.hatchetharry.persistence.dao.TokenDaoImpl.java

/**
 * Save the Token to the DB/*  w ww .  j a  v  a 2s  .co m*/
 * 
 * @param Token
 * @return persistent instance of Token
 */
@Override
@Transactional(isolation = Isolation.READ_COMMITTED)
public void save(final Token Token) {
    this.getSession().save(Token);
}

From source file:org.alienlabs.hatchetharry.persistence.dao.GameDaoImpl.java

/**
 * Save the Game to the DB/* w w w.  j  a  v  a2s.  c o m*/
 * 
 * @param game
 * @return persistent instance of Game
 */
@Override
@Transactional(isolation = Isolation.READ_COMMITTED)
public Game save(final Game game) {
    return (Game) this.getSession().merge(game);
}

From source file:org.alienlabs.hatchetharry.persistence.dao.PlayerDaoImpl.java

/**
 * Save the Player to the DB/*from   ww w  .  j ava2s . c o  m*/
 * 
 * @param Player
 * @return persistent instance of Player
 */
@Override
@Transactional(isolation = Isolation.READ_COMMITTED)
public void save(final Player Player) {
    this.getSession().save(Player);
}

From source file:org.alienlabs.hatchetharry.persistence.dao.ChatMessageDaoImpl.java

/**
 * Save the ChatMessage to the DB//from   w ww . j  a va2  s . c om
 * 
 * @param ChatMessage
 * @return persistent instance of ChatMessage
 */
@Override
@Transactional(isolation = Isolation.READ_COMMITTED)
public Long save(final ChatMessage chatMessage) {
    return (Long) this.getSession().save(chatMessage);
}

From source file:org.alienlabs.hatchetharry.persistence.dao.DeckArchiveDaoImpl.java

/**
 * Save the DeckArchive to the DB/*  ww  w  .  j  a  v a 2  s  . c om*/
 * 
 * @param deckArchive
 * @return persistent instance of DeckArchive
 */
@Override
@Transactional(isolation = Isolation.READ_COMMITTED)
public Long save(final DeckArchive deckArchive) {
    return (Long) this.getSession().save(deckArchive);
}

From source file:org.alienlabs.hatchetharry.persistence.dao.MagicCardDaoImpl.java

/**
 * Save the MagicCard to the DB//w  ww .jav  a 2s.  c  om
 * 
 * @param MagicCard
 * @return persistent instance of MagicCard
 */
@Override
@Transactional(isolation = Isolation.READ_COMMITTED)
public MagicCard save(final MagicCard card) {
    return (MagicCard) this.getSession().merge(card);
}

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

@Override
@Transactional(readOnly = true, isolation = Isolation.READ_COMMITTED, propagation = Propagation.SUPPORTS, timeout = 30)
public List<BioRelasiPerusahaan> getAllDataByBioDataId(Long bioDataId) throws Exception {
    return bioRelasiPerusahaanDao.getAllDataByBioDataId(bioDataId);
}

From source file:org.alienlabs.hatchetharry.persistence.dao.ConsoleLogMessageDaoImpl.java

/**
 * Save the ConsoleLogMessage to the DB/*from  ww w .  ja  va  2  s  .co  m*/
 * 
 * @param ConsoleLogMessage
 * @return persistent instance of ConsoleLogMessage
 */
@Override
@Transactional(isolation = Isolation.READ_COMMITTED)
public Long save(final ConsoleLogMessage consoleLogMessage) {
    return (Long) this.getSession().save(consoleLogMessage);
}