public class ValueStrategies extends Object
Modifier and Type | Field and Description |
---|---|
static int |
AUTOASSIGN
"autoassigned" value strategy.
|
static int |
INCREMENT
"increment" value strategy.
|
static int |
NATIVE
"native" value strategy.
|
static int |
NONE
No value strategy.
|
static int |
SEQUENCE
"sequence" value strategy.
|
static int |
UUID_HEX
"uuid-hex" value strategy.
|
static int |
UUID_STRING
"uuid-string" value strategy.
|
static int |
UUID_TYPE4_HEX
"uuid-type4-hex" value strategy.
|
static int |
UUID_TYPE4_STRING
"uuid-type4-string" value strategy.
|
Constructor and Description |
---|
ValueStrategies() |
Modifier and Type | Method and Description |
---|---|
static void |
assertSupported(int strategy,
MetaDataContext context,
String attributeName)
Assert that the given strategy is supported by the current runtime.
|
static int |
getCode(String val,
Object context)
Convert the given strategy name to its constant.
|
static String |
getName(int strategy)
Convert the given strategy to a name.
|
public static final int NONE
public static final int NATIVE
public static final int SEQUENCE
public static final int AUTOASSIGN
public static final int INCREMENT
public static final int UUID_STRING
public static final int UUID_HEX
public static final int UUID_TYPE4_STRING
public static final int UUID_TYPE4_HEX
public static String getName(int strategy)
public static int getCode(String val, Object context)
public static void assertSupported(int strategy, MetaDataContext context, String attributeName)
Copyright © 2006–2019 Apache Software Foundation. All rights reserved.