Class WrongPrimaryKeyException

  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.datanucleus.exceptions.NucleusException
                  extended by org.datanucleus.exceptions.NucleusDataStoreException
                      extended by
                          extended by
All Implemented Interfaces:

public class WrongPrimaryKeyException

A WrongPrimaryKeyException is thrown if a table is detected not to have the expected primary key in the database during schema validation.

See Also:
Column, Serialized Form

Field Summary
Fields inherited from class
Constructor Summary
WrongPrimaryKeyException(java.lang.String table_name, java.lang.String expected_pk, java.lang.String actual_pks)
          Constructs a wrong primary key exception.
Method Summary
Methods inherited from class org.datanucleus.exceptions.NucleusException
getCause, getFailedObject, getNestedExceptions, isFatal, printStackTrace, printStackTrace, printStackTrace, setFatal
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


public WrongPrimaryKeyException(java.lang.String table_name,
                                java.lang.String expected_pk,
                                java.lang.String actual_pks)
Constructs a wrong primary key exception.

table_name - The table having the wrong primary key.
expected_pk - The expected primary key of the table.
actual_pks - The actual primary key(s) of the table.

Copyright © 2009. All Rights Reserved.