[#1800] Deprecate AliasProvider
This commit is contained in:
parent
a32cc252ef
commit
d20fe113a0
@ -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 {
|
||||
|
||||
/**
|
||||
|
||||
@ -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>> {
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
@ -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>
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user