|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.util.ApplicationIds
public class ApplicationIds
Utility class for manipulating application object ids.
Constructor Summary | |
---|---|
ApplicationIds()
|
Method Summary | |
---|---|
static boolean |
assign(OpenJPAStateManager sm,
StoreManager store,
boolean preFlush)
Assign an application identity object to the given state, or return false if determining the application identity requires a flush. |
static Object |
copy(Object oid,
ClassMetaData meta)
Copy the given oid value. |
static Object |
create(PersistenceCapable pc,
ClassMetaData meta)
Generate an application id based on the current primary key field state of the given instance. |
static Object |
fromPKValues(Object[] pks,
ClassMetaData meta)
Return a new object id constructed from the given primary key values. |
static Object |
get(Object oid,
FieldMetaData fmd)
Return the given primary key field value from the given oid. |
static Object |
getKey(Object id,
ClassMetaData meta)
Return the key from the given id. |
static boolean |
isIdSet(Object id,
ClassMetaData meta,
String mappedByIdFieldName)
Check if object id is set or not. |
static Object[] |
toPKValues(Object oid,
ClassMetaData meta)
Return the primary key values for the given object id. |
static Object |
wrap(ClassMetaData meta,
Object oid)
Wraps the given object for the given type into a OpenJPA specific application identity object wrapper instance (i.e. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ApplicationIds()
Method Detail |
---|
public static Object[] toPKValues(Object oid, ClassMetaData meta)
FieldMetaData#isObjectIdFieldIdOfPC
).
public static Object wrap(ClassMetaData meta, Object oid)
public static Object fromPKValues(Object[] pks, ClassMetaData meta)
FieldMetaData#isObjectIdFieldIdOfPC
).
public static Object copy(Object oid, ClassMetaData meta)
public static Object get(Object oid, FieldMetaData fmd)
public static Object create(PersistenceCapable pc, ClassMetaData meta)
public static boolean assign(OpenJPAStateManager sm, StoreManager store, boolean preFlush)
public static boolean isIdSet(Object id, ClassMetaData meta, String mappedByIdFieldName)
public static Object getKey(Object id, ClassMetaData meta)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |