Package org.alfresco.repo.transaction
Enum AlfrescoTransactionSupport.TxnReadState
- java.lang.Object
-
- java.lang.Enum<AlfrescoTransactionSupport.TxnReadState>
-
- org.alfresco.repo.transaction.AlfrescoTransactionSupport.TxnReadState
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<AlfrescoTransactionSupport.TxnReadState>
- Enclosing class:
- AlfrescoTransactionSupport
public static enum AlfrescoTransactionSupport.TxnReadState extends java.lang.Enum<AlfrescoTransactionSupport.TxnReadState>
- Since:
- 2.1.4
- Author:
- Derek Hulley
-
-
Enum Constant Summary
Enum Constants Enum Constant Description TXN_NONENo transaction is activeTXN_READ_ONLYThe current transaction is read-onlyTXN_READ_WRITEThe current transaction supports writes
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AlfrescoTransactionSupport.TxnReadStatevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static AlfrescoTransactionSupport.TxnReadState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TXN_NONE
public static final AlfrescoTransactionSupport.TxnReadState TXN_NONE
No transaction is active
-
TXN_READ_ONLY
public static final AlfrescoTransactionSupport.TxnReadState TXN_READ_ONLY
The current transaction is read-only
-
TXN_READ_WRITE
public static final AlfrescoTransactionSupport.TxnReadState TXN_READ_WRITE
The current transaction supports writes
-
-
Method Detail
-
values
public static AlfrescoTransactionSupport.TxnReadState[] 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 (AlfrescoTransactionSupport.TxnReadState c : AlfrescoTransactionSupport.TxnReadState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AlfrescoTransactionSupport.TxnReadState 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
-
-