@API(value=STABLE) public class RecordIndexUniquenessViolation extends RecordCoreException
saveRecord
that caused the violation,
but it will always be thrown before commit
would have completed successfully. When this is thrown,
commit
will not complete successfully, whether it was thrown earlier or from FDBRecordContext.commit()
itself.Constructor and Description |
---|
RecordIndexUniquenessViolation(Index index,
IndexEntry indexEntry,
Tuple primaryKey,
Tuple existingKey) |
RecordIndexUniquenessViolation(String message,
RecordIndexUniquenessViolation cause) |
Modifier and Type | Method and Description |
---|---|
Tuple |
getExistingKey()
Get the existing key of this uniqueness violation.
|
Index |
getIndex()
Get the index associated with this uniqueness violation.
|
IndexEntry |
getIndexEntry()
Get the index value of this uniqueness violation.
|
Tuple |
getPrimaryKey()
Get the primary key of this uniqueness violation.
|
addLogInfo, addLogInfo
exportLogInfo, getLogInfo
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public RecordIndexUniquenessViolation(@Nonnull Index index, IndexEntry indexEntry, Tuple primaryKey, Tuple existingKey)
public RecordIndexUniquenessViolation(String message, RecordIndexUniquenessViolation cause)
@Nonnull public Index getIndex()
@Nullable public IndexEntry getIndexEntry()
@Nullable public Tuple getPrimaryKey()