Class PrimaryKey

  • All Implemented Interfaces:
    java.io.Serializable

    public class PrimaryKey
    extends LocalConstraint
    Represents a table primary key. It can also represent a partial key, aligning with the key information available from DatabaseMetaData.
    Author:
    Abe White
    See Also:
    Serialized Form
    • Constructor Detail

      • PrimaryKey

        public PrimaryKey()
        Default constructor.
      • PrimaryKey

        @Deprecated
        public PrimaryKey​(java.lang.String name,
                          Table table)
        Deprecated.
        Constructor.
        Parameters:
        name - the name of the primary key, if any
        table - the table of the primary key
    • 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
      • setLogical

        public void setLogical​(boolean logical)
      • equalsPrimaryKey

        public boolean equalsPrimaryKey​(PrimaryKey pk)
        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()