[#6084] Let { Update | Delete }ReturningStep extend { Update | Delete }FinalStep
This commit is contained in:
parent
6a568cf252
commit
60da2df8d0
@ -50,7 +50,7 @@ import org.jooq.impl.DSL;
|
||||
*
|
||||
* @author Lukas Eder
|
||||
*/
|
||||
public interface DeleteConditionStep<R extends Record> extends DeleteFinalStep<R>, DeleteReturningStep<R> {
|
||||
public interface DeleteConditionStep<R extends Record> extends DeleteReturningStep<R> {
|
||||
|
||||
/**
|
||||
* Combine the currently assembled conditions with another one using the
|
||||
|
||||
@ -62,7 +62,7 @@ import java.util.Collection;
|
||||
*
|
||||
* @author Lukas Eder
|
||||
*/
|
||||
public interface DeleteReturningStep<R extends Record> {
|
||||
public interface DeleteReturningStep<R extends Record> extends DeleteFinalStep<R> {
|
||||
|
||||
/**
|
||||
* Configure the <code>DELETE</code> statement to return all fields in
|
||||
|
||||
@ -51,7 +51,7 @@ import org.jooq.impl.DSL;
|
||||
*
|
||||
* @author Lukas Eder
|
||||
*/
|
||||
public interface DeleteWhereStep<R extends Record> extends DeleteFinalStep<R>, DeleteReturningStep<R> {
|
||||
public interface DeleteWhereStep<R extends Record> extends DeleteReturningStep<R> {
|
||||
|
||||
/**
|
||||
* Add conditions to the query, connecting them with each other with
|
||||
|
||||
@ -52,7 +52,7 @@ import org.jooq.impl.DSL;
|
||||
*
|
||||
* @author Lukas Eder
|
||||
*/
|
||||
public interface UpdateConditionStep<R extends Record> extends UpdateFinalStep<R>, UpdateReturningStep<R> {
|
||||
public interface UpdateConditionStep<R extends Record> extends UpdateReturningStep<R> {
|
||||
|
||||
/**
|
||||
* Combine the currently assembled conditions with another one using the
|
||||
|
||||
@ -65,7 +65,7 @@ import java.util.Collection;
|
||||
*
|
||||
* @author Lukas Eder
|
||||
*/
|
||||
public interface UpdateReturningStep<R extends Record> {
|
||||
public interface UpdateReturningStep<R extends Record> extends UpdateFinalStep<R> {
|
||||
|
||||
/**
|
||||
* Configure the <code>UPDATE</code> statement to return all fields in
|
||||
|
||||
@ -53,7 +53,7 @@ import org.jooq.impl.DSL;
|
||||
*
|
||||
* @author Lukas Eder
|
||||
*/
|
||||
public interface UpdateWhereStep<R extends Record> extends UpdateFinalStep<R>, UpdateReturningStep<R> {
|
||||
public interface UpdateWhereStep<R extends Record> extends UpdateReturningStep<R> {
|
||||
|
||||
/**
|
||||
* Add conditions to the query, connecting them with each other with
|
||||
|
||||
@ -842,7 +842,7 @@ class ParserImpl implements Parser {
|
||||
else
|
||||
return s2.returning(parseFields(ctx));
|
||||
else
|
||||
return (Delete<?>) s2;
|
||||
return s2;
|
||||
}
|
||||
|
||||
private static final Insert<?> parseInsert(ParserContext ctx) {
|
||||
@ -937,7 +937,7 @@ class ParserImpl implements Parser {
|
||||
else
|
||||
return returning.returning(parseFields(ctx));
|
||||
else
|
||||
return (Update<?>) returning;
|
||||
return returning;
|
||||
}
|
||||
|
||||
private static final Map<Field<?>, Object> parseSetClauseList(ParserContext ctx) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user