private static class DeferredConstraintsMemory.UniquePkInfo extends DeferredConstraintsMemory.ValidationInfo
Modifier and Type | Field and Description |
---|---|
private UUID |
constraintId |
infoRows
Constructor and Description |
---|
UniquePkInfo(BackingStoreHashtable infoRows,
UUID constraintId) |
Modifier and Type | Method and 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.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.