Class SQLUnique
java.lang.Object
com.alibaba.druid.sql.ast.SQLObjectImpl
com.alibaba.druid.sql.ast.statement.SQLConstraintImpl
com.alibaba.druid.sql.ast.statement.SQLUnique
- All Implemented Interfaces:
SQLDbTypedObject,SQLObject,SQLConstraint,SQLTableElement,SQLUniqueConstraint
- Direct Known Subclasses:
MySqlKey,OracleUnique,SQLPrimaryKeyImpl
-
Field Summary
FieldsFields inherited from class com.alibaba.druid.sql.ast.statement.SQLConstraintImpl
dbType, enable, hints, rely, validateFields inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
attributes, hint, parent, sourceColumn, sourceLine -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaccept0(SQLASTVisitor visitor) voidvoidaddColumn(SQLSelectOrderByItem column) booleanapplyColumnRename(SQLName columnName, SQLColumnDefinition to) booleanapplyDropColumn(SQLName columnName) clone()voidbooleancontainsColumn(long columnNameHash) booleancontainsColumn(String column) getName()voidvoidvoidvoidsimplify()Methods inherited from class com.alibaba.druid.sql.ast.statement.SQLConstraintImpl
cloneTo, cloneTo, getDbType, getEnable, getHints, getRely, getValidate, replace, setDbType, setEnable, setHints, setRely, setValidateMethods inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
accept, acceptChild, acceptChild, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, computeDataType, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getHint, getParent, getSourceColumn, getSourceLine, hasAfterComment, hasBeforeComment, output, output, putAttribute, setHint, setParent, setSourceColumn, setSourceLine, toStringMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.alibaba.druid.sql.ast.SQLObject
accept, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getParent, hasAfterComment, hasBeforeComment, output, output, putAttribute, setParent
-
Field Details
-
indexDefinition
-
-
Constructor Details
-
SQLUnique
public SQLUnique()
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceSQLConstraint- Overrides:
getNamein classSQLConstraintImpl
-
setName
- Specified by:
setNamein interfaceSQLConstraint- Overrides:
setNamein classSQLConstraintImpl
-
setName
- Overrides:
setNamein classSQLConstraintImpl
-
getComment
- Specified by:
getCommentin interfaceSQLConstraint- Overrides:
getCommentin classSQLConstraintImpl
-
setComment
- Specified by:
setCommentin interfaceSQLConstraint- Overrides:
setCommentin classSQLConstraintImpl
-
getIndexDefinition
-
getColumns
- Specified by:
getColumnsin interfaceSQLUniqueConstraint
-
addColumn
-
addColumn
-
accept0
- Specified by:
accept0in classSQLObjectImpl
-
containsColumn
- Specified by:
containsColumnin interfaceSQLUniqueConstraint
-
containsColumn
public boolean containsColumn(long columnNameHash) - Specified by:
containsColumnin interfaceSQLUniqueConstraint
-
cloneTo
-
clone
- Specified by:
clonein interfaceSQLObject- Specified by:
clonein interfaceSQLTableElement- Overrides:
clonein classSQLObjectImpl
-
simplify
public void simplify()- Specified by:
simplifyin interfaceSQLConstraint- Overrides:
simplifyin classSQLConstraintImpl
-
applyColumnRename
-
applyDropColumn
-
getCovering
-