Package com.google.gson.internal.sql
Class SqlTypesSupport
- java.lang.Object
-
- com.google.gson.internal.sql.SqlTypesSupport
-
public final class SqlTypesSupport extends java.lang.ObjectEncapsulates access tojava.sqltypes, to allow Gson to work without thejava.sqlmodule being present. NoClassNotFoundExceptions will be thrown in case thejava.sqlmodule is not present.If
SUPPORTS_SQL_TYPESistrue, all other constants of this class will be non-nullandSQL_TYPE_FACTORIESwill contain the SQL type adapter factories. However, if it isfalseall other constants will benullandSQL_TYPE_FACTORIESwill be an empty list, and there will be no support forjava.sqltypes.
-
-
Field Summary
Fields Modifier and Type Field Description static DefaultDateTypeAdapter.DateType<? extends java.util.Date>DATE_DATE_TYPEstatic TypeAdapterFactoryDATE_FACTORYstatic java.util.List<TypeAdapterFactory>SQL_TYPE_FACTORIESstatic booleanSUPPORTS_SQL_TYPEStrueifjava.sqltypes are supported,falseotherwisestatic TypeAdapterFactoryTIME_FACTORYstatic DefaultDateTypeAdapter.DateType<? extends java.util.Date>TIMESTAMP_DATE_TYPEstatic TypeAdapterFactoryTIMESTAMP_FACTORY
-
-
-
Field Detail
-
SUPPORTS_SQL_TYPES
public static final boolean SUPPORTS_SQL_TYPES
trueifjava.sqltypes are supported,falseotherwise
-
DATE_DATE_TYPE
public static final DefaultDateTypeAdapter.DateType<? extends java.util.Date> DATE_DATE_TYPE
-
TIMESTAMP_DATE_TYPE
public static final DefaultDateTypeAdapter.DateType<? extends java.util.Date> TIMESTAMP_DATE_TYPE
-
DATE_FACTORY
public static final TypeAdapterFactory DATE_FACTORY
-
TIME_FACTORY
public static final TypeAdapterFactory TIME_FACTORY
-
TIMESTAMP_FACTORY
public static final TypeAdapterFactory TIMESTAMP_FACTORY
-
SQL_TYPE_FACTORIES
public static final java.util.List<TypeAdapterFactory> SQL_TYPE_FACTORIES
-
-