OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:UnitOfWork
(Results
1 - 16
of
16
) sorted by null
/external/guice/extensions/persist/src/com/google/inject/persist/
UnitOfWork.java
25
* Unit of Work referred to by
UnitOfWork
will always be local to the calling thread. Be careful to
30
* <li>Using
UnitOfWork
with the PersistFilter inside a request is not recommended.</li>
31
* <li>Using
UnitOfWork
with session-per-txn strategy is not terribly clever either.</li>
32
* <li>Using
UnitOfWork
with session-per-request strategy but *outside* a request (i.e. in a
38
public interface
UnitOfWork
{
PersistFilter.java
69
private final
UnitOfWork
unitOfWork
;
73
public PersistFilter(
UnitOfWork
unitOfWork
, PersistService persistService) {
74
this.
unitOfWork
=
unitOfWork
;
89
unitOfWork
.begin();
93
unitOfWork
.end();
PersistModule.java
39
requireBinding(
UnitOfWork
.class);
/external/guice/extensions/persist/test/com/google/inject/persist/jpa/
CustomPropsEntityManagerFactoryProvisionTest.java
22
import com.google.inject.persist.
UnitOfWork
;
48
injector.getInstance(
UnitOfWork
.class).end();
54
assertEquals("SINGLETON VIOLATION " +
UnitOfWork
.class.getName(),
55
injector.getInstance(
UnitOfWork
.class),
56
injector.getInstance(
UnitOfWork
.class));
EntityManagerFactoryProvisionTest.java
22
import com.google.inject.persist.
UnitOfWork
;
41
injector.getInstance(
UnitOfWork
.class).end();
47
assertEquals("SINGLETON VIOLATION " +
UnitOfWork
.class.getName(),
48
injector.getInstance(
UnitOfWork
.class), injector.getInstance(
UnitOfWork
.class));
ManagedLocalTransactionsAcrossRequestTest.java
25
import com.google.inject.persist.
UnitOfWork
;
71
injector.getInstance(
UnitOfWork
.class).end();
77
injector.getInstance(
UnitOfWork
.class).end();
98
injector.getInstance(
UnitOfWork
.class).end();
104
injector.getInstance(
UnitOfWork
.class).end();
122
injector.getInstance(
UnitOfWork
.class).end();
129
injector.getInstance(
UnitOfWork
.class).end();
138
injector.getInstance(
UnitOfWork
.class).end();
150
injector.getInstance(
UnitOfWork
.class).end();
154
injector.getInstance(
UnitOfWork
.class).end()
[
all
...]
ManagedLocalTransactionsTest.java
24
import com.google.inject.persist.
UnitOfWork
;
55
injector.getInstance(
UnitOfWork
.class).end();
68
injector.getInstance(
UnitOfWork
.class).end();
88
injector.getInstance(
UnitOfWork
.class).end();
101
injector.getInstance(
UnitOfWork
.class).end();
113
injector.getInstance(
UnitOfWork
.class).end();
123
injector.getInstance(
UnitOfWork
.class).end();
133
injector.getInstance(
UnitOfWork
.class).end();
ManualLocalTransactionsTest.java
24
import com.google.inject.persist.
UnitOfWork
;
57
injector.getInstance(
UnitOfWork
.class).begin();
71
injector.getInstance(
UnitOfWork
.class).end();
72
injector.getInstance(
UnitOfWork
.class).begin();
JpaWorkManagerTest.java
24
import com.google.inject.persist.
UnitOfWork
;
62
injector.getInstance(
UnitOfWork
.class).begin();
66
injector.getInstance(
UnitOfWork
.class).end();
70
injector.getInstance(
UnitOfWork
.class).begin();
88
injector.getInstance(
UnitOfWork
.class).end();
JoiningLocalTransactionsTest.java
24
import com.google.inject.persist.
UnitOfWork
;
57
injector.getInstance(
UnitOfWork
.class).end();
72
injector.getInstance(
UnitOfWork
.class).end();
86
injector.getInstance(
UnitOfWork
.class).end();
98
injector.getInstance(
UnitOfWork
.class).end();
109
injector.getInstance(
UnitOfWork
.class).end();
119
injector.getInstance(
UnitOfWork
.class).end();
EntityManagerPerRequestProvisionTest.java
24
import com.google.inject.persist.
UnitOfWork
;
47
injector.getInstance(
UnitOfWork
.class).begin();
52
injector.getInstance(
UnitOfWork
.class).end();
EnsureJpaCanTakeObjectsInPropertiesTest.java
21
import com.google.inject.persist.
UnitOfWork
;
76
injector.getInstance(
UnitOfWork
.class).end();
ManualLocalTransactionsWithCustomMatcherTest.java
24
import com.google.inject.persist.
UnitOfWork
;
77
injector.getInstance(
UnitOfWork
.class).end();
/external/guice/extensions/persist/src/com/google/inject/persist/jpa/
JpaLocalTxnInterceptor.java
21
import com.google.inject.persist.
UnitOfWork
;
41
private
UnitOfWork
unitOfWork
= null;
84
unitOfWork
.end();
96
unitOfWork
.end();
JpaPersistService.java
25
import com.google.inject.persist.
UnitOfWork
;
42
class JpaPersistService implements Provider<EntityManager>,
UnitOfWork
, PersistService {
62
+ "Try calling
UnitOfWork
.begin() first, or use a PersistFilter if you "
74
"Work already begun on this thread. Looks like you have called
UnitOfWork
.begin() twice"
JpaPersistModule.java
27
import com.google.inject.persist.
UnitOfWork
;
68
bind(
UnitOfWork
.class).to(JpaPersistService.class);
Completed in 132 milliseconds