Class Name
- java.lang.Object
-
- com.feedzai.commons.sql.abstraction.dml.Expression
-
- com.feedzai.commons.sql.abstraction.dml.Name
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
All
public class Name extends Expression
Represents a named expression.- 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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetEnvironment()Gets the environment.StringgetName()Gets the name.booleanisIsNotNull()Checks if IS NOT NULL is to be appended to this expression.booleanisIsNull()Checks if IS NULL is to be appended to this expression.NameisNotNull()Appends "IS NOT NULL" to this expression.NameisNull()Appends "IS NULL" to this expression.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
-
-
-
-
Method Detail
-
isNull
public Name isNull()
Appends "IS NULL" to this expression.- Returns:
- This expression.
-
isNotNull
public Name isNotNull()
Appends "IS NOT NULL" to this expression.- Returns:
- This expression.
-
getName
public String getName()
Gets the name.- Returns:
- The name.
-
getEnvironment
public String getEnvironment()
Gets the environment.- Returns:
- The environment.
-
isIsNull
public boolean isIsNull()
Checks if IS NULL is to be appended to this expression.- Returns:
trueif it is to be appended,falseotherwise.
-
isIsNotNull
public boolean isIsNotNull()
Checks if IS NOT NULL is to be appended to this expression.- Returns:
trueif it is to be appended,falseotherwise.
-
translate
public String translate()
Description copied from class:ExpressionTranslates the expression.- Specified by:
translatein classExpression- Returns:
- A translation of the implementing expression.
-
-