Class SqlTypesSupport
java.lang.Object
com.google.gson.internal.sql.SqlTypesSupport
Encapsulates access to
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 and SQL_TYPE_FACTORIES will contain the SQL type adapter factories.
However, if it is false all other constants will be null and SQL_TYPE_FACTORIES will be an empty list, and there will be no support for java.sql
types.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DefaultDateTypeAdapter.DateType<? extends Date> static final TypeAdapterFactorystatic final List<TypeAdapterFactory> static final booleantrueifjava.sqltypes are supported,falseotherwisestatic final TypeAdapterFactorystatic final DefaultDateTypeAdapter.DateType<? extends Date> static final TypeAdapterFactory -
Method Summary
-
Field Details
-
SUPPORTS_SQL_TYPES
public static final boolean SUPPORTS_SQL_TYPEStrueifjava.sqltypes are supported,falseotherwise -
DATE_DATE_TYPE
-
TIMESTAMP_DATE_TYPE
-
DATE_FACTORY
-
TIME_FACTORY
-
TIMESTAMP_FACTORY
-
SQL_TYPE_FACTORIES
-