Package io.github.fupacat.ast
Class UniqueConstraintDefinition
java.lang.Object
io.github.fupacat.ast.TSqlFragment
io.github.fupacat.ast.ConstraintDefinition
io.github.fupacat.ast.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 Summary
FieldsModifier and TypeFieldDescriptionRepresents if the constraint is clustered.Represents the constraint columns.The index options.The index type.Represents if the constraint is an enforced constraint.booleanRepresents if the constraint is not just unique but also primary key.The filegroup or partition scheme.Fields inherited from class io.github.fupacat.ast.ConstraintDefinition
ConstraintIdentifierFields inherited from class io.github.fupacat.ast.TSqlFragment
firstTokenIndex, lastTokenIndex, ScriptTokenStream, Value -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(TSqlFragmentVisitor visitor) voidacceptChildren(TSqlFragmentVisitor visitor) Methods inherited from class io.github.fupacat.ast.TSqlFragment
SetIdentifier, SetUnquotedIdentifier, UpdateTokenInfo, UpdateTokenInfo
-
Field Details
-
FileStreamOn
-
Clustered
Represents if the constraint is clustered. -
IsPrimaryKey
public boolean IsPrimaryKeyRepresents if the constraint is not just unique but also primary key. -
IsEnforced
Represents if the constraint is an enforced constraint. -
Columns
Represents the constraint columns. -
IndexOptions
The index options. Optional may have zero elements. -
OnFileGroupOrPartitionScheme
The filegroup or partition scheme. Might be null. -
IndexType
The index type.
-
-
Constructor Details
-
UniqueConstraintDefinition
public UniqueConstraintDefinition()
-
-
Method Details
-
accept
- Overrides:
acceptin classConstraintDefinition
-
acceptChildren
- Overrides:
acceptChildrenin classConstraintDefinition
-