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

Class ConstraintDescriptorList

    • Constructor Detail

      • ConstraintDescriptorList

        public ConstraintDescriptorList()
    • Method Detail

      • setScanned

        public void setScanned(boolean scanned)
        Mark whether or not the underlying system table has been scanned. (If a table does not have any constraints then the size of its CDL will always be 0. We used these get/set methods to determine when we need to scan the table.
        Parameters:
        scanned - Whether or not the underlying system table has been scanned.
      • getScanned

        public boolean getScanned()
        Return whether or not the underlying system table has been scanned.
        Returns:
        Where or not the underlying system table has been scanned.
      • getConstraintDescriptor

        public ConstraintDescriptor getConstraintDescriptor(UUID indexUUID)
        Get the ConstraintDescriptor with the matching UUID String for the backing index.
        Parameters:
        indexUUID - The UUID for the backing index.
        Returns:
        The matching ConstraintDescriptor.
      • getConstraintDescriptorById

        public ConstraintDescriptor getConstraintDescriptorById(UUID uuid)
        Get the ConstraintDescriptor with the matching constraint id.
        Parameters:
        uuid - The constraint id.
        Returns:
        The matching ConstraintDescriptor.
      • dropConstraintDescriptorById

        public ConstraintDescriptor dropConstraintDescriptorById(UUID uuid)
        Drop the constraint with the given UUID.
        Parameters:
        uuid - The constraint id.
        Returns:
        The matching ConstraintDescriptor.
      • getConstraintDescriptorByName

        public ConstraintDescriptor getConstraintDescriptorByName(SchemaDescriptor sd,
                                                                  java.lang.String name)
        Get the ConstraintDescriptor with the matching constraint name.
        Parameters:
        sd - The constraint schema descriptor.
        name - The constraint name.
        Returns:
        The matching ConstraintDescriptor.
      • getPrimaryKey

        public ReferencedKeyConstraintDescriptor getPrimaryKey()
        Get the ConstraintDescriptor with the matching constraint name.
        Returns:
        The matching ConstraintDescriptor.
      • getConstraintDescriptorList

        public ConstraintDescriptorList getConstraintDescriptorList(boolean enforced)
        Return a list of constraints where enforced is as passed in.
        Parameters:
        enforced - true or false
        Returns:
        a constraint descriptor list built from this. Always a new list even if all the elements in this were of the correct type (i.e. not optimized for the case where every element is desired).
      • elementAt

        public ConstraintDescriptor elementAt(int n)
        Return the nth (0-based) element in the list.
        Parameters:
        n - Which element to return.
        Returns:
        The nth element in the list.
      • getSubList

        public ConstraintDescriptorList getSubList(int type)
        Return a ConstraintDescriptorList containing the ConstraintDescriptors of the specified type that are in this list.
        Parameters:
        type - The constraint type.
        Returns:
        A ConstraintDescriptorList containing the ConstraintDescriptors of the specified type that are in this list.

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.