Class SqlDateSerializer
- java.lang.Object
 - 
- com.fasterxml.jackson.databind.JsonSerializer<T>
 - 
- com.fasterxml.jackson.databind.ser.std.StdSerializer<T>
 - 
- com.fasterxml.jackson.databind.ser.std.StdScalarSerializer<T>
 - 
- com.fasterxml.jackson.databind.ser.std.DateTimeSerializerBase<java.sql.Date>
 - 
- com.fasterxml.jackson.databind.ser.std.SqlDateSerializer
 
 
 
 
 
 
- 
- All Implemented Interfaces:
 JsonFormatVisitable,SchemaAware,ContextualSerializer,java.io.Serializable
public class SqlDateSerializer extends DateTimeSerializerBase<java.sql.Date>
Compared to regularDateserialization, we do use String representation here. Why? Basically to truncate of time part, since that should not be used by plain SQL date.- See Also:
 - Serialized Form
 
 
- 
- 
Nested Class Summary
- 
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonSerializer
JsonSerializer.None 
 - 
 
- 
Constructor Summary
Constructors Constructor Description SqlDateSerializer() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidserialize(java.sql.Date value, JsonGenerator g, SerializerProvider provider)Method that can be called to ask implementation to serialize values of type this serializer handles.SqlDateSerializerwithFormat(java.lang.Boolean timestamp, java.text.DateFormat customFormat)- 
Methods inherited from class com.fasterxml.jackson.databind.ser.std.DateTimeSerializerBase
acceptJsonFormatVisitor, createContextual, getSchema, isEmpty 
- 
Methods inherited from class com.fasterxml.jackson.databind.ser.std.StdScalarSerializer
serializeWithType 
- 
Methods inherited from class com.fasterxml.jackson.databind.ser.std.StdSerializer
getSchema, handledType, wrapAndThrow, wrapAndThrow 
- 
Methods inherited from class com.fasterxml.jackson.databind.JsonSerializer
getDelegatee, isEmpty, isUnwrappingSerializer, properties, replaceDelegatee, unwrappingSerializer, usesObjectId, withFilterId, withIgnoredProperties 
 - 
 
 - 
 
- 
- 
Method Detail
- 
withFormat
public SqlDateSerializer withFormat(java.lang.Boolean timestamp, java.text.DateFormat customFormat)
- Specified by:
 withFormatin classDateTimeSerializerBase<java.sql.Date>
 
- 
serialize
public void serialize(java.sql.Date value, JsonGenerator g, SerializerProvider provider) throws java.io.IOExceptionDescription copied from class:JsonSerializerMethod that can be called to ask implementation to serialize values of type this serializer handles.- Specified by:
 serializein classDateTimeSerializerBase<java.sql.Date>- Parameters:
 value- Value to serialize; can not be null.g- Generator used to output resulting Json contentprovider- Provider that can be used to get serializers for serializing Objects value contains, if any.- Throws:
 java.io.IOException
 
 - 
 
 -