|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<TransactionType>
com.wideplay.warp.persist.TransactionType
public enum TransactionType
Enumerates options for an experimental feature: read/write or read/only transactions. Currently *not* supported in JPA and experimental in Hibernate. The underlying mechanism actually alters the session-flush state to manual and silently ignores the flush on commit. The dirty state of the same session in subsequent transactions may be affected. Use with caution.
Prefer driver-level read only transactions if your database supports it (using JTA global transactions).
Enum Constant Summary | |
---|---|
READ_ONLY
Used to instruct warp-persist in the @Transactional annotation of methods/classes
that this transaction is READ-ONLY. |
|
READ_WRITE
Used to instruct warp-persist in the @Transactional annotation of methods/classes
that this transaction is READ-WRITE. |
Method Summary | |
---|---|
static TransactionType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static TransactionType[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final TransactionType READ_ONLY
@Transactional
annotation of methods/classes
that this transaction is READ-ONLY. This feature is not supported for JPA and is experimental
for Hibernate.
public static final TransactionType READ_WRITE
@Transactional
annotation of methods/classes
that this transaction is READ-WRITE. It is redundant to use this enum explicitly, since all
transactions are read-write by default.
Method Detail |
---|
public static final TransactionType[] values()
for(TransactionType c : TransactionType.values()) System.out.println(c);
public static TransactionType valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |