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:
MySqlTableIndex
,SQLCheck
,SQLColumnCheck
,SQLColumnPrimaryKey
,SQLColumnReference
,SQLColumnUniqueKey
,SQLDefault
,SQLForeignKeyImpl
,SQLNotNullConstraint
,SQLNullConstraint
,SQLUnique
public abstract class SQLConstraintImpl
extends SQLObjectImpl
implements SQLConstraint, SQLDbTypedObject
-
Field Summary
Modifier and TypeFieldDescriptionprotected DbType
protected Boolean
protected Boolean
protected Boolean
Fields inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
attributes, hint, parent, sourceColumn, sourceLine
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
getHints()
getName()
getRely()
boolean
void
void
void
void
setHints
(List<SQLCommentHint> hints) void
void
void
void
setValidate
(Boolean validate) void
simplify()
Methods inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
accept, accept0, acceptChild, acceptChild, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, clone, computeDataType, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getHint, getParent, getSourceColumn, getSourceLine, hasAfterComment, hasBeforeComment, output, output, putAttribute, setHint, setParent, setSourceColumn, 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.SQLObject
accept, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, clone, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getParent, hasAfterComment, hasBeforeComment, output, output, putAttribute, setParent
-
Field Details
-
dbType
-
enable
-
validate
-
rely
-
hints
-
-
Constructor Details
-
SQLConstraintImpl
public SQLConstraintImpl()
-
-
Method Details
-
cloneTo
-
getHints
-
setHints
-
getName
- Specified by:
getName
in interfaceSQLConstraint
-
setName
- Specified by:
setName
in interfaceSQLConstraint
-
setName
-
getEnable
-
setEnable
-
cloneTo
-
getValidate
-
setValidate
-
getRely
-
setRely
-
getDbType
- Specified by:
getDbType
in interfaceSQLDbTypedObject
-
setDbType
-
getComment
- Specified by:
getComment
in interfaceSQLConstraint
-
setComment
- Specified by:
setComment
in interfaceSQLConstraint
-
simplify
public void simplify()- Specified by:
simplify
in interfaceSQLConstraint
-
replace
-