Package cz.o2.proxima.core.repository
Enum TransactionMode
- java.lang.Object
-
- java.lang.Enum<TransactionMode>
-
- cz.o2.proxima.core.repository.TransactionMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<TransactionMode>
public enum TransactionMode extends java.lang.Enum<TransactionMode>
Type of transactions of aAttributeDescriptor
.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALL
Transactional support across different keys of either the same or different entities.ATTRIBUTE
Transactional support within the same attribute (i.e.ENTITY
Transactional support within the same entity (i.e.KEY
Transactional support within the same entity key (i.e.NONE
No transactional support.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TransactionMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static TransactionMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final TransactionMode NONE
No transactional support.
-
ATTRIBUTE
public static final TransactionMode ATTRIBUTE
Transactional support within the same attribute (i.e. colliding writes to the same attribute are rejected).
-
KEY
public static final TransactionMode KEY
Transactional support within the same entity key (i.e. transaction can contain only single entity key and only single entity type). Note: all attributes within specified transaction *must* have *at least* mode set to KEY, otherwiseIllegalArgumentException
is thrown. The actual mode of each transaction is defined to be the maximal transaction mode from all attributes *written* by the transaction.
-
ENTITY
public static final TransactionMode ENTITY
Transactional support within the same entity (i.e. transaction can contain multiple entity keys but only single entity type). Note: all attributes within specified transaction *must* have *at least* mode set to ENTITY, otherwiseIllegalArgumentException
is thrown. The actual mode of each transaction is defined to be the maximal transaction mode from all attributes *written* by the transaction.
-
ALL
public static final TransactionMode ALL
Transactional support across different keys of either the same or different entities. Note: all attributes within specified transaction *must* have the transaction type set to ALL, otherwiseIllegalArgumentException
will be thrown.
-
-
Method Detail
-
values
public static TransactionMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TransactionMode c : TransactionMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TransactionMode valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-