public enum PropertyNameFieldNamingStrategy extends Enum<PropertyNameFieldNamingStrategy> implements FieldNamingStrategy
FieldNamingStrategy
simply using the PersistentProperty
's name.Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
String |
getFieldName(PersistentProperty<?> property)
Returns the field name to be used for the given
PersistentProperty . |
static PropertyNameFieldNamingStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PropertyNameFieldNamingStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PropertyNameFieldNamingStrategy INSTANCE
public static PropertyNameFieldNamingStrategy[] values()
for (PropertyNameFieldNamingStrategy c : PropertyNameFieldNamingStrategy.values()) System.out.println(c);
public static PropertyNameFieldNamingStrategy 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 getFieldName(PersistentProperty<?> property)
FieldNamingStrategy
PersistentProperty
.getFieldName
in interface FieldNamingStrategy
property
- must not be null or empty;Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.