Class UniqueKey

java.lang.Object
com.kingsrook.qqq.backend.core.model.metadata.tables.UniqueKey
All Implemented Interfaces:
QMetaDataObject, Serializable

public class UniqueKey extends Object implements QMetaDataObject
Definition of a Unique Key (or "Constraint", if you wanna use fancy words) on a QTable.
See Also:
  • Constructor Details

    • UniqueKey

      public UniqueKey()
      Constructor
    • UniqueKey

      public UniqueKey(List<String> fieldNames)
      Constructor
    • UniqueKey

      public UniqueKey(String... fieldNames)
      Constructor
  • Method Details

    • getFieldNames

      public List<String> getFieldNames()
      Getter for fieldNames
    • setFieldNames

      public void setFieldNames(List<String> fieldNames)
      Setter for fieldNames
    • withFieldNames

      public UniqueKey withFieldNames(List<String> fieldNames)
      Fluent setter for fieldNames
    • getLabel

      public String getLabel()
      Getter for label
    • setLabel

      public void setLabel(String label)
      Setter for label
    • withLabel

      public UniqueKey withLabel(String label)
      Fluent setter for label
    • withFieldName

      public UniqueKey withFieldName(String fieldName)
    • getDescription

      public String getDescription(QTableMetaData table)