org.datanucleus.store.rdbms.exceptions
Class PrimaryKeyColumnNotAllowedException

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.store.rdbms.exceptions.PrimaryKeyColumnNotAllowedException
All Implemented Interfaces:
java.io.Serializable

public class PrimaryKeyColumnNotAllowedException
extends org.datanucleus.exceptions.NucleusException

A PrimaryKeyColumnNotAllowedException is thrown if an attempt is made to add a primary key column to a view.

Version:
$Revision: 1.2 $
See Also:
Serialized Form

Field Summary
protected static org.datanucleus.util.Localiser LOCALISER
           
 
Constructor Summary
PrimaryKeyColumnNotAllowedException(java.lang.String viewName, java.lang.String columnName)
          Constructs a primary key not allowed 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
 

Field Detail

LOCALISER

protected static final org.datanucleus.util.Localiser LOCALISER
Constructor Detail

PrimaryKeyColumnNotAllowedException

public PrimaryKeyColumnNotAllowedException(java.lang.String viewName,
                                           java.lang.String columnName)
Constructs a primary key not allowed exception.

Parameters:
viewName - Name of the view being initialized.
columnName - Name of the column having the duplicate name.


Copyright © 2009. All Rights Reserved.