Class UniqueConstraintDefinition

All Implemented Interfaces:
IFileStreamSpecifier, Serializable

public class UniqueConstraintDefinition extends ConstraintDefinition implements IFileStreamSpecifier
Represents the unique or primary key constraint. This class translates 80 syntax into 90 syntax, this should be reflected in the AST, if a differentiator is to be written.
See Also:
  • Field Details

    • FileStreamOn

      public IdentifierOrValueExpression FileStreamOn
    • Clustered

      public Boolean Clustered
      Represents if the constraint is clustered.
    • IsPrimaryKey

      public boolean IsPrimaryKey
      Represents if the constraint is not just unique but also primary key.
    • IsEnforced

      public Boolean IsEnforced
      Represents if the constraint is an enforced constraint.
    • Columns

      public List<ColumnWithSortOrder> Columns
      Represents the constraint columns.
    • IndexOptions

      public List<IndexOption> IndexOptions
      The index options. Optional may have zero elements.
    • OnFileGroupOrPartitionScheme

      public FileGroupOrPartitionScheme OnFileGroupOrPartitionScheme
      The filegroup or partition scheme. Might be null.
    • IndexType

      public IndexType IndexType
      The index type.
  • Constructor Details

    • UniqueConstraintDefinition

      public UniqueConstraintDefinition()
  • Method Details