public class ForeignConstraintException extends SecondaryConstraintException
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.
| Constructor and Description |
|---|
ForeignConstraintException(com.sleepycat.je.txn.Locker locker,
java.lang.String message,
java.lang.String secDbName,
DatabaseEntry secKey,
DatabaseEntry priKey)
For internal use only.
|
| Modifier and Type | Method and Description |
|---|---|
OperationFailureException |
wrapSelf(java.lang.String msg)
For internal use only.
|
getPrimaryKey, getSecondaryDatabaseName, getSecondaryKeyaddErrorMessage, addRethrownStackTrace, getMessage, getVersionHeaderpublic ForeignConstraintException(com.sleepycat.je.txn.Locker locker,
java.lang.String message,
java.lang.String secDbName,
DatabaseEntry secKey,
DatabaseEntry priKey)
public OperationFailureException wrapSelf(java.lang.String msg)
wrapSelf in class OperationFailureExceptionCopyright (c) 2002, 2015 Oracle and/or its affiliates. All rights reserved.