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
public class MysqlForeignKey extends SQLForeignKeyImpl
- 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
Fields Modifier and Type Field Description protected SQLForeignKeyImpl.OptiononDeleteprotected SQLForeignKeyImpl.OptiononUpdate-
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 MysqlForeignKey()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaccept0(MySqlASTVisitor visitor)protected voidaccept0(SQLASTVisitor visitor)MysqlForeignKeyclone()SQLNamegetIndexName()SQLForeignKeyImpl.OptiongetOnDelete()SQLForeignKeyImpl.OptiongetOnUpdate()SQLForeignKeyImpl.MatchgetReferenceMatch()voidsetIndexName(SQLName indexName)voidsetOnDelete(SQLForeignKeyImpl.Option onDelete)voidsetOnUpdate(SQLForeignKeyImpl.Option onUpdate)voidsetReferenceMatch(SQLForeignKeyImpl.Match referenceMatch)-
Methods inherited from class com.alibaba.druid.sql.ast.statement.SQLForeignKeyImpl
cloneTo, getReferencedColumns, getReferencedTable, getReferencedTableName, getReferencingColumns, isDisableNovalidate, isHasConstraint, isNotEnforced, isOnDeleteCascade, isOnDeleteSetNull, setDisableNovalidate, setHasConstraint, setNotEnforced, 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, 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, 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
-
onUpdate
protected SQLForeignKeyImpl.Option onUpdate
-
onDelete
protected SQLForeignKeyImpl.Option onDelete
-
-
Method Detail
-
getIndexName
public SQLName getIndexName()
-
setIndexName
public void setIndexName(SQLName indexName)
-
accept0
protected void accept0(SQLASTVisitor visitor)
- Overrides:
accept0in classSQLForeignKeyImpl
-
accept0
protected void accept0(MySqlASTVisitor visitor)
-
clone
public MysqlForeignKey clone()
- Specified by:
clonein interfaceSQLObject- Specified by:
clonein interfaceSQLTableElement- Overrides:
clonein classSQLForeignKeyImpl
-
getReferenceMatch
public SQLForeignKeyImpl.Match getReferenceMatch()
-
setReferenceMatch
public void setReferenceMatch(SQLForeignKeyImpl.Match referenceMatch)
-
getOnUpdate
public SQLForeignKeyImpl.Option getOnUpdate()
-
setOnUpdate
public void setOnUpdate(SQLForeignKeyImpl.Option onUpdate)
-
getOnDelete
public SQLForeignKeyImpl.Option getOnDelete()
-
setOnDelete
public void setOnDelete(SQLForeignKeyImpl.Option onDelete)
-
-