|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface TransactionStrategyBuilder
Created with IntelliJ IDEA. On: 2/06/2007
| Method Summary | |
|---|---|
TransactionStrategyBuilder |
addAccessor(java.lang.Class<?> daoInterface)
|
PersistenceModuleBuilder |
forAll(com.google.inject.matcher.Matcher<? super java.lang.Class<?>> classMatcher)
This is a convenience method, and defaults to using the method matcher: Matchers.annotatedWith(Transactional.class). |
PersistenceModuleBuilder |
forAll(com.google.inject.matcher.Matcher<? super java.lang.Class<?>> classMatcher,
com.google.inject.matcher.Matcher<? super java.lang.reflect.Method> methodMatcher)
Note that if you do not have an @Transactional annotation present on transactional methods, and
use a Matcher.any() for methods, warp-persist
will assume default rollbackOn and exceptOn clauses (as though @Transactional were present but
with no attributes specified). |
TransactionStrategyBuilder |
transactedWith(TransactionStrategy transactionStrategy)
|
| Methods inherited from interface com.wideplay.warp.persist.PersistenceModuleBuilder |
|---|
buildModule |
| Method Detail |
|---|
TransactionStrategyBuilder transactedWith(TransactionStrategy transactionStrategy)
transactionStrategy - One of the enum TransactionStrategy.
See warp-persist website for details. By default TransactionStrategy.LOCAL is set.
PersistenceModuleBuilder forAll(com.google.inject.matcher.Matcher<? super java.lang.Class<?>> classMatcher)
Matchers.annotatedWith(Transactional.class).
classMatcher - A Matcher on classes to watch for transactional methods
PersistenceModuleBuilder forAll(com.google.inject.matcher.Matcher<? super java.lang.Class<?>> classMatcher,
com.google.inject.matcher.Matcher<? super java.lang.reflect.Method> methodMatcher)
@Transactional annotation present on transactional methods, and
use a Matcher.any() for methods, warp-persist
will assume default rollbackOn and exceptOn clauses (as though @Transactional were present but
with no attributes specified).
classMatcher - A Matcher on classes to watch for transactional methodsmethodMatcher - A Matcher on methods
TransactionStrategyBuilder addAccessor(java.lang.Class<?> daoInterface)
daoInterface - An interface with some methods (typically all) that are
annotated with @Finder. Warp-persist will automagically create method bodies
and provide an instance when you inject this interface anywhere in your setup.
Note that you are *not* allowed to provide your own implementation/binding for such
interfaces. Binding errors will result if you try.
Also accepts abstract classes, with one or more abstract methods marked @Finder.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||