org.jpox.store.rdbms.exceptions
Class WrongPrimaryKeyException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byjavax.jdo.JDOException
                  extended byjavax.jdo.JDOCanRetryException
                      extended byjavax.jdo.JDODataStoreException
                          extended byorg.jpox.store.exceptions.SchemaValidationException
                              extended byorg.jpox.store.rdbms.exceptions.WrongPrimaryKeyException
All Implemented Interfaces:
java.io.Serializable

public class WrongPrimaryKeyException
extends SchemaValidationException

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

Version:
$Revision: 1.1 $
See Also:
Column, Serialized Form

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

Constructor Detail

WrongPrimaryKeyException

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

Parameters:
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 © -2007 . All Rights Reserved.