org.datanucleus.store.mapped.exceptions
Class TooManyForeignKeysException

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.NucleusDataStoreException
                      extended by org.datanucleus.store.mapped.exceptions.TooManyForeignKeysException
All Implemented Interfaces:
java.io.Serializable

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

LOCALISER

protected static final Localiser LOCALISER
Constructor Detail

TooManyForeignKeysException

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

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


Copyright © 2010. All Rights Reserved.