public enum UserFields extends Enum<UserFields> implements EntityFields
User entity| Enum Constant and Description |
|---|
EMAIL |
FIRST_NAME |
ID |
LAST_NAME |
MIDDLE_NAME |
PASSWORD |
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Get field's name (name of a column in corresponding table)
|
static UserFields |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UserFields[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UserFields ID
public static final UserFields EMAIL
public static final UserFields FIRST_NAME
public static final UserFields LAST_NAME
public static final UserFields MIDDLE_NAME
public static final UserFields PASSWORD
public static UserFields[] values()
for (UserFields c : UserFields.values()) System.out.println(c);
public static UserFields 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 getName()
EntityFieldsgetName in interface EntityFields