T
- The type of the handled valuespublic interface ValueConverter<T>
Modifier and Type | Method and Description |
---|---|
default ColumnExpression |
getExpression(String defaultValue,
GeneratorContext context)
Builds the expression for writing the default value into an SQL clause.
|
ColumnExpression |
getExpression(T value,
GeneratorContext context)
Builds the expression for writing the given value into an SQL clause.
|
default ColumnExpression getExpression(String defaultValue, GeneratorContext context)
defaultValue
- the default value, as given in an DefaultValue
expressioncontext
- the current context (contains the database dialect).ColumnExpression getExpression(T value, GeneratorContext context)
value
- the current valuecontext
- the current context (contains the database dialect).Copyright © 2022 fastnate.org. All rights reserved.