[#7375] Deprecate <SQLDialect>DataType classes

This commit is contained in:
lukaseder 2018-04-03 15:07:28 +02:00
parent f6a22f9427
commit dfdea8c3b0
10 changed files with 65 additions and 1 deletions

View File

@ -96,6 +96,7 @@ import org.jooq.util.sqlite.SQLiteDataType;
*
* @author Lukas Eder
*/
@SuppressWarnings("deprecation")
public final class SQLDataType {
// -------------------------------------------------------------------------
@ -579,7 +580,7 @@ public final class SQLDataType {
static {
// Load all dialect-specific data types
// TODO [#650] Make this more reliable using a data type registry
// TODO [#5713] Make this more reliable using a data type registry
try {

View File

@ -58,7 +58,14 @@ import org.jooq.types.UShort;
* Supported data types for the {@link SQLDialect#CUBRID} dialect
*
* @author Lukas Eder
* @deprecated - 3.11.0 - [#7375] - This type is part of jOOQ's internal API. Do
* not reference this type directly from client code. Referencing
* this type before the {@link SQLDataType} class has been
* initialised may lead to deadlocks! See <a href=
* "https://github.com/jOOQ/jOOQ/issues/3777">https://github.com/jOOQ/jOOQ/issues/3777</a>
* for details.
*/
@Deprecated
public class CUBRIDDataType {
// -------------------------------------------------------------------------

View File

@ -59,7 +59,14 @@ import org.jooq.types.UShort;
*
* @author Lukas Eder
* @see <a href="http://db.apache.org/derby/docs/10.7/ref/crefsqlj31068.html">http://db.apache.org/derby/docs/10.7/ref/crefsqlj31068.html</a>
* @deprecated - 3.11.0 - [#7375] - This type is part of jOOQ's internal API. Do
* not reference this type directly from client code. Referencing
* this type before the {@link SQLDataType} class has been
* initialised may lead to deadlocks! See <a href=
* "https://github.com/jOOQ/jOOQ/issues/3777">https://github.com/jOOQ/jOOQ/issues/3777</a>
* for details.
*/
@Deprecated
public class DerbyDataType {
// -------------------------------------------------------------------------

View File

@ -60,7 +60,14 @@ import org.jooq.types.YearToMonth;
* Supported data types for the {@link SQLDialect#FIREBIRD} dialect
*
* @author Lukas Eder
* @deprecated - 3.11.0 - [#7375] - This type is part of jOOQ's internal API. Do
* not reference this type directly from client code. Referencing
* this type before the {@link SQLDataType} class has been
* initialised may lead to deadlocks! See <a href=
* "https://github.com/jOOQ/jOOQ/issues/3777">https://github.com/jOOQ/jOOQ/issues/3777</a>
* for details.
*/
@Deprecated
public class FirebirdDataType {
// -------------------------------------------------------------------------

View File

@ -61,7 +61,14 @@ import org.jooq.types.UShort;
*
* @author Lukas Eder
* @see <a href="http://www.h2database.com/html/datatypes.html">http://www.h2database.com/html/datatypes.html</a>
* @deprecated - 3.11.0 - [#7375] - This type is part of jOOQ's internal API. Do
* not reference this type directly from client code. Referencing
* this type before the {@link SQLDataType} class has been
* initialised may lead to deadlocks! See <a href=
* "https://github.com/jOOQ/jOOQ/issues/3777">https://github.com/jOOQ/jOOQ/issues/3777</a>
* for details.
*/
@Deprecated
public class H2DataType {
// -------------------------------------------------------------------------

View File

@ -64,7 +64,14 @@ import org.jooq.types.YearToMonth;
* @author Lukas Eder
* @see <a href="http://hsqldb.org/doc/guide/ch09.html#datatypes-section">http://hsqldb.org/doc/guide/ch09.html#datatypes-section</a>
* @see <a href="http://hsqldb.org/doc/2.0/guide/sqlgeneral-chapt.html#sqlgeneral_types_ops-sect">http://hsqldb.org/doc/2.0/guide/sqlgeneral-chapt.html#sqlgeneral_types_ops-sect</a>
* @deprecated - 3.11.0 - [#7375] - This type is part of jOOQ's internal API. Do
* not reference this type directly from client code. Referencing
* this type before the {@link SQLDataType} class has been
* initialised may lead to deadlocks! See <a href=
* "https://github.com/jOOQ/jOOQ/issues/3777">https://github.com/jOOQ/jOOQ/issues/3777</a>
* for details.
*/
@Deprecated
public class HSQLDBDataType {
// -------------------------------------------------------------------------

View File

@ -60,7 +60,14 @@ import org.jooq.types.UShort;
* @author Lukas Eder
* @see <a href="http://dev.mysql.com/doc/refman/5.5/en/data-types.html">http://dev.mysql.com/doc/refman/5.5/en/data-types.html</a>
* @see <a href="http://dev.mysql.com/doc/refman/5.5/en/cast-functions.html#function_cast">http://dev.mysql.com/doc/refman/5.5/en/cast-functions.html#function_cast</a>
* @deprecated - 3.11.0 - [#7375] - This type is part of jOOQ's internal API. Do
* not reference this type directly from client code. Referencing
* this type before the {@link SQLDataType} class has been
* initialised may lead to deadlocks! See <a href=
* "https://github.com/jOOQ/jOOQ/issues/3777">https://github.com/jOOQ/jOOQ/issues/3777</a>
* for details.
*/
@Deprecated
public class MariaDBDataType {
// -------------------------------------------------------------------------

View File

@ -60,7 +60,14 @@ import org.jooq.types.UShort;
* @author Lukas Eder
* @see <a href="http://dev.mysql.com/doc/refman/5.5/en/data-types.html">http://dev.mysql.com/doc/refman/5.5/en/data-types.html</a>
* @see <a href="http://dev.mysql.com/doc/refman/5.5/en/cast-functions.html#function_cast">http://dev.mysql.com/doc/refman/5.5/en/cast-functions.html#function_cast</a>
* @deprecated - 3.11.0 - [#7375] - This type is part of jOOQ's internal API. Do
* not reference this type directly from client code. Referencing
* this type before the {@link SQLDataType} class has been
* initialised may lead to deadlocks! See <a href=
* "https://github.com/jOOQ/jOOQ/issues/3777">https://github.com/jOOQ/jOOQ/issues/3777</a>
* for details.
*/
@Deprecated
public class MySQLDataType {
// -------------------------------------------------------------------------

View File

@ -65,7 +65,14 @@ import org.jooq.types.YearToMonth;
*
* @author Lukas Eder
* @see <a href="http://www.postgresql.org/docs/9.0/interactive/datatype.html">http://www.postgresql.org/docs/9.0/interactive/datatype.html</a>
* @deprecated - 3.11.0 - [#7375] - This type is part of jOOQ's internal API. Do
* not reference this type directly from client code. Referencing
* this type before the {@link SQLDataType} class has been
* initialised may lead to deadlocks! See <a href=
* "https://github.com/jOOQ/jOOQ/issues/3777">https://github.com/jOOQ/jOOQ/issues/3777</a>
* for details.
*/
@Deprecated
public class PostgresDataType {
// -------------------------------------------------------------------------

View File

@ -58,7 +58,14 @@ import org.jooq.types.UShort;
*
* @author Lukas Eder
* @see <a href="http://www.sqlite.org/datatype3.html">http://www.sqlite.org/datatype3.html</a>
* @deprecated - 3.11.0 - [#7375] - This type is part of jOOQ's internal API. Do
* not reference this type directly from client code. Referencing
* this type before the {@link SQLDataType} class has been
* initialised may lead to deadlocks! See <a href=
* "https://github.com/jOOQ/jOOQ/issues/3777">https://github.com/jOOQ/jOOQ/issues/3777</a>
* for details.
*/
@Deprecated
public class SQLiteDataType {
// -------------------------------------------------------------------------