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

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

Introduction

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

Prototype

Isolation READ_UNCOMMITTED

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

Click Source Link

Document

A constant indicating that dirty reads, non-repeatable reads and phantom reads can occur.

Usage

From source file:org.jdbi.v3.spring4.Service.java

@Transactional(propagation = Propagation.REQUIRES_NEW, isolation = Isolation.READ_UNCOMMITTED)
void inRequiresNewReadUncommitted(Callback c);

From source file:org.jdbi.v3.spring4.DummyService.java

@Override
@Transactional(propagation = Propagation.REQUIRES_NEW, isolation = Isolation.READ_UNCOMMITTED)
public void inRequiresNewReadUncommitted(Callback c) {
    c.call(jdbi);
}

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

@Override
@Transactional(propagation = Propagation.REQUIRES_NEW, isolation = Isolation.READ_UNCOMMITTED)
public void inRequiresNewReadUncommitted(Callback c) {
    c.call(dbi);
}

From source file:cz.muni.fi.editor.database.test.NotificationDAOTest.java

@Test
@Transactional(isolation = Isolation.READ_UNCOMMITTED)
public void markSeen() {
    notificationDAO.markSeen(notificationDAO.getNotifications(0, 10, userDAO.getById(2L), false));

    Assert.assertTrue(notificationDAO.getNotifications(0, 10, userDAO.getById(2L), false).isEmpty());
}