[jOOQ/jOOQ#10156] Deprecate createView(X, Function), Table.as(X, Function), and DSLContext.with(X, Function)

This commit is contained in:
Lukas Eder 2020-05-05 09:11:04 +02:00
parent fa8429f1e3
commit 8b7a88816e
8 changed files with 297 additions and 3 deletions

View File

@ -3979,7 +3979,14 @@ public interface DSLContext extends Scope , AutoCloseable {
* This works in a similar way as {@link #with(String, String...)}, except
* that all column names are produced by a function that receives the CTE's
* {@link Select} columns as input.
*
* @deprecated - 3.14.0 - [#10156] - These methods will be removed without
* replacement from a future jOOQ. They offer convenience that
* is unidiomatic for jOOQ's DSL, without offering functionality
* that would not be possible otherwise - yet they add
* complexity in jOOQ's internals.
*/
@Deprecated
@Support({ FIREBIRD, H2, HSQLDB, MARIADB, MYSQL, POSTGRES, SQLITE })
WithAsStep with(String alias, Function<? super Field<?>, ? extends String> fieldNameFunction);
@ -3998,7 +4005,14 @@ public interface DSLContext extends Scope , AutoCloseable {
* This works in a similar way as {@link #with(String, String...)}, except
* that all column names are produced by a function that receives the CTE's
* {@link Select} columns and their column indexes as input.
*
* @deprecated - 3.14.0 - [#10156] - These methods will be removed without
* replacement from a future jOOQ. They offer convenience that
* is unidiomatic for jOOQ's DSL, without offering functionality
* that would not be possible otherwise - yet they add
* complexity in jOOQ's internals.
*/
@Deprecated
@Support({ FIREBIRD, H2, HSQLDB, MARIADB, MYSQL, POSTGRES, SQLITE })
WithAsStep with(String alias, BiFunction<? super Field<?>, ? super Integer, ? extends String> fieldNameFunction);
@ -4872,7 +4886,14 @@ public interface DSLContext extends Scope , AutoCloseable {
* This works in a similar way as {@link #with(String, String...)}, except
* that all column names are produced by a function that receives the CTE's
* {@link Select} columns as input.
*
* @deprecated - 3.14.0 - [#10156] - These methods will be removed without
* replacement from a future jOOQ. They offer convenience that
* is unidiomatic for jOOQ's DSL, without offering functionality
* that would not be possible otherwise - yet they add
* complexity in jOOQ's internals.
*/
@Deprecated
@Support({ FIREBIRD, H2, HSQLDB, MARIADB, MYSQL, POSTGRES, SQLITE })
WithAsStep withRecursive(String alias, Function<? super Field<?>, ? extends String> fieldNameFunction);
@ -4892,7 +4913,14 @@ public interface DSLContext extends Scope , AutoCloseable {
* This works in a similar way as {@link #with(String, String...)}, except
* that all column names are produced by a function that receives the CTE's
* {@link Select} columns and their column indexes as input.
*
* @deprecated - 3.14.0 - [#10156] - These methods will be removed without
* replacement from a future jOOQ. They offer convenience that
* is unidiomatic for jOOQ's DSL, without offering functionality
* that would not be possible otherwise - yet they add
* complexity in jOOQ's internals.
*/
@Deprecated
@Support({ FIREBIRD, HSQLDB, MARIADB, MYSQL, POSTGRES, SQLITE })
WithAsStep withRecursive(String alias, BiFunction<? super Field<?>, ? super Integer, ? extends String> fieldNameFunction);
@ -8977,7 +9005,13 @@ public interface DSLContext extends Scope , AutoCloseable {
* using a function.
*
* @see DSL#createView(String, String...)
* @deprecated - 3.14.0 - [#10156] - These methods will be removed without
* replacement from a future jOOQ. They offer convenience that
* is unidiomatic for jOOQ's DSL, without offering functionality
* that would not be possible otherwise - yet they add
* complexity in jOOQ's internals.
*/
@Deprecated
@Support
CreateViewAsStep<Record> createView(String view, Function<? super Field<?>, ? extends String> fieldNameFunction);
@ -8989,7 +9023,13 @@ public interface DSLContext extends Scope , AutoCloseable {
* using a function.
*
* @see DSL#createView(String, String...)
* @deprecated - 3.14.0 - [#10156] - These methods will be removed without
* replacement from a future jOOQ. They offer convenience that
* is unidiomatic for jOOQ's DSL, without offering functionality
* that would not be possible otherwise - yet they add
* complexity in jOOQ's internals.
*/
@Deprecated
@Support
CreateViewAsStep<Record> createView(String view, BiFunction<? super Field<?>, ? super Integer, ? extends String> fieldNameFunction);
@ -9001,7 +9041,13 @@ public interface DSLContext extends Scope , AutoCloseable {
* using a function.
*
* @see DSL#createView(String, String...)
* @deprecated - 3.14.0 - [#10156] - These methods will be removed without
* replacement from a future jOOQ. They offer convenience that
* is unidiomatic for jOOQ's DSL, without offering functionality
* that would not be possible otherwise - yet they add
* complexity in jOOQ's internals.
*/
@Deprecated
@Support
CreateViewAsStep<Record> createView(Name view, Function<? super Field<?>, ? extends Name> fieldNameFunction);
@ -9013,7 +9059,13 @@ public interface DSLContext extends Scope , AutoCloseable {
* using a function.
*
* @see DSL#createView(String, String...)
* @deprecated - 3.14.0 - [#10156] - These methods will be removed without
* replacement from a future jOOQ. They offer convenience that
* is unidiomatic for jOOQ's DSL, without offering functionality
* that would not be possible otherwise - yet they add
* complexity in jOOQ's internals.
*/
@Deprecated
@Support
CreateViewAsStep<Record> createView(Name view, BiFunction<? super Field<?>, ? super Integer, ? extends Name> fieldNameFunction);
@ -9025,7 +9077,13 @@ public interface DSLContext extends Scope , AutoCloseable {
* using a function.
*
* @see DSL#createView(String, String...)
* @deprecated - 3.14.0 - [#10156] - These methods will be removed without
* replacement from a future jOOQ. They offer convenience that
* is unidiomatic for jOOQ's DSL, without offering functionality
* that would not be possible otherwise - yet they add
* complexity in jOOQ's internals.
*/
@Deprecated
@Support
CreateViewAsStep<Record> createView(Table<?> view, Function<? super Field<?>, ? extends Field<?>> fieldNameFunction);
@ -9037,7 +9095,13 @@ public interface DSLContext extends Scope , AutoCloseable {
* using a function.
*
* @see DSL#createView(String, String...)
* @deprecated - 3.14.0 - [#10156] - These methods will be removed without
* replacement from a future jOOQ. They offer convenience that
* is unidiomatic for jOOQ's DSL, without offering functionality
* that would not be possible otherwise - yet they add
* complexity in jOOQ's internals.
*/
@Deprecated
@Support
CreateViewAsStep<Record> createView(Table<?> view, BiFunction<? super Field<?>, ? super Integer, ? extends Field<?>> fieldNameFunction);
@ -9075,19 +9139,31 @@ public interface DSLContext extends Scope , AutoCloseable {
* using a function.
*
* @see DSL#createOrReplaceView(String, String...)
* @deprecated - 3.14.0 - [#10156] - These methods will be removed without
* replacement from a future jOOQ. They offer convenience that
* is unidiomatic for jOOQ's DSL, without offering functionality
* that would not be possible otherwise - yet they add
* complexity in jOOQ's internals.
*/
@Deprecated
@Support({ FIREBIRD, H2, MARIADB, MYSQL, POSTGRES })
CreateViewAsStep<Record> createOrReplaceView(String view, Function<? super Field<?>, ? extends String> fieldNameFunction);
/**
* Create a new DSL <code>CREATE OR REPLACE VIEW</code> statement.
* <p>
* This works like {@link #createOrReplaceView(String, String...)} except that the
* view's field names are derived from the view's {@link Select} statement
* using a function.
* This works like {@link #createOrReplaceView(String, String...)} except
* that the view's field names are derived from the view's {@link Select}
* statement using a function.
*
* @see DSL#createOrReplaceView(String, String...)
* @deprecated - 3.14.0 - [#10156] - These methods will be removed without
* replacement from a future jOOQ. They offer convenience that
* is unidiomatic for jOOQ's DSL, without offering functionality
* that would not be possible otherwise - yet they add
* complexity in jOOQ's internals.
*/
@Deprecated
@Support({ FIREBIRD, H2, MARIADB, MYSQL, POSTGRES })
CreateViewAsStep<Record> createOrReplaceView(String view, BiFunction<? super Field<?>, ? super Integer, ? extends String> fieldNameFunction);
@ -9099,7 +9175,13 @@ public interface DSLContext extends Scope , AutoCloseable {
* using a function.
*
* @see DSL#createOrReplaceView(String, String...)
* @deprecated - 3.14.0 - [#10156] - These methods will be removed without
* replacement from a future jOOQ. They offer convenience that
* is unidiomatic for jOOQ's DSL, without offering functionality
* that would not be possible otherwise - yet they add
* complexity in jOOQ's internals.
*/
@Deprecated
@Support({ FIREBIRD, H2, MARIADB, MYSQL, POSTGRES })
CreateViewAsStep<Record> createOrReplaceView(Name view, Function<? super Field<?>, ? extends Name> fieldNameFunction);
@ -9111,7 +9193,13 @@ public interface DSLContext extends Scope , AutoCloseable {
* using a function.
*
* @see DSL#createOrReplaceView(String, String...)
* @deprecated - 3.14.0 - [#10156] - These methods will be removed without
* replacement from a future jOOQ. They offer convenience that
* is unidiomatic for jOOQ's DSL, without offering functionality
* that would not be possible otherwise - yet they add
* complexity in jOOQ's internals.
*/
@Deprecated
@Support({ FIREBIRD, H2, MARIADB, MYSQL, POSTGRES })
CreateViewAsStep<Record> createOrReplaceView(Name view, BiFunction<? super Field<?>, ? super Integer, ? extends Name> fieldNameFunction);
@ -9123,7 +9211,13 @@ public interface DSLContext extends Scope , AutoCloseable {
* using a function.
*
* @see DSL#createOrReplaceView(String, String...)
* @deprecated - 3.14.0 - [#10156] - These methods will be removed without
* replacement from a future jOOQ. They offer convenience that
* is unidiomatic for jOOQ's DSL, without offering functionality
* that would not be possible otherwise - yet they add
* complexity in jOOQ's internals.
*/
@Deprecated
@Support({ FIREBIRD, H2, MARIADB, MYSQL, POSTGRES })
CreateViewAsStep<Record> createOrReplaceView(Table<?> view, Function<? super Field<?>, ? extends Field<?>> fieldNameFunction);
@ -9135,7 +9229,13 @@ public interface DSLContext extends Scope , AutoCloseable {
* using a function.
*
* @see DSL#createOrReplaceView(String, String...)
* @deprecated - 3.14.0 - [#10156] - These methods will be removed without
* replacement from a future jOOQ. They offer convenience that
* is unidiomatic for jOOQ's DSL, without offering functionality
* that would not be possible otherwise - yet they add
* complexity in jOOQ's internals.
*/
@Deprecated
@Support({ FIREBIRD, H2, MARIADB, MYSQL, POSTGRES })
CreateViewAsStep<Record> createOrReplaceView(Table<?> view, BiFunction<? super Field<?>, ? super Integer, ? extends Field<?>> fieldNameFunction);
@ -9173,7 +9273,13 @@ public interface DSLContext extends Scope , AutoCloseable {
* using a function.
*
* @see DSL#createViewIfNotExists(String, String...)
* @deprecated - 3.14.0 - [#10156] - These methods will be removed without
* replacement from a future jOOQ. They offer convenience that
* is unidiomatic for jOOQ's DSL, without offering functionality
* that would not be possible otherwise - yet they add
* complexity in jOOQ's internals.
*/
@Deprecated
@Support({ FIREBIRD, H2, HSQLDB, MARIADB, MYSQL, POSTGRES, SQLITE })
CreateViewAsStep<Record> createViewIfNotExists(String view, Function<? super Field<?>, ? extends String> fieldNameFunction);
@ -9185,7 +9291,13 @@ public interface DSLContext extends Scope , AutoCloseable {
* using a function.
*
* @see DSL#createViewIfNotExists(String, String...)
* @deprecated - 3.14.0 - [#10156] - These methods will be removed without
* replacement from a future jOOQ. They offer convenience that
* is unidiomatic for jOOQ's DSL, without offering functionality
* that would not be possible otherwise - yet they add
* complexity in jOOQ's internals.
*/
@Deprecated
@Support({ FIREBIRD, H2, HSQLDB, MARIADB, MYSQL, POSTGRES, SQLITE })
CreateViewAsStep<Record> createViewIfNotExists(String view, BiFunction<? super Field<?>, ? super Integer, ? extends String> fieldNameFunction);
@ -9197,7 +9309,13 @@ public interface DSLContext extends Scope , AutoCloseable {
* using a function.
*
* @see DSL#createViewIfNotExists(String, String...)
* @deprecated - 3.14.0 - [#10156] - These methods will be removed without
* replacement from a future jOOQ. They offer convenience that
* is unidiomatic for jOOQ's DSL, without offering functionality
* that would not be possible otherwise - yet they add
* complexity in jOOQ's internals.
*/
@Deprecated
@Support({ FIREBIRD, H2, HSQLDB, MARIADB, MYSQL, POSTGRES, SQLITE })
CreateViewAsStep<Record> createViewIfNotExists(Name view, Function<? super Field<?>, ? extends Name> fieldNameFunction);
@ -9209,7 +9327,13 @@ public interface DSLContext extends Scope , AutoCloseable {
* using a function.
*
* @see DSL#createViewIfNotExists(String, String...)
* @deprecated - 3.14.0 - [#10156] - These methods will be removed without
* replacement from a future jOOQ. They offer convenience that
* is unidiomatic for jOOQ's DSL, without offering functionality
* that would not be possible otherwise - yet they add
* complexity in jOOQ's internals.
*/
@Deprecated
@Support({ FIREBIRD, H2, HSQLDB, MARIADB, MYSQL, POSTGRES, SQLITE })
CreateViewAsStep<Record> createViewIfNotExists(Name view, BiFunction<? super Field<?>, ? super Integer, ? extends Name> fieldNameFunction);
@ -9221,7 +9345,13 @@ public interface DSLContext extends Scope , AutoCloseable {
* using a function.
*
* @see DSL#createViewIfNotExists(String, String...)
* @deprecated - 3.14.0 - [#10156] - These methods will be removed without
* replacement from a future jOOQ. They offer convenience that
* is unidiomatic for jOOQ's DSL, without offering functionality
* that would not be possible otherwise - yet they add
* complexity in jOOQ's internals.
*/
@Deprecated
@Support({ FIREBIRD, H2, HSQLDB, MARIADB, MYSQL, POSTGRES, SQLITE })
CreateViewAsStep<Record> createViewIfNotExists(Table<?> view, Function<? super Field<?>, ? extends Field<?>> fieldNameFunction);
@ -9233,7 +9363,13 @@ public interface DSLContext extends Scope , AutoCloseable {
* using a function.
*
* @see DSL#createViewIfNotExists(String, String...)
* @deprecated - 3.14.0 - [#10156] - These methods will be removed without
* replacement from a future jOOQ. They offer convenience that
* is unidiomatic for jOOQ's DSL, without offering functionality
* that would not be possible otherwise - yet they add
* complexity in jOOQ's internals.
*/
@Deprecated
@Support({ FIREBIRD, H2, HSQLDB, MARIADB, MYSQL, POSTGRES, SQLITE })
CreateViewAsStep<Record> createViewIfNotExists(Table<?> view, BiFunction<? super Field<?>, ? super Integer, ? extends Field<?>> fieldNameFunction);

View File

@ -229,7 +229,14 @@ extends
* <code><pre>
* MY_TABLE.MY_COLUMN.as(f -&gt; "prefix_" + f.getName());
* </pre></code>
*
* @deprecated - 3.14.0 - [#10156] - These methods will be removed without
* replacement from a future jOOQ. They offer convenience that
* is unidiomatic for jOOQ's DSL, without offering functionality
* that would not be possible otherwise - yet they add
* complexity in jOOQ's internals.
*/
@Deprecated
@Support
Field<T> as(Function<? super Field<T>, ? extends String> aliasFunction);

View File

@ -98,7 +98,14 @@ public interface FieldLike {
* <code><pre>
* MY_TABLE.MY_COLUMN.as(f -&gt; "prefix_" + f.getName());
* </pre></code>
*
* @deprecated - 3.14.0 - [#10156] - These methods will be removed without
* replacement from a future jOOQ. They offer convenience that
* is unidiomatic for jOOQ's DSL, without offering functionality
* that would not be possible otherwise - yet they add
* complexity in jOOQ's internals.
*/
@Deprecated
@Support
<T> Field<T> asField(Function<? super Field<T>, ? extends String> aliasFunction);

View File

@ -266,7 +266,14 @@ public interface Name extends QueryPart, Comparable<Name> {
* This works in a similar way as {@link #fields(String...)}, except
* that all column names are produced by a function that receives the CTE's
* {@link Select} columns and their column indexes as input.
*
* @deprecated - 3.14.0 - [#10156] - These methods will be removed without
* replacement from a future jOOQ. They offer convenience that
* is unidiomatic for jOOQ's DSL, without offering functionality
* that would not be possible otherwise - yet they add
* complexity in jOOQ's internals.
*/
@Deprecated
@Support({ FIREBIRD, H2, HSQLDB, MYSQL, POSTGRES, SQLITE })
DerivedColumnList fields(Function<? super Field<?>, ? extends String> fieldNameFunction);
@ -281,7 +288,14 @@ public interface Name extends QueryPart, Comparable<Name> {
* This works in a similar way as {@link #fields(String...)}, except
* that all column names are produced by a function that receives the CTE's
* {@link Select} columns as input.
*
* @deprecated - 3.14.0 - [#10156] - These methods will be removed without
* replacement from a future jOOQ. They offer convenience that
* is unidiomatic for jOOQ's DSL, without offering functionality
* that would not be possible otherwise - yet they add
* complexity in jOOQ's internals.
*/
@Deprecated
@Support({ FIREBIRD, H2, HSQLDB, MYSQL, POSTGRES, SQLITE })
DerivedColumnList fields(BiFunction<? super Field<?>, ? super Integer, ? extends String> fieldNameFunction);

View File

@ -460,7 +460,13 @@ public interface Table<R extends Record> extends TableLike<R>, Named {
* @param alias The alias name
* @param aliasFunction The function providing field aliases.
* @return The table alias
* @deprecated - 3.14.0 - [#10156] - These methods will be removed without
* replacement from a future jOOQ. They offer convenience that
* is unidiomatic for jOOQ's DSL, without offering functionality
* that would not be possible otherwise - yet they add
* complexity in jOOQ's internals.
*/
@Deprecated
@Support
Table<R> as(String alias, Function<? super Field<?>, ? extends String> aliasFunction);
@ -478,7 +484,13 @@ public interface Table<R extends Record> extends TableLike<R>, Named {
* @param alias The alias name
* @param aliasFunction The function providing field aliases.
* @return The table alias
* @deprecated - 3.14.0 - [#10156] - These methods will be removed without
* replacement from a future jOOQ. They offer convenience that
* is unidiomatic for jOOQ's DSL, without offering functionality
* that would not be possible otherwise - yet they add
* complexity in jOOQ's internals.
*/
@Deprecated
@Support
Table<R> as(String alias, BiFunction<? super Field<?>, ? super Integer, ? extends String> aliasFunction);
@ -573,7 +585,13 @@ public interface Table<R extends Record> extends TableLike<R>, Named {
* @param alias The alias name
* @param aliasFunction The function providing field aliases.
* @return The table alias
* @deprecated - 3.14.0 - [#10156] - These methods will be removed without
* replacement from a future jOOQ. They offer convenience that
* is unidiomatic for jOOQ's DSL, without offering functionality
* that would not be possible otherwise - yet they add
* complexity in jOOQ's internals.
*/
@Deprecated
@Support
Table<R> as(Name alias, Function<? super Field<?>, ? extends Name> aliasFunction);
@ -591,7 +609,13 @@ public interface Table<R extends Record> extends TableLike<R>, Named {
* @param alias The alias name
* @param aliasFunction The function providing field aliases.
* @return The table alias
* @deprecated - 3.14.0 - [#10156] - These methods will be removed without
* replacement from a future jOOQ. They offer convenience that
* is unidiomatic for jOOQ's DSL, without offering functionality
* that would not be possible otherwise - yet they add
* complexity in jOOQ's internals.
*/
@Deprecated
@Support
Table<R> as(Name alias, BiFunction<? super Field<?>, ? super Integer, ? extends Name> aliasFunction);
@ -631,7 +655,13 @@ public interface Table<R extends Record> extends TableLike<R>, Named {
* @param otherTable The other table whose name is used as alias name
* @param aliasFunction The function providing field aliases.
* @return The table alias
* @deprecated - 3.14.0 - [#10156] - These methods will be removed without
* replacement from a future jOOQ. They offer convenience that
* is unidiomatic for jOOQ's DSL, without offering functionality
* that would not be possible otherwise - yet they add
* complexity in jOOQ's internals.
*/
@Deprecated
@Support
Table<R> as(Table<?> otherTable, Function<? super Field<?>, ? extends Field<?>> aliasFunction);
@ -649,7 +679,13 @@ public interface Table<R extends Record> extends TableLike<R>, Named {
* @param otherTable The other table whose name is used as alias name
* @param aliasFunction The function providing field aliases.
* @return The table alias
* @deprecated - 3.14.0 - [#10156] - These methods will be removed without
* replacement from a future jOOQ. They offer convenience that
* is unidiomatic for jOOQ's DSL, without offering functionality
* that would not be possible otherwise - yet they add
* complexity in jOOQ's internals.
*/
@Deprecated
@Support
Table<R> as(Table<?> otherTable, BiFunction<? super Field<?>, ? super Integer, ? extends Field<?>> aliasFunction);

View File

@ -260,7 +260,13 @@ public interface TableLike<R extends Record> extends QueryPart {
* The underlying aliased table representation of this object.
*
* @see Table#as(String, Function)
* @deprecated - 3.14.0 - [#10156] - These methods will be removed without
* replacement from a future jOOQ. They offer convenience that
* is unidiomatic for jOOQ's DSL, without offering functionality
* that would not be possible otherwise - yet they add
* complexity in jOOQ's internals.
*/
@Deprecated
@Support
Table<R> asTable(String alias, Function<? super Field<?>, ? extends String> aliasFunction);
@ -268,7 +274,13 @@ public interface TableLike<R extends Record> extends QueryPart {
* The underlying aliased table representation of this object.
*
* @see Table#as(String, BiFunction)
* @deprecated - 3.14.0 - [#10156] - These methods will be removed without
* replacement from a future jOOQ. They offer convenience that
* is unidiomatic for jOOQ's DSL, without offering functionality
* that would not be possible otherwise - yet they add
* complexity in jOOQ's internals.
*/
@Deprecated
@Support
Table<R> asTable(String alias, BiFunction<? super Field<?>, ? super Integer, ? extends String> aliasFunction);

View File

@ -147,7 +147,14 @@ public interface WithStep extends QueryPart {
* This works in a similar way as {@link #with(String, String...)}, except
* that all column names are produced by a function that receives the CTE's
* {@link Select} columns as input.
*
* @deprecated - 3.14.0 - [#10156] - These methods will be removed without
* replacement from a future jOOQ. They offer convenience that
* is unidiomatic for jOOQ's DSL, without offering functionality
* that would not be possible otherwise - yet they add
* complexity in jOOQ's internals.
*/
@Deprecated
@Support({ FIREBIRD, H2, HSQLDB, MARIADB, MYSQL, POSTGRES, SQLITE })
WithAsStep with(String alias, Function<? super Field<?>, ? extends String> fieldNameFunction);
@ -157,7 +164,14 @@ public interface WithStep extends QueryPart {
* This works in a similar way as {@link #with(String, String...)}, except
* that all column names are produced by a function that receives the CTE's
* {@link Select} columns and their column indexes as input.
*
* @deprecated - 3.14.0 - [#10156] - These methods will be removed without
* replacement from a future jOOQ. They offer convenience that
* is unidiomatic for jOOQ's DSL, without offering functionality
* that would not be possible otherwise - yet they add
* complexity in jOOQ's internals.
*/
@Deprecated
@Support({ FIREBIRD, H2, HSQLDB, MARIADB, MYSQL, POSTGRES, SQLITE })
WithAsStep with(String alias, BiFunction<? super Field<?>, ? super Integer, ? extends String> fieldNameFunction);

View File

@ -869,7 +869,14 @@ public class DSL {
* This works in a similar way as {@link #with(String, String...)}, except
* that all column names are produced by a function that receives the CTE's
* {@link Select} columns as input.
*
* @deprecated - 3.14.0 - [#10156] - These methods will be removed without
* replacement from a future jOOQ. They offer convenience that
* is unidiomatic for jOOQ's DSL, without offering functionality
* that would not be possible otherwise - yet they add
* complexity in jOOQ's internals.
*/
@Deprecated
@Support({ FIREBIRD, H2, HSQLDB, MARIADB, MYSQL, POSTGRES, SQLITE })
public static WithAsStep with(String alias, Function<? super Field<?>, ? extends String> fieldNameFunction) {
return new WithImpl(null, false).with(alias, fieldNameFunction);
@ -1864,7 +1871,14 @@ public class DSL {
* This works in a similar way as {@link #with(String, String...)}, except
* that all column names are produced by a function that receives the CTE's
* {@link Select} columns as input.
*
* @deprecated - 3.14.0 - [#10156] - These methods will be removed without
* replacement from a future jOOQ. They offer convenience that
* is unidiomatic for jOOQ's DSL, without offering functionality
* that would not be possible otherwise - yet they add
* complexity in jOOQ's internals.
*/
@Deprecated
@Support({ FIREBIRD, H2, HSQLDB, MARIADB, MYSQL, POSTGRES, SQLITE })
public static WithAsStep withRecursive(String alias, Function<? super Field<?>, ? extends String> fieldNameFunction) {
return new WithImpl(null, true).with(alias, fieldNameFunction);
@ -7046,7 +7060,13 @@ public class DSL {
* using a function.
*
* @see DSLContext#createView(String, String...)
* @deprecated - 3.14.0 - [#10156] - These methods will be removed without
* replacement from a future jOOQ. They offer convenience that
* is unidiomatic for jOOQ's DSL, without offering functionality
* that would not be possible otherwise - yet they add
* complexity in jOOQ's internals.
*/
@Deprecated
@Support
public static CreateViewAsStep createView(String view, Function<? super Field<?>, ? extends String> fieldNameFunction) {
return dsl().createView(view, fieldNameFunction);
@ -7060,7 +7080,13 @@ public class DSL {
* using a function.
*
* @see DSLContext#createView(Name, Name...)
* @deprecated - 3.14.0 - [#10156] - These methods will be removed without
* replacement from a future jOOQ. They offer convenience that
* is unidiomatic for jOOQ's DSL, without offering functionality
* that would not be possible otherwise - yet they add
* complexity in jOOQ's internals.
*/
@Deprecated
@Support
public static CreateViewAsStep createView(Name view, Function<? super Field<?>, ? extends Name> fieldNameFunction) {
return dsl().createView(view, fieldNameFunction);
@ -7074,7 +7100,13 @@ public class DSL {
* using a function.
*
* @see DSLContext#createView(Table, Field...)
* @deprecated - 3.14.0 - [#10156] - These methods will be removed without
* replacement from a future jOOQ. They offer convenience that
* is unidiomatic for jOOQ's DSL, without offering functionality
* that would not be possible otherwise - yet they add
* complexity in jOOQ's internals.
*/
@Deprecated
@Support
public static CreateViewAsStep createView(Table<?> view, Function<? super Field<?>, ? extends Field<?>> fieldNameFunction) {
return dsl().createView(view, fieldNameFunction);
@ -7120,7 +7152,13 @@ public class DSL {
* using a function.
*
* @see DSLContext#createOrReplaceView(String, String...)
* @deprecated - 3.14.0 - [#10156] - These methods will be removed without
* replacement from a future jOOQ. They offer convenience that
* is unidiomatic for jOOQ's DSL, without offering functionality
* that would not be possible otherwise - yet they add
* complexity in jOOQ's internals.
*/
@Deprecated
@Support({ FIREBIRD, H2, MARIADB, MYSQL, POSTGRES })
public static CreateViewAsStep createOrReplaceView(String view, Function<? super Field<?>, ? extends String> fieldNameFunction) {
return dsl().createOrReplaceView(view, fieldNameFunction);
@ -7134,7 +7172,13 @@ public class DSL {
* using a function.
*
* @see DSLContext#createOrReplaceView(Name, Name...)
* @deprecated - 3.14.0 - [#10156] - These methods will be removed without
* replacement from a future jOOQ. They offer convenience that
* is unidiomatic for jOOQ's DSL, without offering functionality
* that would not be possible otherwise - yet they add
* complexity in jOOQ's internals.
*/
@Deprecated
@Support({ FIREBIRD, H2, MARIADB, MYSQL, POSTGRES })
public static CreateViewAsStep createOrReplaceView(Name view, Function<? super Field<?>, ? extends Name> fieldNameFunction) {
return dsl().createOrReplaceView(view, fieldNameFunction);
@ -7148,7 +7192,13 @@ public class DSL {
* using a function.
*
* @see DSLContext#createOrReplaceView(Table, Field...)
* @deprecated - 3.14.0 - [#10156] - These methods will be removed without
* replacement from a future jOOQ. They offer convenience that
* is unidiomatic for jOOQ's DSL, without offering functionality
* that would not be possible otherwise - yet they add
* complexity in jOOQ's internals.
*/
@Deprecated
@Support({ FIREBIRD, H2, MARIADB, MYSQL, POSTGRES })
public static CreateViewAsStep createOrReplaceView(Table<?> view, Function<? super Field<?>, ? extends Field<?>> fieldNameFunction) {
return dsl().createOrReplaceView(view, fieldNameFunction);
@ -7194,7 +7244,13 @@ public class DSL {
* using a function.
*
* @see DSLContext#createViewIfNotExists(String, String...)
* @deprecated - 3.14.0 - [#10156] - These methods will be removed without
* replacement from a future jOOQ. They offer convenience that
* is unidiomatic for jOOQ's DSL, without offering functionality
* that would not be possible otherwise - yet they add
* complexity in jOOQ's internals.
*/
@Deprecated
@Support({ FIREBIRD, H2, HSQLDB, MARIADB, MYSQL, POSTGRES, SQLITE })
public static CreateViewAsStep createViewIfNotExists(String view, Function<? super Field<?>, ? extends String> fieldNameFunction) {
return dsl().createViewIfNotExists(view, fieldNameFunction);
@ -7208,7 +7264,13 @@ public class DSL {
* using a function.
*
* @see DSLContext#createViewIfNotExists(Name, Name...)
* @deprecated - 3.14.0 - [#10156] - These methods will be removed without
* replacement from a future jOOQ. They offer convenience that
* is unidiomatic for jOOQ's DSL, without offering functionality
* that would not be possible otherwise - yet they add
* complexity in jOOQ's internals.
*/
@Deprecated
@Support({ FIREBIRD, H2, HSQLDB, MARIADB, MYSQL, POSTGRES, SQLITE })
public static CreateViewAsStep createViewIfNotExists(Name view, Function<? super Field<?>, ? extends Name> fieldNameFunction) {
return dsl().createViewIfNotExists(view, fieldNameFunction);
@ -7222,7 +7284,13 @@ public class DSL {
* using a function.
*
* @see DSLContext#createViewIfNotExists(Table, Field...)
* @deprecated - 3.14.0 - [#10156] - These methods will be removed without
* replacement from a future jOOQ. They offer convenience that
* is unidiomatic for jOOQ's DSL, without offering functionality
* that would not be possible otherwise - yet they add
* complexity in jOOQ's internals.
*/
@Deprecated
@Support({ FIREBIRD, H2, HSQLDB, MARIADB, MYSQL, POSTGRES, SQLITE })
public static CreateViewAsStep createViewIfNotExists(Table<?> view, Function<? super Field<?>, ? extends Field<?>> fieldNameFunction) {
return dsl().createViewIfNotExists(view, fieldNameFunction);