[#1800] Deprecate AliasProvider

This commit is contained in:
Lukas Eder 2012-09-05 20:43:57 +02:00
parent a32cc252ef
commit d20fe113a0
4 changed files with 15 additions and 0 deletions

View File

@ -41,7 +41,10 @@ package org.jooq;
*
* @param <Z> The self-binding alias provider subtype
* @author Lukas Eder
* @deprecated - 2.6.0 [#1800] - This marker interface will be removed in future
* versions of jOOQ
*/
@Deprecated
public interface AliasProvider<Z extends AliasProvider<Z>> extends QueryPart {
/**

View File

@ -65,6 +65,7 @@ import org.jooq.util.oracle.OracleFactory;
* @param <T> The field type
* @author Lukas Eder
*/
@SuppressWarnings("deprecation")
public interface Field<T> extends NamedTypeProviderQueryPart<T>, AliasProvider<Field<T>> {
// ------------------------------------------------------------------------

View File

@ -76,6 +76,16 @@ public interface Table<R extends Record> extends org.jooq.Type<R>, AliasProvider
@Override
Class<? extends R> getRecordType();
/**
* Create an alias for this table
*
* @param alias The alias name
* @return The table alias
*/
@Override
@Support
Table<R> as(String alias);
/**
* Retrieve the table's <code>IDENTITY</code> information, if available.
* <p>

View File

@ -50,6 +50,7 @@ import org.jooq.RenderContext;
/**
* @author Lukas Eder
*/
@SuppressWarnings("deprecation")
class AliasProviderImpl<T extends AliasProvider<T>> extends AbstractNamedQueryPart implements AliasProvider<T> {
private static final long serialVersionUID = -2456848365524191614L;