[jOOQ/jOOQ#13068] Change selectFrom(Table<R>) methods to selectFrom(TableLike<R>)
This commit is contained in:
parent
eb73c795d7
commit
eedd7271cd
@ -6058,13 +6058,13 @@ public interface DSLContext extends Scope {
|
||||
*/
|
||||
@NotNull @CheckReturnValue
|
||||
@Support
|
||||
<R extends Record> SelectWhereStep<R> selectFrom(Table<R> table);
|
||||
<R extends Record> SelectWhereStep<R> selectFrom(TableLike<R> table);
|
||||
|
||||
/**
|
||||
* Create a new DSL select statement, projecting <code>*</code>.
|
||||
* <p>
|
||||
* Without knowing any columns from the argument table (see
|
||||
* {@link #selectFrom(Table)}), this will project <code>SELECT *</code>.
|
||||
* {@link #selectFrom(TableLike)}), this will project <code>SELECT *</code>.
|
||||
* <p>
|
||||
* Example:
|
||||
* <p>
|
||||
@ -6082,7 +6082,7 @@ public interface DSLContext extends Scope {
|
||||
* Create a new DSL select statement, projecting <code>*</code>.
|
||||
* <p>
|
||||
* Without knowing any columns from the argument table (see
|
||||
* {@link #selectFrom(Table)}), this will project <code>SELECT *</code>.
|
||||
* {@link #selectFrom(TableLike)}), this will project <code>SELECT *</code>.
|
||||
* <p>
|
||||
* Example:
|
||||
* <p>
|
||||
@ -6107,7 +6107,7 @@ public interface DSLContext extends Scope {
|
||||
* Create a new DSL select statement, projecting <code>*</code>.
|
||||
* <p>
|
||||
* Without knowing any columns from the argument table (see
|
||||
* {@link #selectFrom(Table)}), this will project <code>SELECT *</code>.
|
||||
* {@link #selectFrom(TableLike)}), this will project <code>SELECT *</code>.
|
||||
* <p>
|
||||
* Example:
|
||||
* <p>
|
||||
@ -6133,7 +6133,7 @@ public interface DSLContext extends Scope {
|
||||
* Create a new DSL select statement, projecting <code>*</code>.
|
||||
* <p>
|
||||
* Without knowing any columns from the argument table (see
|
||||
* {@link #selectFrom(Table)}), this will project <code>SELECT *</code>.
|
||||
* {@link #selectFrom(TableLike)}), this will project <code>SELECT *</code>.
|
||||
* <p>
|
||||
* Example:
|
||||
* <p>
|
||||
@ -6159,7 +6159,7 @@ public interface DSLContext extends Scope {
|
||||
* Create a new DSL select statement, projecting <code>*</code>.
|
||||
* <p>
|
||||
* Without knowing any columns from the argument table (see
|
||||
* {@link #selectFrom(Table)}), this will project <code>SELECT *</code>.
|
||||
* {@link #selectFrom(TableLike)}), this will project <code>SELECT *</code>.
|
||||
* <p>
|
||||
* Example:
|
||||
* <p>
|
||||
|
||||
@ -530,13 +530,13 @@ public interface WithStep extends QueryPart {
|
||||
*/
|
||||
@NotNull @CheckReturnValue
|
||||
@Support({ FIREBIRD, H2, HSQLDB, IGNITE, MARIADB, MYSQL, POSTGRES, SQLITE, YUGABYTEDB })
|
||||
<R extends Record> SelectWhereStep<R> selectFrom(Table<R> table);
|
||||
<R extends Record> SelectWhereStep<R> selectFrom(TableLike<R> table);
|
||||
|
||||
/**
|
||||
* Create a new DSL select statement, projecting <code>*</code>.
|
||||
* <p>
|
||||
* Without knowing any columns from the argument table (see
|
||||
* {@link #selectFrom(Table)}), this will project <code>SELECT *</code>.
|
||||
* {@link #selectFrom(TableLike)}), this will project <code>SELECT *</code>.
|
||||
* <p>
|
||||
* Example:
|
||||
* <p>
|
||||
@ -554,7 +554,7 @@ public interface WithStep extends QueryPart {
|
||||
* Create a new DSL select statement, projecting <code>*</code>.
|
||||
* <p>
|
||||
* Without knowing any columns from the argument table (see
|
||||
* {@link #selectFrom(Table)}), this will project <code>SELECT *</code>.
|
||||
* {@link #selectFrom(TableLike)}), this will project <code>SELECT *</code>.
|
||||
* <p>
|
||||
* Example:
|
||||
* <p>
|
||||
@ -579,7 +579,7 @@ public interface WithStep extends QueryPart {
|
||||
* Create a new DSL select statement, projecting <code>*</code>.
|
||||
* <p>
|
||||
* Without knowing any columns from the argument table (see
|
||||
* {@link #selectFrom(Table)}), this will project <code>SELECT *</code>.
|
||||
* {@link #selectFrom(TableLike)}), this will project <code>SELECT *</code>.
|
||||
* <p>
|
||||
* Example:
|
||||
* <p>
|
||||
@ -605,7 +605,7 @@ public interface WithStep extends QueryPart {
|
||||
* Create a new DSL select statement, projecting <code>*</code>.
|
||||
* <p>
|
||||
* Without knowing any columns from the argument table (see
|
||||
* {@link #selectFrom(Table)}), this will project <code>SELECT *</code>.
|
||||
* {@link #selectFrom(TableLike)}), this will project <code>SELECT *</code>.
|
||||
* <p>
|
||||
* Example:
|
||||
* <p>
|
||||
@ -631,7 +631,7 @@ public interface WithStep extends QueryPart {
|
||||
* Create a new DSL select statement, projecting <code>*</code>.
|
||||
* <p>
|
||||
* Without knowing any columns from the argument table (see
|
||||
* {@link #selectFrom(Table)}), this will project <code>SELECT *</code>.
|
||||
* {@link #selectFrom(TableLike)}), this will project <code>SELECT *</code>.
|
||||
* <p>
|
||||
* Example:
|
||||
* <p>
|
||||
|
||||
@ -3002,7 +3002,7 @@ public class DSL {
|
||||
*/
|
||||
@NotNull
|
||||
@Support
|
||||
public static <R extends Record> SelectWhereStep<R> selectFrom(Table<R> table) {
|
||||
public static <R extends Record> SelectWhereStep<R> selectFrom(TableLike<R> table) {
|
||||
return dsl().selectFrom(table);
|
||||
}
|
||||
|
||||
@ -3010,7 +3010,7 @@ public class DSL {
|
||||
* Create a new DSL select statement, projecting <code>*</code>.
|
||||
* <p>
|
||||
* Without knowing any columns from the argument table (see
|
||||
* {@link #selectFrom(Table)}), this will project <code>SELECT *</code>.
|
||||
* {@link #selectFrom(TableLike)}), this will project <code>SELECT *</code>.
|
||||
* <p>
|
||||
* Unlike {@link Select} factory methods in the {@link DSLContext} API, this
|
||||
* creates an unattached, and thus not directly renderable or executable
|
||||
@ -3038,7 +3038,7 @@ public class DSL {
|
||||
* Create a new DSL select statement, projecting <code>*</code>.
|
||||
* <p>
|
||||
* Without knowing any columns from the argument table (see
|
||||
* {@link #selectFrom(Table)}), this will project <code>SELECT *</code>.
|
||||
* {@link #selectFrom(TableLike)}), this will project <code>SELECT *</code>.
|
||||
* <p>
|
||||
* Unlike {@link Select} factory methods in the {@link DSLContext} API, this
|
||||
* creates an unattached, and thus not directly renderable or executable
|
||||
@ -3073,7 +3073,7 @@ public class DSL {
|
||||
* Create a new DSL select statement, projecting <code>*</code>.
|
||||
* <p>
|
||||
* Without knowing any columns from the argument table (see
|
||||
* {@link #selectFrom(Table)}), this will project <code>SELECT *</code>.
|
||||
* {@link #selectFrom(TableLike)}), this will project <code>SELECT *</code>.
|
||||
* <p>
|
||||
* Unlike {@link Select} factory methods in the {@link DSLContext} API, this
|
||||
* creates an unattached, and thus not directly renderable or executable
|
||||
@ -3109,7 +3109,7 @@ public class DSL {
|
||||
* Create a new DSL select statement, projecting <code>*</code>.
|
||||
* <p>
|
||||
* Without knowing any columns from the argument table (see
|
||||
* {@link #selectFrom(Table)}), this will project <code>SELECT *</code>.
|
||||
* {@link #selectFrom(TableLike)}), this will project <code>SELECT *</code>.
|
||||
* <p>
|
||||
* Unlike {@link Select} factory methods in the {@link DSLContext} API, this
|
||||
* creates an unattached, and thus not directly renderable or executable
|
||||
@ -3145,7 +3145,7 @@ public class DSL {
|
||||
* Create a new DSL select statement, projecting <code>*</code>.
|
||||
* <p>
|
||||
* Without knowing any columns from the argument table (see
|
||||
* {@link #selectFrom(Table)}), this will project <code>SELECT *</code>.
|
||||
* {@link #selectFrom(TableLike)}), this will project <code>SELECT *</code>.
|
||||
* <p>
|
||||
* Unlike {@link Select} factory methods in the {@link DSLContext} API, this
|
||||
* creates an unattached, and thus not directly renderable or executable
|
||||
|
||||
@ -2029,7 +2029,7 @@ public class DefaultDSLContext extends AbstractScope implements DSLContext, Seri
|
||||
}
|
||||
|
||||
@Override
|
||||
public <R extends Record> SelectWhereStep<R> selectFrom(Table<R> table) {
|
||||
public <R extends Record> SelectWhereStep<R> selectFrom(TableLike<R> table) {
|
||||
return new SelectImpl(configuration(), null).from(table);
|
||||
}
|
||||
|
||||
|
||||
@ -105,6 +105,7 @@ import org.jooq.SelectFieldOrAsterisk;
|
||||
import org.jooq.SelectSelectStep;
|
||||
import org.jooq.SelectWhereStep;
|
||||
import org.jooq.Table;
|
||||
import org.jooq.TableLike;
|
||||
// ...
|
||||
import org.jooq.WithAsStep;
|
||||
import org.jooq.WithAsStep1;
|
||||
@ -586,7 +587,7 @@ implements
|
||||
}
|
||||
|
||||
@Override
|
||||
public final <R extends Record> SelectWhereStep<R> selectFrom(Table<R> table) {
|
||||
public final <R extends Record> SelectWhereStep<R> selectFrom(TableLike<R> table) {
|
||||
return new SelectImpl(configuration, this).from(table);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user