Package org.apache.openjpa.meta
Class UpdateStrategies
- java.lang.Object
-
- org.apache.openjpa.meta.UpdateStrategies
-
public class UpdateStrategies extends java.lang.Object
Strategies for persistent value updates.- Since:
- 0.4.0
- Author:
- Abe White
-
-
Constructor Summary
Constructors Constructor Description UpdateStrategies()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
Field Detail
-
NONE
public static final int NONE
No update strategy.- See Also:
- Constant Field Values
-
IGNORE
public static final int IGNORE
Ignore updates; field is always considered clean.- See Also:
- Constant Field Values
-
RESTRICT
public static final int RESTRICT
Throw an exception on attempt to update.- See Also:
- Constant Field Values
-
-