Class SimpleCase
java.lang.Object
io.github.torand.fastersql.expression.cases.SimpleCase
- All Implemented Interfaces:
Expression,Projection,Sql
Implements a simple CASE expression.
-
Method Summary
Modifier and TypeMethodDescriptionalias()Gets the column alias (label) assigned for this projection.Gets the column aliases referenced by this fragment.Assigns a column alias (label) for this projection.Gets the columns referenced by this fragment.Gets the statement parameters introduced by this fragment.Formats object as an SQL fragment.
-
Method Details
-
sql
Description copied from interface:SqlFormats object as an SQL fragment. -
params
Description copied from interface:SqlGets the statement parameters introduced by this fragment. -
columnRefs
Description copied from interface:SqlGets the columns referenced by this fragment. For validation purposes.- Specified by:
columnRefsin interfaceSql- Returns:
- the columns referenced by this fragment.
-
aliasRefs
Description copied from interface:SqlGets the column aliases referenced by this fragment. For validation purposes. -
as
Description copied from interface:ProjectionAssigns a column alias (label) for this projection.- Specified by:
asin interfaceProjection- Parameters:
alias- the column alias or label.- Returns:
- the projection with specified alias assigned.
-
alias
Description copied from interface:ProjectionGets the column alias (label) assigned for this projection.- Specified by:
aliasin interfaceProjection- Returns:
- the column alias (label) assigned for this projection.
-