Search in sources :

Example 6 with DbJtxTransaction

use of jodd.db.jtx.DbJtxTransaction in project jodd by oblac.

the class DbTransactionTest method service0_1.

void service0_1(JtxTransaction uptx) {
    assertTotals(1, 1);
    DbJtxTransaction tx = dbtxm.requestTransaction(new JtxTransactionMode().propagationSupports());
    assertTotals(1, 1);
    assertEquals(uptx, tx);
    DbSession s1 = tx.requestResource();
    assertEquals(s0, s1);
}
Also used : DbJtxTransaction(jodd.db.jtx.DbJtxTransaction) JtxTransactionMode(jodd.jtx.JtxTransactionMode)

Aggregations

DbJtxTransaction (jodd.db.jtx.DbJtxTransaction)6 JtxTransactionMode (jodd.jtx.JtxTransactionMode)6