|
SolarMetric Kodo JDO 2.4.3 generated on March 27 2003 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.solarmetric.kodo.util.ObjectIds
Utility class for manipulating JDO object IDs.
| Inner Class Summary | |
|---|---|
static class |
ObjectIds.Id
Type for generated data store identity classes. |
| Constructor Summary | |
|---|---|
ObjectIds()
|
|
| Method Summary | |
|---|---|
static Object |
copy(ClassMetaData meta,
Object oid)
Copy the given oid value. |
static Object |
fromPKValues(ClassMetaData meta,
Object[] pks)
Return a new object id constructed from the given primary key values. |
static ClassMetaData |
getMetaData(Object oid,
ClassResolver loader)
Return the least-derived concrete registered persistent class for the given oid. |
static Object |
objectIdFromString(String idstr,
ClassResolver loader)
|
static String |
objectIdToString(Object id)
Wrap the specified object ID class in a String that will contain the owning class. |
static void |
register(ClassMetaData meta)
Register a persistent type. |
static Object[] |
toPKValues(ClassMetaData meta,
Object oid)
Return the primary key values for the given object id. |
static Object |
validateId(Object id,
Object compare)
Validate that the hashCode and equals method of an Object ID class fulfill the requirements of the JDO specification. |
static void |
validateObjectId(ClassMetaData meta,
Object id)
Validate the specified id class if it the first time we have seen it. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ObjectIds()
| Method Detail |
public static void register(ClassMetaData meta)
public static ClassMetaData getMetaData(Object oid,
ClassResolver loader)
public static Object copy(ClassMetaData meta,
Object oid)
public static void validateObjectId(ClassMetaData meta,
Object id)
JDOFatalUserException - if the specified object ID class does
not correctly override the hashCode() and equals()
methods.
public static Object validateId(Object id,
Object compare)
JDOFatalUserException - if the specified object ID class does
not correctly override the hashCode() and equals()
methods.public static String objectIdToString(Object id)
The serialized object ID will be of the form: <classname>:id.toString()
JDOUserException - if the class of the
application id cannot be loaded.
public static Object objectIdFromString(String idstr,
ClassResolver loader)
public static Object[] toPKValues(ClassMetaData meta,
Object oid)
public static Object fromPKValues(ClassMetaData meta,
Object[] pks)
|
SolarMetric Kodo JDO 2.4.3 generated on March 27 2003 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||