Class PrimaryKeyProperties

  • All Implemented Interfaces:
    java.io.Serializable

    public class PrimaryKeyProperties
    extends java.lang.Object
    implements java.io.Serializable
    PrimaryKeyProperties describes the properties of a primary key. It is typically associated with one of the database columns in a database table to indicate that the values stored uniquely identify the row.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object objectToCompare)
      Compare the values of the supplied object with those stored in the current object.
      KeyPattern getKeyPattern()
      Returns the key pattern for the primary key.
      java.lang.String getName()
      Return the name for the primary key.
      int hashCode()
      Return hash code based on properties.
      void setKeyPattern​(KeyPattern keyPattern)
      Set up the key pattern for the primary key.
      void setName​(java.lang.String name)
      Set up name of the primary key.
      java.lang.String toString()
      Standard toString method.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • PrimaryKeyProperties

        public PrimaryKeyProperties()
        Default constructor
      • PrimaryKeyProperties

        public PrimaryKeyProperties​(PrimaryKeyProperties template)
        Copy/clone constructor for a primary key.
        Parameters:
        template - template object to copy.
    • Method Detail

      • setName

        public void setName​(java.lang.String name)
        Set up name of the primary key.
        Parameters:
        name - String
      • getName

        public java.lang.String getName()
        Return the name for the primary key.
        Returns:
        String description
      • setKeyPattern

        public void setKeyPattern​(KeyPattern keyPattern)
        Set up the key pattern for the primary key.
        Parameters:
        keyPattern - String name
      • getKeyPattern

        public KeyPattern getKeyPattern()
        Returns the key pattern for the primary key.
        Returns:
        String name
      • toString

        public java.lang.String toString()
        Standard toString method.
        Overrides:
        toString in class java.lang.Object
        Returns:
        print out of variables in a JSON-style
      • equals

        public boolean equals​(java.lang.Object objectToCompare)
        Compare the values of the supplied object with those stored in the current object.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        objectToCompare - supplied object
        Returns:
        boolean result of comparison
      • hashCode

        public int hashCode()
        Return hash code based on properties.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        int