Home » jdo2-tck-2.3-ea-src » org.apache.jdo.tck.api.persistencecapable » [javadoc | source]
org.apache.jdo.tck.api.persistencecapable
public class: NewObjectIdInstance [javadoc | source]
java.lang.Object
   org.apache.jdo.tck.JDO_Test
      org.apache.jdo.tck.api.persistencecapable.AbstractPersistenceCapableTest
         org.apache.jdo.tck.api.persistencecapable.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.

Method from org.apache.jdo.tck.api.persistencecapable.NewObjectIdInstance Summary:
main,   testSingleFieldIdentityInitializedByte,   testSingleFieldIdentityInitializedCharacter,   testSingleFieldIdentityInitializedDate,   testSingleFieldIdentityInitializedInteger,   testSingleFieldIdentityInitializedLong,   testSingleFieldIdentityInitializedShort,   testSingleFieldIdentityInitializedString,   testSingleFieldIdentityInitializedbyte,   testSingleFieldIdentityInitializedchar,   testSingleFieldIdentityInitializedint,   testSingleFieldIdentityInitializedlong,   testSingleFieldIdentityInitializedshort,   testSingleFieldIdentityNotInitializedByte,   testSingleFieldIdentityNotInitializedCharacter,   testSingleFieldIdentityNotInitializedDate,   testSingleFieldIdentityNotInitializedInteger,   testSingleFieldIdentityNotInitializedLong,   testSingleFieldIdentityNotInitializedShort,   testSingleFieldIdentityNotInitializedString
Methods from org.apache.jdo.tck.api.persistencecapable.AbstractPersistenceCapableTest:
assertPersistenceCapable,   isTestToBePerformed,   makePersistent
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.jdo.tck.api.persistencecapable.NewObjectIdInstance Detail:
 public static  void main(String[] args) 
    The main is called when the class is directly executed from the command line.
 public  void testSingleFieldIdentityInitializedByte() 
 public  void testSingleFieldIdentityInitializedCharacter() 
 public  void testSingleFieldIdentityInitializedDate() 
 public  void testSingleFieldIdentityInitializedInteger() 
 public  void testSingleFieldIdentityInitializedLong() 
 public  void testSingleFieldIdentityInitializedShort() 
 public  void testSingleFieldIdentityInitializedString() 
 public  void testSingleFieldIdentityInitializedbyte() 
 public  void testSingleFieldIdentityInitializedchar() 
 public  void testSingleFieldIdentityInitializedint() 
 public  void testSingleFieldIdentityInitializedlong() 
 public  void testSingleFieldIdentityInitializedshort() 
 public  void testSingleFieldIdentityNotInitializedByte() 
 public  void testSingleFieldIdentityNotInitializedCharacter() 
 public  void testSingleFieldIdentityNotInitializedDate() 
 public  void testSingleFieldIdentityNotInitializedInteger() 
 public  void testSingleFieldIdentityNotInitializedLong() 
 public  void testSingleFieldIdentityNotInitializedShort() 
 public  void testSingleFieldIdentityNotInitializedString()