Interface PrimaryKeyMetadata

  • All Superinterfaces:
    Metadata

    public interface PrimaryKeyMetadata
    extends Metadata
    Represents the primary key definition of a class.
    Since:
    3.0
    • Method Detail

      • setName

        PrimaryKeyMetadata setName​(String name)
        Method to set the name of the PK constraint.
        Parameters:
        name - Name of the PK constraint
        Returns:
        The PK metadata
      • getName

        String getName()
        Accessor for the name of the PK constraint.
        Returns:
        The PK constraint name
      • setColumn

        PrimaryKeyMetadata setColumn​(String column)
        Method to set the PK column name.
        Parameters:
        column - Name of the PK column
        Returns:
        The PK metadata
      • getColumn

        String getColumn()
        Accessor for the PK column name.
        Returns:
        The column name
      • getColumns

        ColumnMetadata[] getColumns()
        Accessor for all column(s) defined on the PK.
        Returns:
        The column(s)
      • newColumnMetadata

        ColumnMetadata newColumnMetadata()
        Add a new column for this PK.
        Returns:
        The ColumnMetadata
      • getNumberOfColumns

        int getNumberOfColumns()
        Accessor for the number of columns defined for this PK.
        Returns:
        The number of columns