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 org.apache.derby.impl.sql.execute.DeferredConstraintsMemory.ValidationInfo
infoRows
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal void
possiblyValidateOnReturn
(LanguageConnectionContext lcc, SQLSessionContext nested, SQLSessionContext caller) final void
validateConstraint
(LanguageConnectionContext lcc, UUID constraintId, boolean rollbackOnError) Validate one primary key or unique constraintprivate void
validateUniquePK
(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:
possiblyValidateOnReturn
in 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:
validateConstraint
in classDeferredConstraintsMemory.ValidationInfo
- Parameters:
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 constraint- Throws:
StandardException
-
validateUniquePK
private void validateUniquePK(LanguageConnectionContext lcc, BackingStoreHashtable ht, boolean rollbackOnError) throws StandardException - Throws:
StandardException
-