Class ColumnExpNodeVisitor
- java.lang.Object
-
- com.ibm.fhir.database.utils.query.expression.ColumnExpNodeVisitor
-
- All Implemented Interfaces:
ExpNodeVisitor<Set<String>>
public class ColumnExpNodeVisitor extends Object implements ExpNodeVisitor<Set<String>>
Renders the expression node tree into a string
-
-
Constructor Summary
Constructors Constructor Description ColumnExpNodeVisitor()
-
Method Summary
-
-
-
Method Detail
-
paren
public Set<String> paren(Set<String> expr)
- Specified by:
parenin interfaceExpNodeVisitor<Set<String>>
-
and
public Set<String> and(Set<String> left, Set<String> right)
- Specified by:
andin interfaceExpNodeVisitor<Set<String>>
-
or
public Set<String> or(Set<String> left, Set<String> right)
- Specified by:
orin interfaceExpNodeVisitor<Set<String>>
-
not
public Set<String> not(Set<String> exp)
- Specified by:
notin interfaceExpNodeVisitor<Set<String>>
-
exists
public Set<String> exists(Set<String> statement)
- Specified by:
existsin interfaceExpNodeVisitor<Set<String>>
-
notExists
public Set<String> notExists(Set<String> statement)
- Specified by:
notExistsin interfaceExpNodeVisitor<Set<String>>
-
eq
public Set<String> eq(Set<String> left, Set<String> right)
- Specified by:
eqin interfaceExpNodeVisitor<Set<String>>
-
neq
public Set<String> neq(Set<String> left, Set<String> right)
- Specified by:
neqin interfaceExpNodeVisitor<Set<String>>
-
gt
public Set<String> gt(Set<String> left, Set<String> right)
- Specified by:
gtin interfaceExpNodeVisitor<Set<String>>
-
gte
public Set<String> gte(Set<String> left, Set<String> right)
- Specified by:
gtein interfaceExpNodeVisitor<Set<String>>
-
lt
public Set<String> lt(Set<String> left, Set<String> right)
- Specified by:
ltin interfaceExpNodeVisitor<Set<String>>
-
lte
public Set<String> lte(Set<String> left, Set<String> right)
- Specified by:
ltein interfaceExpNodeVisitor<Set<String>>
-
literal
public Set<String> literal(String value)
- Specified by:
literalin interfaceExpNodeVisitor<Set<String>>
-
literal
public Set<String> literal(Long value)
- Specified by:
literalin interfaceExpNodeVisitor<Set<String>>
-
literal
public Set<String> literal(Double value)
- Specified by:
literalin interfaceExpNodeVisitor<Set<String>>
-
column
public Set<String> column(String tableAlias, String columnName)
- Specified by:
columnin interfaceExpNodeVisitor<Set<String>>
-
add
public Set<String> add(Set<String> left, Set<String> right)
- Specified by:
addin interfaceExpNodeVisitor<Set<String>>
-
subtract
public Set<String> subtract(Set<String> left, Set<String> right)
- Specified by:
subtractin interfaceExpNodeVisitor<Set<String>>
-
multiply
public Set<String> multiply(Set<String> left, Set<String> right)
- Specified by:
multiplyin interfaceExpNodeVisitor<Set<String>>
-
divide
public Set<String> divide(Set<String> left, Set<String> right)
- Specified by:
dividein interfaceExpNodeVisitor<Set<String>>
-
isNull
public Set<String> isNull(Set<String> expr)
- Specified by:
isNullin interfaceExpNodeVisitor<Set<String>>
-
isNotNull
public Set<String> isNotNull(Set<String> expr)
- Specified by:
isNotNullin interfaceExpNodeVisitor<Set<String>>
-
between
public Set<String> between(Set<String> leftValue, Set<String> rightValue)
- Specified by:
betweenin interfaceExpNodeVisitor<Set<String>>
-
in
public Set<String> in(Set<String> leftValue, List<Set<String>> args)
- Specified by:
inin interfaceExpNodeVisitor<Set<String>>
-
like
public Set<String> like(Set<String> left, Set<String> right)
- Specified by:
likein interfaceExpNodeVisitor<Set<String>>
-
escape
public Set<String> escape(Set<String> left, Set<String> right)
- Specified by:
escapein interfaceExpNodeVisitor<Set<String>>
-
bindMarker
public Set<String> bindMarker(Double value)
- Specified by:
bindMarkerin interfaceExpNodeVisitor<Set<String>>
-
bindMarker
public Set<String> bindMarker(Long value)
- Specified by:
bindMarkerin interfaceExpNodeVisitor<Set<String>>
-
bindMarker
public Set<String> bindMarker(Integer value)
- Specified by:
bindMarkerin interfaceExpNodeVisitor<Set<String>>
-
bindMarker
public Set<String> bindMarker(String value)
- Specified by:
bindMarkerin interfaceExpNodeVisitor<Set<String>>
-
bindMarker
public Set<String> bindMarker(Instant value)
- Specified by:
bindMarkerin interfaceExpNodeVisitor<Set<String>>
-
select
public Set<String> select(Select select)
Description copied from interface:ExpNodeVisitorProcess a sub-select statement- Specified by:
selectin interfaceExpNodeVisitor<Set<String>>- Returns:
-
coalesce
public Set<String> coalesce(List<ColumnRef> columnRefs)
Description copied from interface:ExpNodeVisitorRender a COALESCE(...) function- Specified by:
coalescein interfaceExpNodeVisitor<Set<String>>- Returns:
-
bindMarker
public Set<String> bindMarker(BigDecimal value)
- Specified by:
bindMarkerin interfaceExpNodeVisitor<Set<String>>
-
cos
public Set<String> cos(Set<String> arg)
Description copied from interface:ExpNodeVisitorSQL COS function- Specified by:
cosin interfaceExpNodeVisitor<Set<String>>- Returns:
-
acos
public Set<String> acos(Set<String> arg)
Description copied from interface:ExpNodeVisitorSQL ACOS function- Specified by:
acosin interfaceExpNodeVisitor<Set<String>>- Returns:
-
sin
public Set<String> sin(Set<String> arg)
Description copied from interface:ExpNodeVisitorSQL SIN function- Specified by:
sinin interfaceExpNodeVisitor<Set<String>>- Returns:
-
radians
public Set<String> radians(Set<String> arg)
Description copied from interface:ExpNodeVisitorSQL RADIANS function- Specified by:
radiansin interfaceExpNodeVisitor<Set<String>>- Returns:
-
-