[jOOQ/jOOQ#19195] Add missing accessors and mutators for the INTO clause to Select

This commit is contained in:
Lukas Eder 2025-10-10 11:22:58 +02:00
parent 97ee239bb9
commit c2c94342d6
3 changed files with 95 additions and 0 deletions

View File

@ -329,6 +329,40 @@ extends
@CheckReturnValue
@NotNull Select<R> $distinctOn(Collection<? extends SelectFieldOrAsterisk> newDistinctOn);
/**
* Experimental query object model accessor method, see also {@link QOM}.
* Subject to change in future jOOQ versions, use at your own risk.
*/
@Experimental
@Nullable Table<?> $intoTable();
/**
* Experimental query object model accessor method, see also {@link QOM}.
* Subject to change in future jOOQ versions, use at your own risk.
*/
@Experimental
@CheckReturnValue
@NotNull Select<R> $intoTable(Table<?> newIntoTable);
/**
* Experimental query object model accessor method, see also {@link QOM}.
* Subject to change in future jOOQ versions, use at your own risk.

View File

@ -140,6 +140,7 @@ import org.jooq.impl.QOM.JoinHint;
import org.jooq.impl.QOM.UnmodifiableList;
import org.jooq.impl.QOM.With;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
/**
@ -3818,6 +3819,30 @@ implements
return getDelegate().$distinctOn(newDistinctOn);
}
@Override
public final Table<?> $intoTable() {
return getDelegate().$intoTable();
}
@Override
public final Select<R> $intoTable(Table<?> newIntoTable) {
return getDelegate().$intoTable(newIntoTable);
}
@Override
public final UnmodifiableList<? extends Table<?>> $from() {
return getDelegate().$from();

View File

@ -342,6 +342,9 @@ import org.jooq.impl.Tools.SimpleDataKey;
import org.jooq.tools.JooqLogger;
import org.jooq.tools.StringUtils;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
/**
* A sub-select is a <code>SELECT</code> statement that can be combined with
@ -5508,6 +5511,39 @@ final class SelectQueryImpl<R extends Record> extends AbstractResultQuery<R> imp
s.distinctOn.addAll(newDistinctOn);
});
}
@Override
public final Table<?> $intoTable() {
return intoTable;
}
@Override
public final Select<R> $intoTable(Table<?> newIntoTable) {
return copy(s -> {
s.intoTable = newIntoTable;
});
}
@Override
public final UnmodifiableList<Table<?>> $from() {