Class TooManyForeignKeysException

  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.NucleusDataStoreException
                      extended by
All Implemented Interfaces:

public class TooManyForeignKeysException
extends NucleusDataStoreException

A TooManyForeignKeysException is thrown when trying to add a foreign key to a table and the table already has the maximum allowed number of foreign keys.

See Also:
Serialized Form

Field Summary
protected static Localiser LOCALISER
Constructor Summary
TooManyForeignKeysException(DatastoreAdapter dba, java.lang.String table_name)
          Constructs a too-many-foreign-keys 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


protected static final Localiser LOCALISER
Constructor Detail


public TooManyForeignKeysException(DatastoreAdapter dba,
                                   java.lang.String table_name)
Constructs a too-many-foreign-keys exception.

dba - the database adapter
table_name - Name of the table with too many FKs

Copyright © 2011. All Rights Reserved.