Class Delete
- java.lang.Object
-
- com.feedzai.commons.sql.abstraction.dml.Expression
-
- com.feedzai.commons.sql.abstraction.dml.Delete
-
- All Implemented Interfaces:
Serializable
public class Delete extends Expression
Represents the DELETE operator.- Since:
- 2.0.0
- Author:
- Rui Vilao (rui.vilao@feedzai.com)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.feedzai.commons.sql.abstraction.dml.Expression
alias, enclosed, joins, ordering, properties, quotes, translator, withNoLock
-
-
Constructor Summary
Constructors Constructor Description Delete(Expression table)Creates a new instance ofDelete.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExpressiongetTable()Gets the TABLE expression.ExpressiongetWhere()Gets the WHERE expression.Stringtranslate()Translates the expression.Deletewhere(Expression where)Sets the where expression.-
Methods inherited from class com.feedzai.commons.sql.abstraction.dml.Expression
alias, asc, desc, enclose, fullOuterJoin, getAlias, getJoins, getOrdering, innerJoin, isAliased, isEnclosed, isQuote, isQuotes, isWithNoLock, leftOuterJoin, rightOuterJoin, unquote, withNoLock
-
-
-
-
Constructor Detail
-
Delete
public Delete(Expression table)
Creates a new instance ofDelete.- Parameters:
table- The table.
-
-
Method Detail
-
where
public Delete where(Expression where)
Sets the where expression.- Parameters:
where- The where expression.- Returns:
- This object.
-
getWhere
public Expression getWhere()
Gets the WHERE expression.- Returns:
- The WHERE expression.
-
getTable
public Expression getTable()
Gets the TABLE expression.- Returns:
- The TABLE expression.
-
translate
public String translate()
Description copied from class:ExpressionTranslates the expression.- Specified by:
translatein classExpression- Returns:
- A translation of the implementing expression.
-
-