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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intSerializable objects tend to be big, so start not to small with the buffer. -
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
-
Field Details
-
DEFAULT_BUFFER_SIZE
private static final int DEFAULT_BUFFER_SIZESerializable objects tend to be big, so start not to small with the buffer.- See Also:
-
-
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)
-