public enum SurrogateColumnType extends Enum<SurrogateColumnType>
fieldNumberis used where we need to pass a list of fields to be fetched, or updated, and want to include surrogate fields. The normal fields of a class are numbered from 0 upwards, so we use negative numbers for the surrogates.
| Enum Constant and Description |
|---|
CREATE_TIMESTAMP |
CREATE_USER |
DATASTORE_ID |
DISCRIMINATOR |
MULTITENANCY |
SOFTDELETE |
UPDATE_TIMESTAMP |
UPDATE_USER |
VERSION |
| Modifier and Type | Method and Description |
|---|---|
int |
getFieldNumber() |
static SurrogateColumnType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SurrogateColumnType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SurrogateColumnType DATASTORE_ID
public static final SurrogateColumnType VERSION
public static final SurrogateColumnType DISCRIMINATOR
public static final SurrogateColumnType MULTITENANCY
public static final SurrogateColumnType CREATE_TIMESTAMP
public static final SurrogateColumnType UPDATE_TIMESTAMP
public static final SurrogateColumnType SOFTDELETE
public static final SurrogateColumnType CREATE_USER
public static final SurrogateColumnType UPDATE_USER
public static SurrogateColumnType[] values()
for (SurrogateColumnType c : SurrogateColumnType.values()) System.out.println(c);
public static SurrogateColumnType 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 int getFieldNumber()
Copyright © 2020. All rights reserved.