java.util.Date serialization, we do use String
representation here. Why? Basically to truncate of time part, since
that should not be used by plain SQL date.Note
name was SqlDateSerializer in Jackson 2.x
| Modifier and Type | Field and Description |
|---|---|
| public static final JavaSqlDateSerializer |
| Access | Constructor and Description |
|---|---|
| public | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected long | _timestamp(Date value)
Implements abstract tools.
|
| public void | serialize(Date value, JsonGenerator g, SerializationContext provider)
Implements abstract tools. Method that can be called to ask implementation to serialize values of type this serializer handles. |
| public JavaSqlDateSerializer | withFormat(Boolean timestamp, DateFormat customFormat)
Implements abstract tools.
|
| instance | back to summary |
|---|---|
| public static final JavaSqlDateSerializer instance | |
| JavaSqlDateSerializer | back to summary |
|---|---|
| public JavaSqlDateSerializer() | |
| JavaSqlDateSerializer | back to summary |
|---|---|
| protected JavaSqlDateSerializer(Boolean useTimestamp, DateFormat customFormat) | |
| _timestamp | back to summary |
|---|---|
| protected long _timestamp(Date value) Implements abstract tools.
| |
| serialize | back to summary |
|---|---|
| public void serialize(Date value, JsonGenerator g, SerializationContext provider) throws JacksonException Implements abstract tools. Doc from tools. Method that can be called to ask implementation to serialize values of type this serializer handles.
| |
| withFormat | back to summary |
|---|---|
| public JavaSqlDateSerializer withFormat(Boolean timestamp, DateFormat customFormat) Implements abstract tools.
| |