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
FieldsModifier and TypeFieldDescriptionprotected DbTypeprotected Booleanprotected Booleanprotected BooleanFields inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
attributes, hint, parent, sourceColumn, sourceLine -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidgetHints()getName()getRely()booleanvoidvoidvoidvoidsetHints(List<SQLCommentHint> hints) voidvoidvoidvoidsetValidate(Boolean validate) voidsimplify()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, putAttribute, setHint, setParent, setSourceColumn, setSourceLine, toStringMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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, putAttribute, setParent
-
Field Details
-
dbType
-
enable
-
validate
-
rely
-
hints
-
-
Constructor Details
-
SQLConstraintImpl
public SQLConstraintImpl()
-
-
Method Details
-
cloneTo
-
getHints
-
setHints
-
getName
- Specified by:
getNamein interfaceSQLConstraint
-
setName
- Specified by:
setNamein interfaceSQLConstraint
-
setName
-
getEnable
-
setEnable
-
cloneTo
-
getValidate
-
setValidate
-
getRely
-
setRely
-
getDbType
- Specified by:
getDbTypein interfaceSQLDbTypedObject
-
setDbType
-
getComment
- Specified by:
getCommentin interfaceSQLConstraint
-
setComment
- Specified by:
setCommentin interfaceSQLConstraint
-
simplify
public void simplify()- Specified by:
simplifyin interfaceSQLConstraint
-
replace
-