Class UniqueConstraint

    • Constructor Detail

      • UniqueConstraint

        public UniqueConstraint()
    • Method Detail

      • getContainingObjects

        public DatabaseObject[] getContainingObjects()
      • getName

        public String getName()
      • setName

        public UniqueConstraint setName​(String constraintName)
        Description copied from interface: DatabaseObject
        Sets the name for the database object.
        constraintName - the new name for the database object
        a reference to the same object (implementing classes are expected to return a reference to the same object).
      • getSchema

        public Schema getSchema()
      • getRelation

        public Relation getRelation()
      • isDeferrable

        public boolean isDeferrable()
      • shouldValidate

        public boolean shouldValidate()
        In Oracle PL/SQL, the VALIDATE keyword defines whether a newly added unique constraint on a column in a table should cause existing rows to be checked to see if they satisfy the uniqueness constraint or not.
        true if ENABLE VALIDATE (this is the default), or false if ENABLE NOVALIDATE.
      • setShouldValidate

        public UniqueConstraint setShouldValidate​(boolean shouldValidate)
        shouldValidate - - if shouldValidate is set to FALSE then the constraint will be created with the 'ENABLE NOVALIDATE' mode. This means the constraint would be created, but that no check will be done to ensure old data has valid constraints - only new data would be checked to see if it complies with the constraint logic. The default state for unique constraints is to have 'ENABLE VALIDATE' set.
      • isInitiallyDeferred

        public boolean isInitiallyDeferred()
      • setInitiallyDeferred

        public UniqueConstraint setInitiallyDeferred​(boolean initiallyDeferred)
      • getColumnNames

        public String getColumnNames()
      • isDisabled

        public boolean isDisabled()
      • getBackingIndex

        public Index getBackingIndex()
      • isClustered

        public boolean isClustered()
      • hashCode

        public int hashCode()
        hashCode in class Object