Package org.fastnate.generator.converter
Class LobConverter
java.lang.Object
org.fastnate.generator.converter.LobConverter
- All Implemented Interfaces:
ValueConverter<Object>
Generates the expression for a
property.- Author:
- Tobias Liefke
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetExpression(Object 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
-
LobConverter
public LobConverter()
-
-
Method Details
-
getExpression
Description copied from interface:ValueConverterBuilds the expression for writing the given value into an SQL clause.- Specified by:
getExpressionin interfaceValueConverter<Object>- 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<Object>- 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)
-