public enum AccessType extends Enum<AccessType>
Enum defining different access strategies for accessing entity values.
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
Default access strategy is property
public static final AccessType PROPERTY
Access to value via property
public static final AccessType FIELD
Access to value via 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()
Retrieves the external name for this access type
public static AccessType getAccessStrategy(String externalName)
Resolve an externalized name to the AccessType enum value it names.
externalName
- The external nameDEFAULT
is returned rather than null
public static AccessType getAccessStrategy(AccessType type)
Convert the JPA access type enum to the corresponding AccessType enum value.
type
- The JPA enum valueCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.