Class MysqlForeignKey
java.lang.Object
com.alibaba.druid.sql.ast.SQLObjectImpl
com.alibaba.druid.sql.ast.statement.SQLConstraintImpl
com.alibaba.druid.sql.ast.statement.SQLForeignKeyImpl
com.alibaba.druid.sql.dialect.mysql.ast.MysqlForeignKey
- All Implemented Interfaces:
SQLDbTypedObject
,SQLObject
,SQLConstraint
,SQLForeignKeyConstraint
,SQLTableConstraint
,SQLTableElement
- Author:
- kiki
-
Nested Class Summary
Nested classes/interfaces inherited from class com.alibaba.druid.sql.ast.statement.SQLForeignKeyImpl
SQLForeignKeyImpl.Match, SQLForeignKeyImpl.On, SQLForeignKeyImpl.Option
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected SQLForeignKeyImpl.Option
protected SQLForeignKeyImpl.Option
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 -
Method Summary
Modifier and TypeMethodDescriptionprotected void
accept0
(MySqlASTVisitor visitor) protected void
accept0
(SQLASTVisitor visitor) clone()
boolean
void
setHasConstraint
(boolean hasConstraint) void
setIndexName
(SQLName indexName) void
setOnDelete
(SQLForeignKeyImpl.Option onDelete) void
setOnUpdate
(SQLForeignKeyImpl.Option onUpdate) void
setReferenceMatch
(SQLForeignKeyImpl.Match referenceMatch) Methods inherited from class com.alibaba.druid.sql.ast.statement.SQLForeignKeyImpl
cloneTo, getReferencedColumns, getReferencedTable, getReferencedTableName, getReferencingColumns, isDisableNovalidate, isOnDeleteCascade, isOnDeleteSetNull, setDisableNovalidate, setOnDeleteCascade, setOnDeleteSetNull, setReferencedTable, setReferencedTableName
Methods inherited from class com.alibaba.druid.sql.ast.statement.SQLConstraintImpl
cloneTo, cloneTo, getComment, getDbType, getEnable, getHints, getName, getRely, getValidate, replace, 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, 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.statement.SQLConstraint
getComment, getName, setComment, setName, simplify
Methods inherited from interface com.alibaba.druid.sql.ast.SQLObject
accept, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getParent, hasAfterComment, hasBeforeComment, output, output, putAttribute, setParent
-
Field Details
-
onUpdate
-
onDelete
-
-
Constructor Details
-
MysqlForeignKey
public MysqlForeignKey()
-
-
Method Details
-
getIndexName
-
setIndexName
-
isHasConstraint
public boolean isHasConstraint() -
setHasConstraint
public void setHasConstraint(boolean hasConstraint) -
accept0
- Overrides:
accept0
in classSQLForeignKeyImpl
-
accept0
-
clone
- Specified by:
clone
in interfaceSQLObject
- Specified by:
clone
in interfaceSQLTableElement
- Overrides:
clone
in classSQLForeignKeyImpl
-
getReferenceMatch
-
setReferenceMatch
-
getOnUpdate
-
setOnUpdate
-
getOnDelete
-
setOnDelete
-