Home » jdo2-tck-2.3-ea-src » org.apache.jdo.tck » api » persistencecapable »

org.apache.jdo.tck.api.persistencecapable

Abstract Classes:

AbstractPersistenceCapableTest   This class is the super class for all persistence-capable tests.  code | html

Classes:

CopyKeyFieldsFromObjectId   Title:CopyKeyFieldsFromObjectId of PersistenceCapable
Keywords: persistencecapable
Assertion IDs: A7.12-25
Assertion Description:

A7.12-25
public void jdoCopyKeyFieldsFromObjectId(ObjectIdFieldConsumer fc, Object oid); This method copies fields to the field manager instance from the second parameter instance. 

code | html
CopyKeyFieldsFromObjectId.ObjectIdFieldConsumer     code | html
NewObjectIdInstance   Title:NewObjectIdInstance of PersistenceCapable
Keywords: persistencecapable
Assertion IDs: A7.12-38, A7.12-39
Assertion Description:

A7.12-38:
For classes using single field identity method PersistenceCapable.newObjectIdInstance() must be called on a persistent instance with its primary key field initialized, or a JDONullIdentityException is thrown.

A7.12-39:
The instance returned is initialized with the value of the primary key field of the instance on which the method is called. 

code | html