Class ColumnExpNodeVisitor
- java.lang.Object
-
- org.linuxforhealth.fhir.database.utils.query.expression.ColumnExpNodeVisitor
-
- All Implemented Interfaces:
ExpNodeVisitor<java.util.Set<java.lang.String>>
public class ColumnExpNodeVisitor extends java.lang.Object implements ExpNodeVisitor<java.util.Set<java.lang.String>>
Renders the expression node tree into a string
-
-
Constructor Summary
Constructors Constructor Description ColumnExpNodeVisitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<java.lang.String>
acos(java.util.Set<java.lang.String> arg)
SQL ACOS functionjava.util.Set<java.lang.String>
add(java.util.Set<java.lang.String> left, java.util.Set<java.lang.String> right)
java.util.Set<java.lang.String>
and(java.util.Set<java.lang.String> left, java.util.Set<java.lang.String> right)
java.util.Set<java.lang.String>
between(java.util.Set<java.lang.String> leftValue, java.util.Set<java.lang.String> rightValue)
java.util.Set<java.lang.String>
bindMarker(java.lang.Double value)
java.util.Set<java.lang.String>
bindMarker(java.lang.Integer value)
java.util.Set<java.lang.String>
bindMarker(java.lang.Long value)
java.util.Set<java.lang.String>
bindMarker(java.lang.String value)
java.util.Set<java.lang.String>
bindMarker(java.math.BigDecimal value)
java.util.Set<java.lang.String>
bindMarker(java.time.Instant value)
java.util.Set<java.lang.String>
coalesce(java.util.List<ColumnRef> columnRefs)
Render a COALESCE(...) functionjava.util.Set<java.lang.String>
column(java.lang.String tableAlias, java.lang.String columnName)
java.util.Set<java.lang.String>
cos(java.util.Set<java.lang.String> arg)
SQL COS functionjava.util.Set<java.lang.String>
divide(java.util.Set<java.lang.String> left, java.util.Set<java.lang.String> right)
java.util.Set<java.lang.String>
eq(java.util.Set<java.lang.String> left, java.util.Set<java.lang.String> right)
java.util.Set<java.lang.String>
escape(java.util.Set<java.lang.String> left, java.util.Set<java.lang.String> right)
java.util.Set<java.lang.String>
exists(java.util.Set<java.lang.String> statement)
java.util.Set<java.lang.String>
gt(java.util.Set<java.lang.String> left, java.util.Set<java.lang.String> right)
java.util.Set<java.lang.String>
gte(java.util.Set<java.lang.String> left, java.util.Set<java.lang.String> right)
java.util.Set<java.lang.String>
in(java.util.Set<java.lang.String> leftValue, java.util.List<java.util.Set<java.lang.String>> args)
java.util.Set<java.lang.String>
isNotNull(java.util.Set<java.lang.String> expr)
java.util.Set<java.lang.String>
isNull(java.util.Set<java.lang.String> expr)
java.util.Set<java.lang.String>
like(java.util.Set<java.lang.String> left, java.util.Set<java.lang.String> right)
java.util.Set<java.lang.String>
literal(java.lang.Double value)
java.util.Set<java.lang.String>
literal(java.lang.Long value)
java.util.Set<java.lang.String>
literal(java.lang.String value)
java.util.Set<java.lang.String>
lt(java.util.Set<java.lang.String> left, java.util.Set<java.lang.String> right)
java.util.Set<java.lang.String>
lte(java.util.Set<java.lang.String> left, java.util.Set<java.lang.String> right)
java.util.Set<java.lang.String>
multiply(java.util.Set<java.lang.String> left, java.util.Set<java.lang.String> right)
java.util.Set<java.lang.String>
neq(java.util.Set<java.lang.String> left, java.util.Set<java.lang.String> right)
java.util.Set<java.lang.String>
not(java.util.Set<java.lang.String> exp)
java.util.Set<java.lang.String>
notExists(java.util.Set<java.lang.String> statement)
java.util.Set<java.lang.String>
or(java.util.Set<java.lang.String> left, java.util.Set<java.lang.String> right)
java.util.Set<java.lang.String>
paren(java.util.Set<java.lang.String> expr)
java.util.Set<java.lang.String>
radians(java.util.Set<java.lang.String> arg)
SQL RADIANS functionjava.util.Set<java.lang.String>
select(Select select)
Process a sub-select statementjava.util.Set<java.lang.String>
sin(java.util.Set<java.lang.String> arg)
SQL SIN functionjava.util.Set<java.lang.String>
subtract(java.util.Set<java.lang.String> left, java.util.Set<java.lang.String> right)
-
-
-
Method Detail
-
paren
public java.util.Set<java.lang.String> paren(java.util.Set<java.lang.String> expr)
- Specified by:
paren
in interfaceExpNodeVisitor<java.util.Set<java.lang.String>>
-
and
public java.util.Set<java.lang.String> and(java.util.Set<java.lang.String> left, java.util.Set<java.lang.String> right)
- Specified by:
and
in interfaceExpNodeVisitor<java.util.Set<java.lang.String>>
-
or
public java.util.Set<java.lang.String> or(java.util.Set<java.lang.String> left, java.util.Set<java.lang.String> right)
- Specified by:
or
in interfaceExpNodeVisitor<java.util.Set<java.lang.String>>
-
not
public java.util.Set<java.lang.String> not(java.util.Set<java.lang.String> exp)
- Specified by:
not
in interfaceExpNodeVisitor<java.util.Set<java.lang.String>>
-
exists
public java.util.Set<java.lang.String> exists(java.util.Set<java.lang.String> statement)
- Specified by:
exists
in interfaceExpNodeVisitor<java.util.Set<java.lang.String>>
-
notExists
public java.util.Set<java.lang.String> notExists(java.util.Set<java.lang.String> statement)
- Specified by:
notExists
in interfaceExpNodeVisitor<java.util.Set<java.lang.String>>
-
eq
public java.util.Set<java.lang.String> eq(java.util.Set<java.lang.String> left, java.util.Set<java.lang.String> right)
- Specified by:
eq
in interfaceExpNodeVisitor<java.util.Set<java.lang.String>>
-
neq
public java.util.Set<java.lang.String> neq(java.util.Set<java.lang.String> left, java.util.Set<java.lang.String> right)
- Specified by:
neq
in interfaceExpNodeVisitor<java.util.Set<java.lang.String>>
-
gt
public java.util.Set<java.lang.String> gt(java.util.Set<java.lang.String> left, java.util.Set<java.lang.String> right)
- Specified by:
gt
in interfaceExpNodeVisitor<java.util.Set<java.lang.String>>
-
gte
public java.util.Set<java.lang.String> gte(java.util.Set<java.lang.String> left, java.util.Set<java.lang.String> right)
- Specified by:
gte
in interfaceExpNodeVisitor<java.util.Set<java.lang.String>>
-
lt
public java.util.Set<java.lang.String> lt(java.util.Set<java.lang.String> left, java.util.Set<java.lang.String> right)
- Specified by:
lt
in interfaceExpNodeVisitor<java.util.Set<java.lang.String>>
-
lte
public java.util.Set<java.lang.String> lte(java.util.Set<java.lang.String> left, java.util.Set<java.lang.String> right)
- Specified by:
lte
in interfaceExpNodeVisitor<java.util.Set<java.lang.String>>
-
literal
public java.util.Set<java.lang.String> literal(java.lang.String value)
- Specified by:
literal
in interfaceExpNodeVisitor<java.util.Set<java.lang.String>>
-
literal
public java.util.Set<java.lang.String> literal(java.lang.Long value)
- Specified by:
literal
in interfaceExpNodeVisitor<java.util.Set<java.lang.String>>
-
literal
public java.util.Set<java.lang.String> literal(java.lang.Double value)
- Specified by:
literal
in interfaceExpNodeVisitor<java.util.Set<java.lang.String>>
-
column
public java.util.Set<java.lang.String> column(java.lang.String tableAlias, java.lang.String columnName)
- Specified by:
column
in interfaceExpNodeVisitor<java.util.Set<java.lang.String>>
-
add
public java.util.Set<java.lang.String> add(java.util.Set<java.lang.String> left, java.util.Set<java.lang.String> right)
- Specified by:
add
in interfaceExpNodeVisitor<java.util.Set<java.lang.String>>
-
subtract
public java.util.Set<java.lang.String> subtract(java.util.Set<java.lang.String> left, java.util.Set<java.lang.String> right)
- Specified by:
subtract
in interfaceExpNodeVisitor<java.util.Set<java.lang.String>>
-
multiply
public java.util.Set<java.lang.String> multiply(java.util.Set<java.lang.String> left, java.util.Set<java.lang.String> right)
- Specified by:
multiply
in interfaceExpNodeVisitor<java.util.Set<java.lang.String>>
-
divide
public java.util.Set<java.lang.String> divide(java.util.Set<java.lang.String> left, java.util.Set<java.lang.String> right)
- Specified by:
divide
in interfaceExpNodeVisitor<java.util.Set<java.lang.String>>
-
isNull
public java.util.Set<java.lang.String> isNull(java.util.Set<java.lang.String> expr)
- Specified by:
isNull
in interfaceExpNodeVisitor<java.util.Set<java.lang.String>>
-
isNotNull
public java.util.Set<java.lang.String> isNotNull(java.util.Set<java.lang.String> expr)
- Specified by:
isNotNull
in interfaceExpNodeVisitor<java.util.Set<java.lang.String>>
-
between
public java.util.Set<java.lang.String> between(java.util.Set<java.lang.String> leftValue, java.util.Set<java.lang.String> rightValue)
- Specified by:
between
in interfaceExpNodeVisitor<java.util.Set<java.lang.String>>
-
in
public java.util.Set<java.lang.String> in(java.util.Set<java.lang.String> leftValue, java.util.List<java.util.Set<java.lang.String>> args)
- Specified by:
in
in interfaceExpNodeVisitor<java.util.Set<java.lang.String>>
-
like
public java.util.Set<java.lang.String> like(java.util.Set<java.lang.String> left, java.util.Set<java.lang.String> right)
- Specified by:
like
in interfaceExpNodeVisitor<java.util.Set<java.lang.String>>
-
escape
public java.util.Set<java.lang.String> escape(java.util.Set<java.lang.String> left, java.util.Set<java.lang.String> right)
- Specified by:
escape
in interfaceExpNodeVisitor<java.util.Set<java.lang.String>>
-
bindMarker
public java.util.Set<java.lang.String> bindMarker(java.lang.Double value)
- Specified by:
bindMarker
in interfaceExpNodeVisitor<java.util.Set<java.lang.String>>
-
bindMarker
public java.util.Set<java.lang.String> bindMarker(java.lang.Long value)
- Specified by:
bindMarker
in interfaceExpNodeVisitor<java.util.Set<java.lang.String>>
-
bindMarker
public java.util.Set<java.lang.String> bindMarker(java.lang.Integer value)
- Specified by:
bindMarker
in interfaceExpNodeVisitor<java.util.Set<java.lang.String>>
-
bindMarker
public java.util.Set<java.lang.String> bindMarker(java.lang.String value)
- Specified by:
bindMarker
in interfaceExpNodeVisitor<java.util.Set<java.lang.String>>
-
bindMarker
public java.util.Set<java.lang.String> bindMarker(java.time.Instant value)
- Specified by:
bindMarker
in interfaceExpNodeVisitor<java.util.Set<java.lang.String>>
-
select
public java.util.Set<java.lang.String> select(Select select)
Description copied from interface:ExpNodeVisitor
Process a sub-select statement- Specified by:
select
in interfaceExpNodeVisitor<java.util.Set<java.lang.String>>
- Returns:
-
coalesce
public java.util.Set<java.lang.String> coalesce(java.util.List<ColumnRef> columnRefs)
Description copied from interface:ExpNodeVisitor
Render a COALESCE(...) function- Specified by:
coalesce
in interfaceExpNodeVisitor<java.util.Set<java.lang.String>>
- Returns:
-
bindMarker
public java.util.Set<java.lang.String> bindMarker(java.math.BigDecimal value)
- Specified by:
bindMarker
in interfaceExpNodeVisitor<java.util.Set<java.lang.String>>
-
cos
public java.util.Set<java.lang.String> cos(java.util.Set<java.lang.String> arg)
Description copied from interface:ExpNodeVisitor
SQL COS function- Specified by:
cos
in interfaceExpNodeVisitor<java.util.Set<java.lang.String>>
- Returns:
-
acos
public java.util.Set<java.lang.String> acos(java.util.Set<java.lang.String> arg)
Description copied from interface:ExpNodeVisitor
SQL ACOS function- Specified by:
acos
in interfaceExpNodeVisitor<java.util.Set<java.lang.String>>
- Returns:
-
sin
public java.util.Set<java.lang.String> sin(java.util.Set<java.lang.String> arg)
Description copied from interface:ExpNodeVisitor
SQL SIN function- Specified by:
sin
in interfaceExpNodeVisitor<java.util.Set<java.lang.String>>
- Returns:
-
radians
public java.util.Set<java.lang.String> radians(java.util.Set<java.lang.String> arg)
Description copied from interface:ExpNodeVisitor
SQL RADIANS function- Specified by:
radians
in interfaceExpNodeVisitor<java.util.Set<java.lang.String>>
- Returns:
-
-