Package org.fastnate.generator.converter
Class UnsupportedTypeConverter
java.lang.Object
org.fastnate.generator.converter.UnsupportedTypeConverter
- All Implemented Interfaces:
ValueConverter<Object>
Converter used for all types that we can't convert.
Used to generate a lazy exception - only if someone fills a property of unsupported type, we need to throw an
exception.
- 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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.fastnate.generator.converter.ValueConverter
getExpression
-
Constructor Details
-
UnsupportedTypeConverter
-
-
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)
-