Package com.influxdb.client
Class JSON.SqlDateTypeAdapter
java.lang.Object
com.google.gson.TypeAdapter<Date>
com.influxdb.client.JSON.SqlDateTypeAdapter
- Enclosing class:
JSON
Gson TypeAdapter for java.sql.Date type
If the dateFormat is null, a simple "yyyy-MM-dd" format will be used
(more efficient than SimpleDateFormat).
-
Constructor Summary
-
Method Summary
Methods inherited from class com.google.gson.TypeAdapter
fromJson, fromJson, fromJsonTree, nullSafe, toJson, toJson, toJsonTree
-
Constructor Details
-
SqlDateTypeAdapter
public SqlDateTypeAdapter()
-
-
Method Details
-
setFormat
-
write
- Specified by:
write
in classcom.google.gson.TypeAdapter<Date>
- Throws:
IOException
-
read
- Specified by:
read
in classcom.google.gson.TypeAdapter<Date>
- Throws:
IOException
-