Documentation of 'org.apache.derby.iapi.sql.dictionary.SubKeyConstraintDescriptor' Java class
SubKeyConstraintDescriptor
org.apache.derby.iapi.sql.dictionary

Class SubKeyConstraintDescriptor



  • public class SubKeyConstraintDescriptor
    extends SubConstraintDescriptor
    This interface is used to get information from a SubKeyConstraintDescriptor. A SubKeyConstraintDescriptor is used within the DataDictionary to get auxiliary constraint information from the system table that is auxiliary to sysconstraints.
    • Constructor Detail

      • SubKeyConstraintDescriptor

        public SubKeyConstraintDescriptor(UUID constraintId,
                                          UUID indexId)
        Constructor for a SubConstraintDescriptorImpl
        Parameters:
        constraintId - The UUID of the constraint.
        indexId - The UUID of the backing index.
      • SubKeyConstraintDescriptor

        public SubKeyConstraintDescriptor(UUID constraintId,
                                          UUID indexId,
                                          UUID keyConstraintId)
        Constructor for a SubConstraintDescriptor
        Parameters:
        constraintId - The UUID of the constraint.
        indexId - The UUID of the backing index.
        keyConstraintId - The UUID of the referenced constraint (fks)
      • SubKeyConstraintDescriptor

        public SubKeyConstraintDescriptor(UUID constraintId,
                                          UUID indexId,
                                          UUID keyConstraintId,
                                          int raDeleteRule,
                                          int raUpdateRule)
        Constructor for a SubConstraintDescriptor
        Parameters:
        constraintId - The UUID of the constraint.
        indexId - The UUID of the backing index.
        keyConstraintId - The UUID of the referenced constraint (fks)
        raDeleteRule - The referential action for delete
        raUpdateRule - The referential action for update
    • Method Detail

      • getIndexId

        public UUID getIndexId()
        Gets the UUID of the backing index.
        Returns:
        The UUID of the backing index.
      • getKeyConstraintId

        public UUID getKeyConstraintId()
        Gets the UUID of the referenced key constraint
        Returns:
        The UUID of the referenced key constraint
      • hasBackingIndex

        public boolean hasBackingIndex()
        Does this constraint have a backing index?
        Specified by:
        hasBackingIndex in class SubConstraintDescriptor
        Returns:
        boolean Whether or not there is a backing index for this constraint.
      • getRaDeleteRule

        public int getRaDeleteRule()
        Gets a referential action rule on a DELETE
        Returns:
        referential rule defined by the user during foreign key creattion for a delete (like CASCDE , RESTRICT ..etc)
      • getRaUpdateRule

        public int getRaUpdateRule()
        Gets a referential action rule on a UPDATE
        Returns:
        referential rule defined by the user during foreign key creattion for an UPDATE (like CASCDE , RESTRICT ..etc)
      • toString

        public java.lang.String toString()
        Convert the SubKeyConstraintDescriptor to a String.
        Overrides:
        toString in class SubConstraintDescriptor
        Returns:
        A String representation of this SubConstraintDescriptor

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.