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
Fields Modifier and Type Field Description private UUIDconstraintId-
Fields inherited from class org.apache.derby.impl.sql.execute.DeferredConstraintsMemory.ValidationInfo
infoRows
-
-
Constructor Summary
Constructors Constructor Description UniquePkInfo(BackingStoreHashtable infoRows, UUID constraintId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidpossiblyValidateOnReturn(LanguageConnectionContext lcc, SQLSessionContext nested, SQLSessionContext caller)voidvalidateConstraint(LanguageConnectionContext lcc, UUID constraintId, boolean rollbackOnError)Validate one primary key or unique constraintprivate voidvalidateUniquePK(LanguageConnectionContext lcc, BackingStoreHashtable ht, boolean rollbackOnError)
-
-
-
Field Detail
-
constraintId
private final UUID constraintId
-
-
Constructor Detail
-
UniquePkInfo
public UniquePkInfo(BackingStoreHashtable infoRows, UUID constraintId)
-
-
Method Detail
-
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
-
-