public enum AccessStyle extends Enum<AccessStyle>
Enum Constant and Description |
---|
FIELD
The persistent attributes are read using field access.
|
METHOD
The persistent attributes are read using method access.
|
Modifier and Type | Method and Description |
---|---|
abstract <E> Iterable<AttributeAccessor> |
getDeclaredAttributes(Class<E> inspectedClass,
Class<? extends E> implementationClass)
Finds all attributes of the current access type that are referenced in the given class.
|
static AccessStyle |
getStyle(javax.persistence.AccessType type)
Determines the correct mapping to the style for the given accesstype.
|
static AccessStyle |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AccessStyle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AccessStyle FIELD
public static final AccessStyle METHOD
public static AccessStyle[] values()
for (AccessStyle c : AccessStyle.values()) System.out.println(c);
public static AccessStyle 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 static AccessStyle getStyle(javax.persistence.AccessType type)
type
- the access type as defined in an Access
annotation.public abstract <E> Iterable<AttributeAccessor> getDeclaredAttributes(Class<E> inspectedClass, Class<? extends E> implementationClass)
inspectedClass
- the class to inspectimplementationClass
- the class that is actually the type of the object, either inspectedClass
or a sub class -
necessary for resolving genericsCopyright © 2022 fastnate.org. All rights reserved.