Enum Class AccessType
- All Implemented Interfaces:
Serializable, Comparable<AccessType>, Constable
Enumerates various access strategies for accessing entity values.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic AccessTypegetAccessStrategy(AccessType type) Convert the JPA access type to the correspondingAccessTypevalue.static AccessTypegetAccessStrategy(String externalName) Resolve an externalized name to theAccessTypevalue it names.getType()Retrieves the external name for this access typestatic AccessTypeReturns the enum constant of this class with the specified name.static AccessType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
Default access strategy is property -
PROPERTY
Access to value via property -
FIELD
Access to value via field -
RECORD
Access to value via record component accessor
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getType
-
getAccessStrategy
Resolve an externalized name to theAccessTypevalue it names.- Parameters:
externalName- The external name- Returns:
- The matching
AccessType;DEFAULTis returned rather thannull
-
getAccessStrategy
Convert the JPA access type to the correspondingAccessTypevalue.- Parameters:
type- The JPA access type- Returns:
- The Hibernate
AccessType
-