Class SQLColumnCheck
- java.lang.Object
-
- com.alibaba.druid.sql.ast.SQLObjectImpl
-
- com.alibaba.druid.sql.ast.statement.SQLConstraintImpl
-
- com.alibaba.druid.sql.ast.statement.SQLColumnCheck
-
- All Implemented Interfaces:
SQLDbTypedObject,SQLObject,SQLReplaceable,SQLColumnConstraint,SQLConstraint,SQLTableElement
public class SQLColumnCheck extends SQLConstraintImpl implements SQLColumnConstraint, SQLReplaceable
-
-
Field Summary
Fields Modifier and Type Field Description protected Booleanenforced-
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 SQLColumnCheck()SQLColumnCheck(SQLExpr expr)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaccept0(SQLASTVisitor visitor)SQLColumnCheckclone()BooleangetEnforced()SQLExprgetExpr()booleanreplace(SQLExpr expr, SQLExpr target)voidsetEnforced(Boolean enforced)voidsetExpr(SQLExpr expr)-
Methods inherited from class com.alibaba.druid.sql.ast.statement.SQLConstraintImpl
cloneTo, cloneTo, getComment, getDbType, getEnable, getHints, getName, getRely, getValidate, setComment, setDbType, setEnable, setHints, setName, setName, setRely, setValidate, simplify
-
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
-
-
-
-
Field Detail
-
enforced
protected Boolean enforced
-
-
Constructor Detail
-
SQLColumnCheck
public SQLColumnCheck()
-
SQLColumnCheck
public SQLColumnCheck(SQLExpr expr)
-
-
Method Detail
-
getExpr
public SQLExpr getExpr()
-
setExpr
public void setExpr(SQLExpr expr)
-
getEnforced
public Boolean getEnforced()
-
setEnforced
public void setEnforced(Boolean enforced)
-
accept0
protected void accept0(SQLASTVisitor visitor)
- Specified by:
accept0in classSQLObjectImpl
-
clone
public SQLColumnCheck clone()
- Specified by:
clonein interfaceSQLColumnConstraint- Specified by:
clonein interfaceSQLObject- Specified by:
clonein interfaceSQLTableElement- Overrides:
clonein classSQLObjectImpl
-
replace
public boolean replace(SQLExpr expr, SQLExpr target)
- Specified by:
replacein interfaceSQLReplaceable- Overrides:
replacein classSQLConstraintImpl
-
-