Class ConstraintDefinitionSegment
- java.lang.Object
-
- org.apache.shardingsphere.sql.parser.sql.common.segment.ddl.constraint.ConstraintDefinitionSegment
-
- All Implemented Interfaces:
ASTNode,AlterDefinitionSegment,CreateDefinitionSegment,SQLSegment
public final class ConstraintDefinitionSegment extends Object implements CreateDefinitionSegment, AlterDefinitionSegment
Constraint definition segment.
-
-
Constructor Summary
Constructors Constructor Description ConstraintDefinitionSegment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<ConstraintSegment>getConstraintName()Get constraint name.Optional<IndexSegment>getIndexName()Get index name.Optional<SimpleTableSegment>getReferencedTable()Get referenced table.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.shardingsphere.sql.parser.sql.common.segment.SQLSegment
getStartIndex, getStopIndex
-
-
-
-
Method Detail
-
getConstraintName
public Optional<ConstraintSegment> getConstraintName()
Get constraint name.- Returns:
- constraint name.
-
getIndexName
public Optional<IndexSegment> getIndexName()
Get index name.- Returns:
- index name
-
getReferencedTable
public Optional<SimpleTableSegment> getReferencedTable()
Get referenced table.- Returns:
- referenced table
-
-