Class DeferredConstraintsMemory.UniquePkInfo
java.lang.Object
org.apache.derby.impl.sql.execute.DeferredConstraintsMemory.ValidationInfo
org.apache.derby.impl.sql.execute.DeferredConstraintsMemory.UniquePkInfo
- Enclosing class:
DeferredConstraintsMemory
private static class DeferredConstraintsMemory.UniquePkInfo
extends DeferredConstraintsMemory.ValidationInfo
Info needed for unique and primary key constraints
-
Field Summary
FieldsFields inherited from class DeferredConstraintsMemory.ValidationInfo
infoRows -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidpossiblyValidateOnReturn(LanguageConnectionContext lcc, SQLSessionContext nested, SQLSessionContext caller) final voidvalidateConstraint(LanguageConnectionContext lcc, UUID constraintId, boolean rollbackOnError) Validate one primary key or unique constraintprivate voidvalidateUniquePK(LanguageConnectionContext lcc, BackingStoreHashtable ht, boolean rollbackOnError)
-
Field Details
-
constraintId
-
-
Constructor Details
-
UniquePkInfo
-
-
Method Details
-
possiblyValidateOnReturn
public final void possiblyValidateOnReturn(LanguageConnectionContext lcc, SQLSessionContext nested, SQLSessionContext caller) throws StandardException - Specified by:
possiblyValidateOnReturnin classDeferredConstraintsMemory.ValidationInfo- Throws:
StandardException
-
validateConstraint
public final void validateConstraint(LanguageConnectionContext lcc, UUID constraintId, boolean rollbackOnError) throws StandardException Validate one primary key or unique constraint- Specified by:
validateConstraintin classDeferredConstraintsMemory.ValidationInfo- Parameters:
lcc- The language connection contextconstraintId- Not used by this constraint typerollbackOnError-trueif we should roll back the transaction if we see a violation of the constraint- Throws:
StandardException
-
validateUniquePK
private void validateUniquePK(LanguageConnectionContext lcc, BackingStoreHashtable ht, boolean rollbackOnError) throws StandardException - Throws:
StandardException
-