Class MySqlUnique
- java.lang.Object
-
- com.alibaba.druid.sql.ast.SQLObjectImpl
-
- com.alibaba.druid.sql.ast.statement.SQLConstraintImpl
-
- com.alibaba.druid.sql.ast.statement.SQLUnique
-
- com.alibaba.druid.sql.dialect.mysql.ast.MySqlKey
-
- com.alibaba.druid.sql.dialect.mysql.ast.MySqlUnique
-
- All Implemented Interfaces:
SQLDbTypedObject,SQLIndex,SQLObject,SQLConstraint,SQLTableConstraint,SQLTableElement,SQLUniqueConstraint
public class MySqlUnique extends MySqlKey
-
-
Field Summary
-
Fields inherited from class com.alibaba.druid.sql.ast.statement.SQLUnique
disableNovalidate, indexDefinition
-
Fields inherited from class com.alibaba.druid.sql.ast.statement.SQLConstraintImpl
dbType, enable, hints, rely, validate
-
Fields inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
attributes, hint, parent, sourceColumn, sourceLine
-
-
Constructor Summary
Constructors Constructor Description MySqlUnique()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaccept0(MySqlASTVisitor visitor)MySqlUniqueclone()SQLExprgetDbPartitionBy()SQLExprgetTablePartitionBy()SQLExprgetTablePartitions()booleanisGlobal()booleanisLocal()voidsetDbPartitionBy(SQLExpr x)voidsetGlobal(boolean global)voidsetLocal(boolean local)voidsetTablePartitionBy(SQLExpr x)voidsetTablePartitions(SQLExpr x)-
Methods inherited from class com.alibaba.druid.sql.dialect.mysql.ast.MySqlKey
accept0, cloneTo, getIndexType, getKeyBlockSize, isHasConstraint, setHasConstraint, setIndexType, setKeyBlockSize
-
Methods inherited from class com.alibaba.druid.sql.ast.statement.SQLUnique
addColumn, addColumn, applyColumnRename, applyDropColumn, cloneTo, containsColumn, containsColumn, getColumns, getComment, getCovering, getIndexDefinition, getName, isDisableNovalidate, setComment, setDisableNovalidate, setName, setName, simplify
-
Methods inherited from class com.alibaba.druid.sql.ast.statement.SQLConstraintImpl
cloneTo, cloneTo, getDbType, getEnable, getHints, getRely, getValidate, replace, setDbType, setEnable, setHints, setRely, setValidate
-
Methods inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
accept, acceptChild, acceptChild, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, cloneTo, computeDataType, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getHint, getParent, getParent, getSourceColumn, getSourceLine, hasAfterComment, hasBeforeComment, output, putAttribute, setHint, setParent, setSource, setSourceLine, toString
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.alibaba.druid.sql.ast.statement.SQLConstraint
getComment, getName, setComment, setName, simplify
-
Methods inherited from interface com.alibaba.druid.sql.ast.SQLIndex
getColumns, getCovering
-
Methods inherited from interface com.alibaba.druid.sql.ast.SQLObject
accept, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getParent, getParent, getSourceColumn, getSourceLine, hasAfterComment, hasBeforeComment, output, putAttribute, setParent, setSource
-
Methods inherited from interface com.alibaba.druid.sql.ast.statement.SQLUniqueConstraint
containsColumn, containsColumn, getColumns
-
-
-
-
Method Detail
-
accept0
protected void accept0(MySqlASTVisitor visitor)
-
clone
public MySqlUnique clone()
-
getDbPartitionBy
public SQLExpr getDbPartitionBy()
-
setDbPartitionBy
public void setDbPartitionBy(SQLExpr x)
-
isGlobal
public boolean isGlobal()
-
setGlobal
public void setGlobal(boolean global)
-
isLocal
public boolean isLocal()
-
setLocal
public void setLocal(boolean local)
-
getTablePartitions
public SQLExpr getTablePartitions()
-
setTablePartitions
public void setTablePartitions(SQLExpr x)
-
getTablePartitionBy
public SQLExpr getTablePartitionBy()
-
setTablePartitionBy
public void setTablePartitionBy(SQLExpr x)
-
-