Class View
- java.lang.Object
-
- com.feedzai.commons.sql.abstraction.dml.Expression
-
- com.feedzai.commons.sql.abstraction.dml.View
-
- All Implemented Interfaces:
Serializable
public class View extends Expression
Represents a SQL view.- 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 Viewas(Expression as)Sets the AS expression.ExpressiongetAs()Gets the AS expression.StringgetName()Gets the view name.booleanisReplace()Checks if this view is to be replaced.Viewreplace()Sets this view to be replaced.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
-
getAs
public Expression getAs()
Gets the AS expression.- Returns:
- The AS expression.
-
replace
public View replace()
Sets this view to be replaced.- Returns:
- This expression.
-
as
public View as(Expression as)
Sets the AS expression.- Parameters:
as- The AS expression.- Returns:
- This expression.
-
isReplace
public boolean isReplace()
Checks if this view is to be replaced.- Returns:
trueif the view is to be replaced,falseotherwise.
-
getName
public String getName()
Gets the view name.- Returns:
- The view name.
-
translate
public String translate()
Description copied from class:ExpressionTranslates the expression.- Specified by:
translatein classExpression- Returns:
- A translation of the implementing expression.
-
-