Class SQLConstraintImpl
- java.lang.Object
-
- com.alibaba.druid.sql.ast.SQLObjectImpl
-
- com.alibaba.druid.sql.ast.statement.SQLConstraintImpl
-
- All Implemented Interfaces:
SQLDbTypedObject,SQLObject,SQLConstraint
- Direct Known Subclasses:
ClickhouseColumnConstraint,MySqlTableIndex,PrestoColumnConstraint,RedshiftColumnConstraint,SQLCheck,SQLColumnCheck,SQLColumnDefault,SQLColumnPrimaryKey,SQLColumnReference,SQLColumnUniqueKey,SQLDefault,SQLForeignKeyImpl,SQLNotNullConstraint,SQLNullConstraint,SQLUnique
public abstract class SQLConstraintImpl extends SQLObjectImpl implements SQLConstraint, SQLDbTypedObject
-
-
Field Summary
Fields Modifier and Type Field Description protected DbTypedbTypeprotected BooleanenableList<SQLCommentHint>hintsprotected Booleanrelyprotected Booleanvalidate-
Fields inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
attributes, hint, parent, sourceColumn, sourceLine
-
-
Constructor Summary
Constructors Constructor Description SQLConstraintImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcloneTo(SQLConstraint x)voidcloneTo(SQLConstraintImpl x)SQLExprgetComment()DbTypegetDbType()BooleangetEnable()List<SQLCommentHint>getHints()SQLNamegetName()BooleangetRely()BooleangetValidate()booleanreplace(SQLExpr expr, SQLExpr target)voidsetComment(SQLExpr x)voidsetDbType(DbType dbType)voidsetEnable(Boolean enable)voidsetHints(List<SQLCommentHint> hints)voidsetName(SQLName name)voidsetName(String name)voidsetRely(Boolean rely)voidsetValidate(Boolean validate)voidsimplify()-
Methods inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
accept, accept0, acceptChild, acceptChild, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, clone, 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
setHasConstraint
-
Methods inherited from interface com.alibaba.druid.sql.ast.SQLObject
accept, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, clone, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getParent, getParent, getSourceColumn, getSourceLine, hasAfterComment, hasBeforeComment, output, putAttribute, setParent, setSource
-
-
-
-
Method Detail
-
cloneTo
public void cloneTo(SQLConstraintImpl x)
-
getHints
public List<SQLCommentHint> getHints()
-
setHints
public void setHints(List<SQLCommentHint> hints)
-
getName
public SQLName getName()
- Specified by:
getNamein interfaceSQLConstraint
-
setName
public void setName(SQLName name)
- Specified by:
setNamein interfaceSQLConstraint
-
setName
public void setName(String name)
-
getEnable
public Boolean getEnable()
-
setEnable
public void setEnable(Boolean enable)
-
cloneTo
public void cloneTo(SQLConstraint x)
-
getValidate
public Boolean getValidate()
-
setValidate
public void setValidate(Boolean validate)
-
getRely
public Boolean getRely()
-
setRely
public void setRely(Boolean rely)
-
getDbType
public DbType getDbType()
- Specified by:
getDbTypein interfaceSQLDbTypedObject
-
setDbType
public void setDbType(DbType dbType)
-
getComment
public SQLExpr getComment()
- Specified by:
getCommentin interfaceSQLConstraint
-
setComment
public void setComment(SQLExpr x)
- Specified by:
setCommentin interfaceSQLConstraint
-
simplify
public void simplify()
- Specified by:
simplifyin interfaceSQLConstraint
-
-