Class SQLForeignKeyImpl
java.lang.Object
com.alibaba.druid.sql.ast.SQLObjectImpl
com.alibaba.druid.sql.ast.statement.SQLConstraintImpl
com.alibaba.druid.sql.ast.statement.SQLForeignKeyImpl
- All Implemented Interfaces:
SQLDbTypedObject,SQLObject,SQLConstraint,SQLForeignKeyConstraint,SQLTableConstraint,SQLTableElement
- Direct Known Subclasses:
MysqlForeignKey,OracleForeignKey
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enumstatic enum -
Field Summary
Fields inherited from class com.alibaba.druid.sql.ast.statement.SQLConstraintImpl
dbType, enable, hints, rely, validateFields inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
attributes, hint, parent, sourceColumn, sourceLine -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaccept0(SQLASTVisitor visitor) clone()voidbooleanbooleanbooleanvoidsetDisableNovalidate(boolean disableNovalidate) voidsetOnDeleteCascade(boolean onDeleteCascade) voidsetOnDeleteSetNull(boolean onDeleteSetNull) voidvoidsetReferencedTableName(SQLName value) 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, simplifyMethods 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, 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.statement.SQLConstraint
getComment, getName, setComment, setName, simplifyMethods inherited from interface com.alibaba.druid.sql.ast.SQLObject
accept, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getParent, hasAfterComment, hasBeforeComment, output, putAttribute, setParent
-
Constructor Details
-
SQLForeignKeyImpl
public SQLForeignKeyImpl()
-
-
Method Details
-
getReferencingColumns
- Specified by:
getReferencingColumnsin interfaceSQLForeignKeyConstraint
-
getReferencedTable
- Specified by:
getReferencedTablein interfaceSQLForeignKeyConstraint
-
getReferencedTableName
- Specified by:
getReferencedTableNamein interfaceSQLForeignKeyConstraint
-
setReferencedTableName
- Specified by:
setReferencedTableNamein interfaceSQLForeignKeyConstraint
-
setReferencedTable
-
getReferencedColumns
- Specified by:
getReferencedColumnsin interfaceSQLForeignKeyConstraint
-
isOnDeleteCascade
public boolean isOnDeleteCascade() -
setOnDeleteCascade
public void setOnDeleteCascade(boolean onDeleteCascade) -
isOnDeleteSetNull
public boolean isOnDeleteSetNull() -
setOnDeleteSetNull
public void setOnDeleteSetNull(boolean onDeleteSetNull) -
isDisableNovalidate
public boolean isDisableNovalidate() -
setDisableNovalidate
public void setDisableNovalidate(boolean disableNovalidate) -
accept0
- Specified by:
accept0in classSQLObjectImpl
-
cloneTo
-
clone
- Specified by:
clonein interfaceSQLObject- Specified by:
clonein interfaceSQLTableElement- Overrides:
clonein classSQLObjectImpl
-