private static class DeferredConstraintsMemory.UniquePkInfo extends DeferredConstraintsMemory.ValidationInfo
Modifier and Type | Field | Description |
---|---|---|
private UUID |
constraintId |
infoRows
Constructor | Description |
---|---|
UniquePkInfo(BackingStoreHashtable infoRows,
UUID constraintId) |
Modifier and Type | Method | Description |
---|---|---|
void |
possiblyValidateOnReturn(LanguageConnectionContext lcc,
SQLSessionContext nested,
SQLSessionContext caller) |
|
void |
validateConstraint(LanguageConnectionContext lcc,
UUID constraintId,
boolean rollbackOnError) |
Validate one primary key or unique constraint
|
private void |
validateUniquePK(LanguageConnectionContext lcc,
BackingStoreHashtable ht,
boolean rollbackOnError) |
private final UUID constraintId
public UniquePkInfo(BackingStoreHashtable infoRows, UUID constraintId)
public final void possiblyValidateOnReturn(LanguageConnectionContext lcc, SQLSessionContext nested, SQLSessionContext caller) throws StandardException
possiblyValidateOnReturn
in class DeferredConstraintsMemory.ValidationInfo
StandardException
public final void validateConstraint(LanguageConnectionContext lcc, UUID constraintId, boolean rollbackOnError) throws StandardException
validateConstraint
in class DeferredConstraintsMemory.ValidationInfo
lcc
- The language connection contextconstraintId
- Not used by this constraint typerollbackOnError
- true
if we should roll back the
transaction if we see a violation of the constraintStandardException
private void validateUniquePK(LanguageConnectionContext lcc, BackingStoreHashtable ht, boolean rollbackOnError) throws StandardException
StandardException
Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.