Package org.apache.openjpa.util
Class ArrayStateImage
- java.lang.Object
-
- org.apache.openjpa.util.ArrayStateImage
-
-
Constructor Summary
Constructors Constructor Description ArrayStateImage()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Object[]
clone(Object[] state)
Clone a state array.static BitSet
getLoaded(Object[] state)
Get the loaded mask from a state image.static boolean
isImage(Object obj)
Return true if the given version object appears to be an array state image.static Object[]
newImage(int numFields)
Create a new state image for the given number of fields.static boolean
sameVersion(Object[] state1, Object[] state2)
Return whether the given images are equivalent from an optimistic locking perspective.static void
setLoaded(Object[] state, BitSet loaded)
Set the loaded mask into a state image.
-
-
-
Method Detail
-
newImage
public static Object[] newImage(int numFields)
Create a new state image for the given number of fields.
-
isImage
public static boolean isImage(Object obj)
Return true if the given version object appears to be an array state image.
-
setLoaded
public static void setLoaded(Object[] state, BitSet loaded)
Set the loaded mask into a state image.
-
-