Package org.fastnate.generator.converter
Class SerializableConverter
java.lang.Object
org.fastnate.generator.converter.SerializableConverter
- All Implemented Interfaces:
ValueConverter<Serializable>
Converts a
Serializable to a SQL expression.- Author:
- Tobias Liefke
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetExpression(Serializable 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
-
SerializableConverter
public SerializableConverter()
-
-
Method Details
-
getExpression
Description copied from interface:ValueConverterBuilds the expression for writing the given value into an SQL clause.- Specified by:
getExpressionin interfaceValueConverter<Serializable>- Parameters:
value- the current valuecontext- the current context (contains the database dialect).- Returns:
- the expression (that is including surrounding ' for string literals)
-