public class BooleanConverter extends AbstractValueConverter<Boolean>
Constructor and Description |
---|
BooleanConverter() |
Modifier and Type | Method and Description |
---|---|
String |
getExpression(Boolean value,
GeneratorContext context)
Builds the expression for writing the given value into an SQL clause.
|
String |
getExpression(String defaultValue,
GeneratorContext context)
Builds the expression for writing the default value into an SQL clause.
|
public String getExpression(Boolean value, GeneratorContext context)
ValueConverter
value
- the current valuecontext
- the current context (contains the database dialect).public String getExpression(String defaultValue, GeneratorContext context)
ValueConverter
getExpression
in interface ValueConverter<Boolean>
getExpression
in class AbstractValueConverter<Boolean>
defaultValue
- the default value, as given in an DefaultValue
expressioncontext
- the current context (contains the database dialect).Copyright © 2016 fastnate.org. All rights reserved.