Class SQLPrimaryKeyImpl
- 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.ast.statement.SQLPrimaryKeyImpl
-
- All Implemented Interfaces:
SQLDbTypedObject,SQLObject,SQLConstraint,SQLPrimaryKey,SQLTableConstraint,SQLTableElement,SQLUniqueConstraint
- Direct Known Subclasses:
OraclePrimaryKey
public class SQLPrimaryKeyImpl extends SQLUnique implements SQLPrimaryKey, SQLTableConstraint
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanclusteredprotected booleandisableNovalidateprotected booleannotEnforced-
Fields inherited from class com.alibaba.druid.sql.ast.statement.SQLUnique
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 SQLPrimaryKeyImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaccept0(SQLASTVisitor visitor)SQLPrimaryKeyImplclone()voidcloneTo(SQLPrimaryKeyImpl x)booleanisClustered()booleanisDisableNovalidate()booleanisNotEnforced()voidsetClustered(boolean clustered)voidsetDisableNovalidate(boolean disableNovalidate)voidsetNotEnforced(boolean notEnforced)-
Methods inherited from class com.alibaba.druid.sql.ast.statement.SQLUnique
addColumn, addColumn, applyColumnRename, applyDropColumn, cloneTo, containsColumn, containsColumn, getColumns, getComment, getCovering, getIndexDefinition, getName, setComment, 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, setHasConstraint, setName, simplify
-
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(SQLASTVisitor visitor)
-
clone
public SQLPrimaryKeyImpl clone()
-
cloneTo
public void cloneTo(SQLPrimaryKeyImpl x)
-
isDisableNovalidate
public boolean isDisableNovalidate()
- Overrides:
isDisableNovalidatein classSQLUnique
-
setDisableNovalidate
public void setDisableNovalidate(boolean disableNovalidate)
- Overrides:
setDisableNovalidatein classSQLUnique
-
isClustered
public boolean isClustered()
-
setClustered
public void setClustered(boolean clustered)
-
isNotEnforced
public boolean isNotEnforced()
-
setNotEnforced
public void setNotEnforced(boolean notEnforced)
-
-