Package org.apache.openjpa.meta
Class ValueStrategies
java.lang.Object
org.apache.openjpa.meta.ValueStrategies
Strategies for persistent value generation.
- Since:
- 0.4.0
- Author:
- Abe White
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
"autoassigned" value strategy.static final int
"increment" value strategy.static final int
"native" value strategy.static final int
No value strategy.static final int
"sequence" value strategy.static final int
"uuid-hex" value strategy.static final int
"uuid-string" value strategy.static final int
"uuid-type4-hex" value strategy.static final int
"uuid-type4-string" value strategy. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
assertSupported
(int strategy, MetaDataContext context, String attributeName) Assert that the given strategy is supported by the current runtime.static int
Convert the given strategy name to its constant.static String
getName
(int strategy) Convert the given strategy to a name.
-
Field Details
-
NONE
public static final int NONENo value strategy.- See Also:
-
NATIVE
public static final int NATIVE"native" value strategy.- See Also:
-
SEQUENCE
public static final int SEQUENCE"sequence" value strategy.- See Also:
-
AUTOASSIGN
public static final int AUTOASSIGN"autoassigned" value strategy.- See Also:
-
INCREMENT
public static final int INCREMENT"increment" value strategy.- See Also:
-
UUID_STRING
public static final int UUID_STRING"uuid-string" value strategy.- See Also:
-
UUID_HEX
public static final int UUID_HEX"uuid-hex" value strategy.- See Also:
-
UUID_TYPE4_STRING
public static final int UUID_TYPE4_STRING"uuid-type4-string" value strategy.- See Also:
-
UUID_TYPE4_HEX
public static final int UUID_TYPE4_HEX"uuid-type4-hex" value strategy.- See Also:
-
-
Constructor Details
-
ValueStrategies
public ValueStrategies()
-
-
Method Details
-
getName
Convert the given strategy to a name. -
getCode
Convert the given strategy name to its constant. -
assertSupported
Assert that the given strategy is supported by the current runtime.
-