@Test(expected = NullPointerException.class) public void testCannotBeginNullWork() { UnitOfWork.begin(null); }
public static void begin(final Supplier<? extends TransactionalSession<?>> db) { checkNotNull(db); doBegin(db::get, TRANSACTIONAL); }
UnitOfWork implements TransactionalSession<Transaction> { public static void begin(final Supplier<? extends TransactionalSession<?>> db) { checkNotNull(db); doBegin(db::get, TRANSACTIONAL); } }
UnitOfWork implements TransactionalSession<Transaction> { public static void begin(final Supplier<? extends TransactionalSession<?>> db) { checkNotNull(db); doBegin(db::get, TRANSACTIONAL); } private  UnitOfWork(final UnitOfWork parent, final TransactionalStore<?> store, final Scope scope); }
UnitOfWork implements TransactionalSession<Transaction> { public static void begin(final Supplier<? extends TransactionalSession<?>> db) { checkNotNull(db); doBegin(db::get, TRANSACTIONAL); } private  UnitOfWork(final UnitOfWork parent, final TransactionalStore<?> store, final Scope scope); static void begin(final Supplier<? extends TransactionalSession<?>> db); static void beginBatch(final Supplier<? extends TransactionalSession<?>> db); static void beginBatch(final TransactionalSession<?> session); static void end(); @SuppressWarnings("unchecked") static S currentSession(); @SuppressWarnings("unchecked") static T currentTx(); @Nullable static UnitOfWork pause(); static void resume(@Nullable final UnitOfWork pausedWork); @Override Transaction getTransaction(); @Override void close(); }
UnitOfWork implements TransactionalSession<Transaction> { public static void begin(final Supplier<? extends TransactionalSession<?>> db) { checkNotNull(db); doBegin(db::get, TRANSACTIONAL); } private  UnitOfWork(final UnitOfWork parent, final TransactionalStore<?> store, final Scope scope); static void begin(final Supplier<? extends TransactionalSession<?>> db); static void beginBatch(final Supplier<? extends TransactionalSession<?>> db); static void beginBatch(final TransactionalSession<?> session); static void end(); @SuppressWarnings("unchecked") static S currentSession(); @SuppressWarnings("unchecked") static T currentTx(); @Nullable static UnitOfWork pause(); static void resume(@Nullable final UnitOfWork pausedWork); @Override Transaction getTransaction(); @Override void close();  }