Class SQLDeleteStatement
java.lang.Object
com.alibaba.druid.sql.ast.SQLObjectImpl
com.alibaba.druid.sql.ast.SQLStatementImpl
com.alibaba.druid.sql.ast.statement.SQLDeleteStatement
- All Implemented Interfaces:
SQLDbTypedObject,SQLObject,SQLReplaceable,SQLStatement
- Direct Known Subclasses:
MySqlDeleteStatement,OracleDeleteStatement,OscarDeleteStatement,PGDeleteStatement
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected SQLTableSourceprotected booleanprotected SQLTableSourceprotected SQLTableSourceprotected SQLExprprotected SQLWithSubqueryClauseFields inherited from class com.alibaba.druid.sql.ast.SQLStatementImpl
afterSemi, dbType, headHintsFields 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) voidaddCondition(SQLExpr expr) voidaddCondition(String conditionSql) booleanclone()protected voidgetAlias()getFrom()getUsing()getWhere()getWith()booleanisOnly()booleanremoveCondition(SQLExpr condition) booleanremoveCondition(String conditionSql) booleanvoidvoidsetFrom(SQLTableSource from) voidsetOnly(boolean only) voidsetTableName(SQLName tableName) voidsetTableName(String name) voidsetTableSource(SQLExpr expr) voidsetTableSource(SQLTableSource tableSource) voidsetUsing(SQLTableSource using) voidvoidsetWith(SQLWithSubqueryClause with) Methods inherited from class com.alibaba.druid.sql.ast.SQLStatementImpl
getDbType, getHeadHintsDirect, isAfterSemi, setAfterSemi, setDbType, setHeadHints, toLowerCaseString, toParameterizedString, toString, toString, toUnformattedStringMethods 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, setSourceLineMethods 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, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getParent, hasAfterComment, hasBeforeComment, output, putAttribute, setParent
-
Field Details
-
with
-
tableSource
-
where
-
from
-
using
-
only
protected boolean only
-
-
Constructor Details
-
SQLDeleteStatement
public SQLDeleteStatement() -
SQLDeleteStatement
-
-
Method Details
-
cloneTo
-
clone
- Specified by:
clonein interfaceSQLObject- Specified by:
clonein interfaceSQLStatement- Overrides:
clonein classSQLStatementImpl
-
getTableSource
-
getExprTableSource
-
setTableSource
-
setTableSource
-
getTableName
-
setTableName
-
setTableName
-
getWhere
-
setWhere
-
getAlias
-
setAlias
-
accept0
- Overrides:
accept0in classSQLStatementImpl
-
getChildren
- Specified by:
getChildrenin interfaceSQLStatement- Overrides:
getChildrenin classSQLStatementImpl
-
getFrom
-
setFrom
-
replace
- Specified by:
replacein interfaceSQLReplaceable
-
isOnly
public boolean isOnly() -
setOnly
public void setOnly(boolean only) -
getUsing
-
setUsing
-
getWith
-
setWith
-
addCondition
-
addCondition
-
removeCondition
-
removeCondition
-
addWhere
-