public class DefaultJsonValueAdapter extends Object implements JsonValueAdapter
| Constructor and Description |
|---|
DefaultJsonValueAdapter() |
DefaultJsonValueAdapter(String dateTimeFormat) |
| Modifier and Type | Method and Description |
|---|---|
String |
jsonFromDate(Date date)
Convert the Date to json string.
|
String |
jsonFromTimestamp(Timestamp date)
Convert the DateTime to json string.
|
Date |
jsonToDate(String jsonDate)
Parse the JSON string into a Date.
|
Timestamp |
jsonToTimestamp(String jsonDateTime)
Parse the JSON DateTime into a Timestamp.
|
public DefaultJsonValueAdapter(String dateTimeFormat)
public DefaultJsonValueAdapter()
public String jsonFromDate(Date date)
JsonValueAdapterjsonFromDate in interface JsonValueAdapterpublic String jsonFromTimestamp(Timestamp date)
JsonValueAdapterjsonFromTimestamp in interface JsonValueAdapterpublic Date jsonToDate(String jsonDate)
JsonValueAdapterjsonToDate in interface JsonValueAdapterpublic Timestamp jsonToTimestamp(String jsonDateTime)
JsonValueAdapterjsonToTimestamp in interface JsonValueAdapterCopyright © 2014. All Rights Reserved.