|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.meta.ValueStrategies
public class ValueStrategies
Strategies for persistent value generation.
Field Summary | |
---|---|
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. |
Constructor Summary | |
---|---|
ValueStrategies()
|
Method Summary | |
---|---|
static void |
assertSupported(int strategy,
MetaDataContext context,
java.lang.String attributeName)
Assert that the given strategy is supported by the current runtime. |
static int |
getCode(java.lang.String val,
java.lang.Object context)
Convert the given strategy name to its constant. |
static java.lang.String |
getName(int strategy)
Convert the given strategy to a name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public ValueStrategies()
Method Detail |
---|
public static java.lang.String getName(int strategy)
public static int getCode(java.lang.String val, java.lang.Object context)
public static void assertSupported(int strategy, MetaDataContext context, java.lang.String attributeName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |