Class Modulo
- java.lang.Object
-
- com.feedzai.commons.sql.abstraction.dml.Expression
-
- com.feedzai.commons.sql.abstraction.dml.Modulo
-
- All Implemented Interfaces:
Serializable
public class Modulo extends Expression
The MOD operator.- Since:
- 2.0.0
- Author:
- Joao Martins (joao.martins@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 Modulo(Expression dividend, Expression divisor)Creates a new instance ofModulo.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExpressiongetDividend()Gets the dividend.ExpressiongetDivisor()Gets the divisor.Stringtranslate()Translates the 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
-
Modulo
public Modulo(Expression dividend, Expression divisor)
Creates a new instance ofModulo.- Parameters:
dividend- The dividend.divisor- The divisor.
-
-
Method Detail
-
getDividend
public Expression getDividend()
Gets the dividend.- Returns:
- The dividend
-
getDivisor
public Expression getDivisor()
Gets the divisor.- Returns:
- The divisor.
-
translate
public String translate()
Description copied from class:ExpressionTranslates the expression.- Specified by:
translatein classExpression- Returns:
- A translation of the implementing expression.
-
-