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-null. However, if it isfalseall other constants will benulland 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 booleanSUPPORTS_SQL_TYPEStrueifjava.sqltypes are supported,falseotherwisestatic TypeAdapterFactoryTIME_FACTORYstatic DefaultDateTypeAdapter.DateType<? extends java.util.Date>TIMESTAMP_DATE_TYPEstatic TypeAdapterFactoryTIMESTAMP_FACTORY
-
Constructor Summary
Constructors Modifier Constructor Description privateSqlTypesSupport()
-
-
-
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
-
-