Class CaseExpression.WhenClause<B,R extends AnyResult<B>>
- java.lang.Object
-
- nz.co.gregs.dbvolution.expressions.CaseExpression.WhenClause<B,R>
-
- All Implemented Interfaces:
HasSQLString
- Enclosing class:
- CaseExpression
protected static class CaseExpression.WhenClause<B,R extends AnyResult<B>> extends Object implements HasSQLString
-
-
Field Summary
Fields Modifier and Type Field Description R
returnValue
BooleanExpression
test
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
toSQLString(DBDefinition db)
Produces the snippet provided by this class.
-
-
-
Field Detail
-
test
public BooleanExpression test
-
-
Method Detail
-
toSQLString
public String toSQLString(DBDefinition db)
Description copied from interface:HasSQLString
Produces the snippet provided by this class.This is only used internally.
If you are extending DBvolution and adding a new function this is the place to format the information for use in SQL. A DBDefinition instance is provided to supply context and so your SQL can used on multiple database engines.
- Specified by:
toSQLString
in interfaceHasSQLString
- Parameters:
db
- the target databaseSupport DBvolution at Patreon
- Returns:
- the DBValue formatted as a SQL snippet
-
-