org.datanucleus.metadata
Class InvalidPrimaryKeyException

java.lang.Object
  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.NucleusUserException
                      extended by org.datanucleus.metadata.InvalidMetaDataException
                          extended by org.datanucleus.metadata.InvalidPrimaryKeyException
All Implemented Interfaces:
java.io.Serializable

public class InvalidPrimaryKeyException
extends InvalidMetaDataException

Exception thrown when a primary key class is found to be invalid for some reason. This is due to an invalid specification of MetaData, or maybe the class specified is just wrong, but we just throw it as a meta-data issue.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.datanucleus.metadata.InvalidMetaDataException
cause, messageKey
 
Constructor Summary
InvalidPrimaryKeyException(Localiser localiser, java.lang.String key, java.lang.Object param1)
          Constructor with message resource, message param
InvalidPrimaryKeyException(Localiser localiser, java.lang.String key, java.lang.Object param1, java.lang.Object param2)
          Constructor with message resource, message params
InvalidPrimaryKeyException(Localiser localiser, java.lang.String key, java.lang.Object param1, java.lang.Object param2, java.lang.Object param3)
          Constructor with message resource, message params
InvalidPrimaryKeyException(Localiser localiser, java.lang.String key, java.lang.Object param1, java.lang.Object param2, java.lang.Object param3, java.lang.Object param4)
          Constructor with message resource, message params
InvalidPrimaryKeyException(Localiser localiser, java.lang.String key, java.lang.Object param1, java.lang.Object param2, java.lang.Object param3, java.lang.Object param4, java.lang.Object param5)
          Constructor with message resource, message params
 
Method Summary
 
Methods inherited from class org.datanucleus.metadata.InvalidMetaDataException
getMessageKey, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class org.datanucleus.exceptions.NucleusException
getCause, getFailedObject, getNestedExceptions, isFatal, 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

InvalidPrimaryKeyException

public InvalidPrimaryKeyException(Localiser localiser,
                                  java.lang.String key,
                                  java.lang.Object param1)
Constructor with message resource, message param

Parameters:
localiser - message resources
key - message resources key
param1 - message resources param0

InvalidPrimaryKeyException

public InvalidPrimaryKeyException(Localiser localiser,
                                  java.lang.String key,
                                  java.lang.Object param1,
                                  java.lang.Object param2)
Constructor with message resource, message params

Parameters:
localiser - message resources
key - message resources key
param1 - message resources param0
param2 - message resources param1

InvalidPrimaryKeyException

public InvalidPrimaryKeyException(Localiser localiser,
                                  java.lang.String key,
                                  java.lang.Object param1,
                                  java.lang.Object param2,
                                  java.lang.Object param3)
Constructor with message resource, message params

Parameters:
localiser - message resources
key - message resources key
param1 - message resources param0
param2 - message resources param1
param3 - message resources param2

InvalidPrimaryKeyException

public InvalidPrimaryKeyException(Localiser localiser,
                                  java.lang.String key,
                                  java.lang.Object param1,
                                  java.lang.Object param2,
                                  java.lang.Object param3,
                                  java.lang.Object param4)
Constructor with message resource, message params

Parameters:
localiser - message resources
key - message resources key
param1 - message resources param1
param2 - message resources param2
param3 - message resources param3
param4 - message resources param4

InvalidPrimaryKeyException

public InvalidPrimaryKeyException(Localiser localiser,
                                  java.lang.String key,
                                  java.lang.Object param1,
                                  java.lang.Object param2,
                                  java.lang.Object param3,
                                  java.lang.Object param4,
                                  java.lang.Object param5)
Constructor with message resource, message params

Parameters:
localiser - message resources
key - message resources key
param1 - message resources param1
param2 - message resources param2
param3 - message resources param3
param4 - message resources param4
param5 - message resources param5


Copyright © 2011. All Rights Reserved.