public enum AccessType extends Enum<AccessType>
Enum Constant and Description |
---|
DEFAULT
Default access strategy is property
|
FIELD
Access to value via field
|
PROPERTY
Access to value via property
|
Modifier and Type | Method and Description |
---|---|
static AccessType |
getAccessStrategy(AccessType type)
Convert the JPA access type enum to the corresponding AccessType enum value.
|
static AccessType |
getAccessStrategy(String externalName)
Resolve an externalized name to the AccessType enum value it names.
|
String |
getType()
Retrieves the external name for this access type
|
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 DEFAULT
public static final AccessType PROPERTY
public static final AccessType FIELD
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 getType()
public static AccessType getAccessStrategy(String externalName)
externalName
- The external nameDEFAULT
is returned rather than null
public static AccessType getAccessStrategy(AccessType type)
type
- The JPA enum valueCopyright © 2019 JBoss by Red Hat. All rights reserved.