Home
last modified time | relevance | path

Searched refs:UnitOfWork (Results 1 – 16 of 16) sorted by relevance

/external/guice/extensions/persist/test/com/google/inject/persist/jpa/
DManagedLocalTransactionsAcrossRequestTest.java25 import com.google.inject.persist.UnitOfWork;
71 injector.getInstance(UnitOfWork.class).end(); in testSimpleTransaction()
77 injector.getInstance(UnitOfWork.class).end(); in testSimpleTransaction()
98 injector.getInstance(UnitOfWork.class).end(); in testSimpleTransactionWithMerge()
104 injector.getInstance(UnitOfWork.class).end(); in testSimpleTransactionWithMerge()
122 injector.getInstance(UnitOfWork.class).end(); in disabled_testSimpleTransactionWithMergeAndDF()
129 injector.getInstance(UnitOfWork.class).end(); in disabled_testSimpleTransactionWithMergeAndDF()
138 injector.getInstance(UnitOfWork.class).end(); in testSimpleTransactionRollbackOnChecked()
150 injector.getInstance(UnitOfWork.class).end(); in testSimpleTransactionRollbackOnChecked()
154 injector.getInstance(UnitOfWork.class).end(); in testSimpleTransactionRollbackOnChecked()
[all …]
DEntityManagerFactoryProvisionTest.java22 import com.google.inject.persist.UnitOfWork;
41 injector.getInstance(UnitOfWork.class).end(); in tearDown()
47 assertEquals("SINGLETON VIOLATION " + UnitOfWork.class.getName(), in testSessionCreateOnInjection()
48 injector.getInstance(UnitOfWork.class), injector.getInstance(UnitOfWork.class)); in testSessionCreateOnInjection()
DCustomPropsEntityManagerFactoryProvisionTest.java22 import com.google.inject.persist.UnitOfWork;
48 injector.getInstance(UnitOfWork.class).end(); in tearDown()
54 assertEquals("SINGLETON VIOLATION " + UnitOfWork.class.getName(), in testSessionCreateOnInjection()
55 injector.getInstance(UnitOfWork.class), in testSessionCreateOnInjection()
56 injector.getInstance(UnitOfWork.class)); in testSessionCreateOnInjection()
DManagedLocalTransactionsTest.java24 import com.google.inject.persist.UnitOfWork;
55 injector.getInstance(UnitOfWork.class).end(); in tearDown()
68 injector.getInstance(UnitOfWork.class).end(); in testSimpleTransaction()
88 injector.getInstance(UnitOfWork.class).end(); in testSimpleTransactionWithMerge()
101 injector.getInstance(UnitOfWork.class).end(); in testSimpleTransactionRollbackOnChecked()
113 injector.getInstance(UnitOfWork.class).end(); in testSimpleTransactionRollbackOnChecked()
123 injector.getInstance(UnitOfWork.class).end(); in testSimpleTransactionRollbackOnUnchecked()
133 injector.getInstance(UnitOfWork.class).end(); in testSimpleTransactionRollbackOnUnchecked()
DJoiningLocalTransactionsTest.java24 import com.google.inject.persist.UnitOfWork;
57 injector.getInstance(UnitOfWork.class).end(); in tearDown()
72 injector.getInstance(UnitOfWork.class).end(); in testSimpleTransaction()
86 injector.getInstance(UnitOfWork.class).end(); in testSimpleTransactionRollbackOnChecked()
98 injector.getInstance(UnitOfWork.class).end(); in testSimpleTransactionRollbackOnChecked()
109 injector.getInstance(UnitOfWork.class).end(); in testSimpleTransactionRollbackOnUnchecked()
119 injector.getInstance(UnitOfWork.class).end(); in testSimpleTransactionRollbackOnUnchecked()
DJpaWorkManagerTest.java24 import com.google.inject.persist.UnitOfWork;
62 injector.getInstance(UnitOfWork.class).begin(); in testWorkManagerInSession()
66 injector.getInstance(UnitOfWork.class).end(); in testWorkManagerInSession()
70 injector.getInstance(UnitOfWork.class).begin(); in testWorkManagerInSession()
88 injector.getInstance(UnitOfWork.class).end(); in testWorkManagerInSession()
DManualLocalTransactionsTest.java24 import com.google.inject.persist.UnitOfWork;
57 injector.getInstance(UnitOfWork.class).begin(); in testSimpleCrossTxnWork()
71 injector.getInstance(UnitOfWork.class).end(); in testSimpleCrossTxnWork()
72 injector.getInstance(UnitOfWork.class).begin(); in testSimpleCrossTxnWork()
DEntityManagerPerRequestProvisionTest.java24 import com.google.inject.persist.UnitOfWork;
47 injector.getInstance(UnitOfWork.class).begin(); in setUp()
52 injector.getInstance(UnitOfWork.class).end(); in tearDown()
DManualLocalTransactionsWithCustomMatcherTest.java24 import com.google.inject.persist.UnitOfWork;
77 injector.getInstance(UnitOfWork.class).end(); in testSimpleCrossTxnWork()
DEnsureJpaCanTakeObjectsInPropertiesTest.java21 import com.google.inject.persist.UnitOfWork;
76 injector.getInstance(UnitOfWork.class).end(); in tearDown()
/external/guice/extensions/persist/src/com/google/inject/persist/
DPersistFilter.java69 private final UnitOfWork unitOfWork;
73 public PersistFilter(UnitOfWork unitOfWork, PersistService persistService) { in PersistFilter()
DUnitOfWork.java38 public interface UnitOfWork { interface
DPersistModule.java39 requireBinding(UnitOfWork.class); in configure()
/external/guice/extensions/persist/src/com/google/inject/persist/jpa/
DJpaLocalTxnInterceptor.java21 import com.google.inject.persist.UnitOfWork;
41 private UnitOfWork unitOfWork = null;
DJpaPersistService.java25 import com.google.inject.persist.UnitOfWork;
42 class JpaPersistService implements Provider<EntityManager>, UnitOfWork, PersistService {
DJpaPersistModule.java27 import com.google.inject.persist.UnitOfWork;
68 bind(UnitOfWork.class).to(JpaPersistService.class); in configurePersistence()