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
public class SQLForeignKeyImpl extends SQLConstraintImpl implements SQLForeignKeyConstraint
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSQLForeignKeyImpl.Matchstatic classSQLForeignKeyImpl.Onstatic classSQLForeignKeyImpl.Option
-
Field Summary
-
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 SQLForeignKeyImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaccept0(SQLASTVisitor visitor)SQLForeignKeyImplclone()voidcloneTo(SQLForeignKeyImpl x)List<SQLName>getReferencedColumns()SQLExprTableSourcegetReferencedTable()SQLNamegetReferencedTableName()List<SQLName>getReferencingColumns()booleanisDisableNovalidate()booleanisHasConstraint()booleanisNotEnforced()booleanisOnDeleteCascade()booleanisOnDeleteSetNull()voidsetDisableNovalidate(boolean disableNovalidate)voidsetHasConstraint(boolean hasConstraint)voidsetNotEnforced(boolean notEnforced)voidsetOnDeleteCascade(boolean onDeleteCascade)voidsetOnDeleteSetNull(boolean onDeleteSetNull)voidsetReferencedTable(SQLExprTableSource x)voidsetReferencedTableName(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, 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
-
-
-
-
Method Detail
-
isHasConstraint
public boolean isHasConstraint()
-
setHasConstraint
public void setHasConstraint(boolean hasConstraint)
- Specified by:
setHasConstraintin interfaceSQLConstraint
-
getReferencingColumns
public List<SQLName> getReferencingColumns()
- Specified by:
getReferencingColumnsin interfaceSQLForeignKeyConstraint
-
getReferencedTable
public SQLExprTableSource getReferencedTable()
- Specified by:
getReferencedTablein interfaceSQLForeignKeyConstraint
-
getReferencedTableName
public SQLName getReferencedTableName()
- Specified by:
getReferencedTableNamein interfaceSQLForeignKeyConstraint
-
setReferencedTableName
public void setReferencedTableName(SQLName value)
- Specified by:
setReferencedTableNamein interfaceSQLForeignKeyConstraint
-
setReferencedTable
public void setReferencedTable(SQLExprTableSource x)
-
getReferencedColumns
public List<SQLName> 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
protected void accept0(SQLASTVisitor visitor)
- Specified by:
accept0in classSQLObjectImpl
-
cloneTo
public void cloneTo(SQLForeignKeyImpl x)
-
clone
public SQLForeignKeyImpl clone()
- Specified by:
clonein interfaceSQLObject- Specified by:
clonein interfaceSQLTableElement- Overrides:
clonein classSQLObjectImpl
-
isNotEnforced
public boolean isNotEnforced()
-
setNotEnforced
public void setNotEnforced(boolean notEnforced)
-
-