[#1870] Deprecate org.jooq.NamedTypeProviderQueryPart

This commit is contained in:
Lukas Eder 2012-10-19 19:14:45 +02:00
parent 1fecedc621
commit afea623b09
5 changed files with 37 additions and 0 deletions

View File

@ -92,6 +92,18 @@ public interface Field<T> extends NamedTypeProviderQueryPart<T>, AliasProvider<F
@Override
Class<? extends T> getType();
/**
* The type of this field (might not be dialect-specific)
*/
@Override
DataType<T> getDataType();
/**
* The dialect-specific type of this field
*/
@Override
DataType<T> getDataType(Configuration configuration);
/**
* Create an alias for this field
*

View File

@ -41,7 +41,11 @@ package org.jooq;
*
* @param <T> The type provided by this type provider
* @author Lukas Eder
* @deprecated - 2.6.0 [#1870] - This marker interface does not have enough
* momentum to be exposed in the public API. It will be removed in
* the future.
*/
@Deprecated
public interface NamedTypeProviderQueryPart<T> extends NamedQueryPart {
/**

View File

@ -44,8 +44,27 @@ import static org.jooq.SQLDialect.ORACLE;
* @param <T> The parameter type
* @author Lukas Eder
*/
@SuppressWarnings("deprecation")
public interface Parameter<T> extends NamedTypeProviderQueryPart<T> {
/**
* The Java type of the parameter.
*/
@Override
Class<? extends T> getType();
/**
* The type of this parameter (might not be dialect-specific)
*/
@Override
DataType<T> getDataType();
/**
* The dialect-specific type of this parameter
*/
@Override
DataType<T> getDataType(Configuration configuration);
/**
* Whether this parameter has a default value
* <p>

View File

@ -43,6 +43,7 @@ package org.jooq;
* @see Field#asc()
* @see Field#desc()
*/
@SuppressWarnings("deprecation")
public interface SortField<T> extends NamedTypeProviderQueryPart<T> {
/**

View File

@ -43,6 +43,7 @@ import org.jooq.NamedTypeProviderQueryPart;
/**
* @author Lukas Eder
*/
@SuppressWarnings("deprecation")
abstract class AbstractNamedTypeProviderQueryPart<T> extends AbstractNamedQueryPart implements
NamedTypeProviderQueryPart<T> {