Class WrongPrimaryKeyException

  • All Implemented Interfaces:
    java.io.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:
    Column, Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static long serialVersionUID  
    • Constructor Summary

      Constructors 
      Constructor Description
      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, setNestedException
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toString
      • 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.