Class Unique

  • All Implemented Interfaces:
    java.io.Serializable

    public class Unique
    extends LocalConstraint
    Represents a unique constraint. It can also represent a partial constraint.
    Author:
    Abe White, Pinaki Poddar
    See Also:
    Serialized Form
    • Constructor Detail

      • Unique

        public Unique()
      • Unique

        @Deprecated
        public Unique​(java.lang.String name,
                      Table table)
        Deprecated.
        Construct with given name.
        Parameters:
        name - the name of the constraint, if any
        table - the table of the constraint
    • Method Detail

      • isLogical

        public boolean isLogical()
        Description copied from class: Constraint
        Return whether this constraint is a logical constraint only; i.e. if it does not exist in the database.
        Specified by:
        isLogical in class Constraint
      • setName

        @Deprecated
        public void setName​(java.lang.String name)
        Deprecated.
        Set the name of the constraint. This method cannot be called if the constraint already belongs to a table.
        Overrides:
        setName in class Constraint
      • equalsUnique

        public boolean equalsUnique​(Unique unq)
        Return true if the structure of this primary key matches that of the given one (same table, same columns).
      • getRefCount

        public int getRefCount()
      • ref

        public void ref()
      • deref

        public void deref()