|
Berkeley DB Java Edition version 5.0.34 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.sleepycat.je.DatabaseException
com.sleepycat.je.OperationFailureException
com.sleepycat.je.SecondaryReferenceException
com.sleepycat.je.SecondaryConstraintException
com.sleepycat.je.ForeignConstraintException
public class ForeignConstraintException
Thrown when an attempt to write a primary database record would insert a secondary record with a key that does not exist in a foreign key database, when the secondary key is configured as a foreign key.
When using the base API (com.sleepycat.je
), this can occur when a
SecondaryDatabase
is configured to be associated with a foreign key
database (see SecondaryConfig.setForeignKeyDatabase(com.sleepycat.je.Database)
).
When using the DPL (com.sleepycat.persist
), this can occur when a
SecondaryKey
is defined with a SecondaryKey.relatedEntity()
.
The Transaction
handle is invalidated as a result of this
exception.
Method Summary |
---|
Methods inherited from class com.sleepycat.je.SecondaryReferenceException |
---|
getPrimaryKey, getSecondaryDatabaseName, getSecondaryKey |
Methods inherited from class com.sleepycat.je.DatabaseException |
---|
getMessage |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
|
Berkeley DB Java Edition version 5.0.34 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |