Class WrongPrimaryKeyException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.datanucleus.exceptions.NucleusException
org.datanucleus.exceptions.NucleusDataStoreException
org.datanucleus.exceptions.DatastoreValidationException
org.datanucleus.store.rdbms.exceptions.WrongPrimaryKeyException
- All Implemented Interfaces:
Serializable
public class WrongPrimaryKeyException
extends org.datanucleus.exceptions.DatastoreValidationException
A WrongPrimaryKeyException is thrown if a table is detected not to
have the expected primary key in the database during schema validation.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionWrongPrimaryKeyException
(String table_name, String expected_pk, 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, setNestedException
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
WrongPrimaryKeyException
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.
-