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:
paren
in interfaceExpNodeVisitor<Set<String>>
-
and
public Set<String> and(Set<String> left, Set<String> right)
- Specified by:
and
in interfaceExpNodeVisitor<Set<String>>
-
or
public Set<String> or(Set<String> left, Set<String> right)
- Specified by:
or
in interfaceExpNodeVisitor<Set<String>>
-
not
public Set<String> not(Set<String> exp)
- Specified by:
not
in interfaceExpNodeVisitor<Set<String>>
-
exists
public Set<String> exists(Set<String> statement)
- Specified by:
exists
in interfaceExpNodeVisitor<Set<String>>
-
notExists
public Set<String> notExists(Set<String> statement)
- Specified by:
notExists
in interfaceExpNodeVisitor<Set<String>>
-
eq
public Set<String> eq(Set<String> left, Set<String> right)
- Specified by:
eq
in interfaceExpNodeVisitor<Set<String>>
-
neq
public Set<String> neq(Set<String> left, Set<String> right)
- Specified by:
neq
in interfaceExpNodeVisitor<Set<String>>
-
gt
public Set<String> gt(Set<String> left, Set<String> right)
- Specified by:
gt
in interfaceExpNodeVisitor<Set<String>>
-
gte
public Set<String> gte(Set<String> left, Set<String> right)
- Specified by:
gte
in interfaceExpNodeVisitor<Set<String>>
-
lt
public Set<String> lt(Set<String> left, Set<String> right)
- Specified by:
lt
in interfaceExpNodeVisitor<Set<String>>
-
lte
public Set<String> lte(Set<String> left, Set<String> right)
- Specified by:
lte
in interfaceExpNodeVisitor<Set<String>>
-
literal
public Set<String> literal(String value)
- Specified by:
literal
in interfaceExpNodeVisitor<Set<String>>
-
literal
public Set<String> literal(Long value)
- Specified by:
literal
in interfaceExpNodeVisitor<Set<String>>
-
literal
public Set<String> literal(Double value)
- Specified by:
literal
in interfaceExpNodeVisitor<Set<String>>
-
column
public Set<String> column(String tableAlias, String columnName)
- Specified by:
column
in interfaceExpNodeVisitor<Set<String>>
-
add
public Set<String> add(Set<String> left, Set<String> right)
- Specified by:
add
in interfaceExpNodeVisitor<Set<String>>
-
subtract
public Set<String> subtract(Set<String> left, Set<String> right)
- Specified by:
subtract
in interfaceExpNodeVisitor<Set<String>>
-
multiply
public Set<String> multiply(Set<String> left, Set<String> right)
- Specified by:
multiply
in interfaceExpNodeVisitor<Set<String>>
-
divide
public Set<String> divide(Set<String> left, Set<String> right)
- Specified by:
divide
in interfaceExpNodeVisitor<Set<String>>
-
isNull
public Set<String> isNull(Set<String> expr)
- Specified by:
isNull
in interfaceExpNodeVisitor<Set<String>>
-
isNotNull
public Set<String> isNotNull(Set<String> expr)
- Specified by:
isNotNull
in interfaceExpNodeVisitor<Set<String>>
-
between
public Set<String> between(Set<String> leftValue, Set<String> rightValue)
- Specified by:
between
in interfaceExpNodeVisitor<Set<String>>
-
in
public Set<String> in(Set<String> leftValue, List<Set<String>> args)
- Specified by:
in
in interfaceExpNodeVisitor<Set<String>>
-
like
public Set<String> like(Set<String> left, Set<String> right)
- Specified by:
like
in interfaceExpNodeVisitor<Set<String>>
-
escape
public Set<String> escape(Set<String> left, Set<String> right)
- Specified by:
escape
in interfaceExpNodeVisitor<Set<String>>
-
bindMarker
public Set<String> bindMarker(Double value)
- Specified by:
bindMarker
in interfaceExpNodeVisitor<Set<String>>
-
bindMarker
public Set<String> bindMarker(Long value)
- Specified by:
bindMarker
in interfaceExpNodeVisitor<Set<String>>
-
bindMarker
public Set<String> bindMarker(Integer value)
- Specified by:
bindMarker
in interfaceExpNodeVisitor<Set<String>>
-
bindMarker
public Set<String> bindMarker(String value)
- Specified by:
bindMarker
in interfaceExpNodeVisitor<Set<String>>
-
bindMarker
public Set<String> bindMarker(Instant value)
- Specified by:
bindMarker
in interfaceExpNodeVisitor<Set<String>>
-
select
public Set<String> select(Select select)
Description copied from interface:ExpNodeVisitor
Process a sub-select statement- Specified by:
select
in interfaceExpNodeVisitor<Set<String>>
- Returns:
-
coalesce
public Set<String> coalesce(List<ColumnRef> columnRefs)
Description copied from interface:ExpNodeVisitor
Render a COALESCE(...) function- Specified by:
coalesce
in interfaceExpNodeVisitor<Set<String>>
- Returns:
-
bindMarker
public Set<String> bindMarker(BigDecimal value)
- Specified by:
bindMarker
in interfaceExpNodeVisitor<Set<String>>
-
cos
public Set<String> cos(Set<String> arg)
Description copied from interface:ExpNodeVisitor
SQL COS function- Specified by:
cos
in interfaceExpNodeVisitor<Set<String>>
- Returns:
-
acos
public Set<String> acos(Set<String> arg)
Description copied from interface:ExpNodeVisitor
SQL ACOS function- Specified by:
acos
in interfaceExpNodeVisitor<Set<String>>
- Returns:
-
sin
public Set<String> sin(Set<String> arg)
Description copied from interface:ExpNodeVisitor
SQL SIN function- Specified by:
sin
in interfaceExpNodeVisitor<Set<String>>
- Returns:
-
radians
public Set<String> radians(Set<String> arg)
Description copied from interface:ExpNodeVisitor
SQL RADIANS function- Specified by:
radians
in interfaceExpNodeVisitor<Set<String>>
- Returns:
-
-