public enum AccessType extends Enum<AccessType>
Enum Constant and Description |
---|
NONSTRICT_READ_WRITE
Read and write access (non-strict).
|
READ_ONLY
Read-only access.
|
READ_WRITE
Read and write access (strict).
|
TRANSACTIONAL
A read and write strategy where isolation/locking is maintained in conjunction with a JTA transaction.
|
Modifier and Type | Method and Description |
---|---|
static AccessType |
fromExternalName(String externalName)
Resolve an AccessType from its external name.
|
String |
getExternalName()
Get the corresponding externalized name for this value.
|
String |
toString() |
static AccessType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AccessType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AccessType READ_ONLY
public static final AccessType READ_WRITE
public static final AccessType NONSTRICT_READ_WRITE
READ_WRITE
, which leads to better throughput
but may also lead to inconsistencies.public static final AccessType TRANSACTIONAL
public static AccessType[] values()
for (AccessType c : AccessType.values()) System.out.println(c);
public static AccessType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getExternalName()
public String toString()
toString
in class Enum<AccessType>
public static AccessType fromExternalName(String externalName)
externalName
- The external representation to resolveUnknownAccessTypeException
- If the externalName was not recognized.getExternalName()
Copyright © 2016 JBoss by Red Hat. All rights reserved.