public final class SqlTypesSupport extends Object
java.sql types, to allow Gson to
work without the java.sql module being present.
No ClassNotFoundExceptions will be thrown in case
the java.sql module is not present.
If SUPPORTS_SQL_TYPES is true, all other
constants of this class will be non-null. However, if
it is false all other constants will be null and
there will be no support for java.sql types.
| Modifier and Type | Field and Description |
|---|---|
static DefaultDateTypeAdapter.DateType<? extends Date> |
DATE_DATE_TYPE |
static TypeAdapterFactory |
DATE_FACTORY |
static boolean |
SUPPORTS_SQL_TYPES
true if java.sql types are supported,
false otherwise |
static TypeAdapterFactory |
TIME_FACTORY |
static DefaultDateTypeAdapter.DateType<? extends Date> |
TIMESTAMP_DATE_TYPE |
static TypeAdapterFactory |
TIMESTAMP_FACTORY |
public static final boolean SUPPORTS_SQL_TYPES
true if java.sql types are supported,
false otherwisepublic static final DefaultDateTypeAdapter.DateType<? extends Date> DATE_DATE_TYPE
public static final DefaultDateTypeAdapter.DateType<? extends Date> TIMESTAMP_DATE_TYPE
public static final TypeAdapterFactory DATE_FACTORY
public static final TypeAdapterFactory TIME_FACTORY
public static final TypeAdapterFactory TIMESTAMP_FACTORY
Copyright © 2025. All rights reserved.