public class DeleteConstraintException 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)
), and is also
configured with the ForeignKeyDeleteAction.ABORT
delete action (see
SecondaryConfig.setForeignKeyDeleteAction(com.sleepycat.je.ForeignKeyDeleteAction)
). Note that ABORT
is the default setting.
When using the DPL (com.sleepycat.persist
), this can occur when a
SecondaryKey
is defined with a SecondaryKey.relatedEntity()
, and SecondaryKey.onRelatedEntityDelete()
is DeleteAction.ABORT
(which is the default).
The Transaction
handle is invalidated as a result of this
exception.
Constructor and Description |
---|
DeleteConstraintException(com.sleepycat.je.txn.Locker locker,
String message,
String secDbName,
DatabaseEntry secKey,
DatabaseEntry priKey)
For internal use only.
|
Modifier and Type | Method and Description |
---|---|
OperationFailureException |
wrapSelf(String msg)
For internal use only.
|
getPrimaryKey, getSecondaryDatabaseName, getSecondaryKey
addErrorMessage, addRethrownStackTrace, getMessage, getVersionHeader
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public DeleteConstraintException(com.sleepycat.je.txn.Locker locker, String message, String secDbName, DatabaseEntry secKey, DatabaseEntry priKey)
public OperationFailureException wrapSelf(String msg)
wrapSelf
in class OperationFailureException
Copyright (c) 2002, 2015 Oracle and/or its affiliates. All rights reserved.