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(Locker locker,
String message,
String secDbName,
String priDbName,
DatabaseEntry secKey,
DatabaseEntry priKey,
long priLsn,
long expirationTime,
ExtinctionFilter.ExtinctionStatus extinctionStatus)
For internal use only.
|
| Modifier and Type | Method and Description |
|---|---|
OperationFailureException |
wrapSelf(String msg)
For internal use only.
|
getExpirationTime, getPrimaryDatabaseName, getPrimaryKey, getPrimaryLsn, getSecondaryDatabaseName, getSecondaryKeyisReplicaWriteaddErrorMessage, addRethrownStackTrace, getMessage, getVersionHeaderaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ForeignConstraintException(Locker locker, String message, String secDbName, String priDbName, DatabaseEntry secKey, DatabaseEntry priKey, long priLsn, long expirationTime, ExtinctionFilter.ExtinctionStatus extinctionStatus)
public OperationFailureException wrapSelf(String msg)
wrapSelf in class OperationFailureExceptionCopyright © 2024. All rights reserved.