Package org.fastnate.generator.converter
Class CharConverter
java.lang.Object
org.fastnate.generator.converter.CharConverter
- All Implemented Interfaces:
ValueConverter<Character>
Describes a char property of an
EntityClass.- Author:
- Tobias Liefke
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetExpression(Character value, GeneratorContext context) Builds the expression for writing the given value into an SQL clause.getExpression(String defaultValue, GeneratorContext context) Builds the expression for writing the default value into an SQL clause.
-
Constructor Details
-
CharConverter
public CharConverter()
-
-
Method Details
-
getExpression
Description copied from interface:ValueConverterBuilds the expression for writing the given value into an SQL clause.- Specified by:
getExpressionin interfaceValueConverter<Character>- Parameters:
value- the current valuecontext- the current context (contains the database dialect).- Returns:
- the expression (that is including surrounding ' for string literals)
-
getExpression
Description copied from interface:ValueConverterBuilds the expression for writing the default value into an SQL clause.- Specified by:
getExpressionin interfaceValueConverter<Character>- Parameters:
defaultValue- the default value, as given in anDefaultValueexpressioncontext- the current context (contains the database dialect).- Returns:
- the expression (that is including surrounding ' for string literals)
-