diff --git a/jOOQ/src/main/java/org/jooq/DMLQuery.java b/jOOQ/src/main/java/org/jooq/DMLQuery.java new file mode 100644 index 0000000000..c2e723686c --- /dev/null +++ b/jOOQ/src/main/java/org/jooq/DMLQuery.java @@ -0,0 +1,49 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * Other licenses: + * ----------------------------------------------------------------------------- + * Commercial licenses for this work are available. These replace the above + * ASL 2.0 and offer limited warranties, support, maintenance, and commercial + * database integrations. + * + * For more information, please visit: http://www.jooq.org/licenses + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + */ +package org.jooq; + + +/** + * A marker interface for all DML queries (namely {@link Insert}, + * {@link Update}, {@link Delete}, and {@link Merge}). + * + * @author Lukas Eder + */ +public interface DMLQuery extends RowCountQuery { + +} diff --git a/jOOQ/src/main/java/org/jooq/Delete.java b/jOOQ/src/main/java/org/jooq/Delete.java index 3271e51a38..c696a2189d 100644 --- a/jOOQ/src/main/java/org/jooq/Delete.java +++ b/jOOQ/src/main/java/org/jooq/Delete.java @@ -59,6 +59,6 @@ import org.jooq.impl.DSL; * * @author Lukas Eder */ -public interface Delete extends RowCountQuery { +public interface Delete extends DMLQuery { } diff --git a/jOOQ/src/main/java/org/jooq/Insert.java b/jOOQ/src/main/java/org/jooq/Insert.java index 9c0c4358c3..a602215ec8 100644 --- a/jOOQ/src/main/java/org/jooq/Insert.java +++ b/jOOQ/src/main/java/org/jooq/Insert.java @@ -59,6 +59,6 @@ import org.jooq.impl.DSL; * * @author Lukas Eder */ -public interface Insert extends RowCountQuery { +public interface Insert extends DMLQuery { } diff --git a/jOOQ/src/main/java/org/jooq/Merge.java b/jOOQ/src/main/java/org/jooq/Merge.java index be7f23ebde..c2f24b81d6 100644 --- a/jOOQ/src/main/java/org/jooq/Merge.java +++ b/jOOQ/src/main/java/org/jooq/Merge.java @@ -63,6 +63,6 @@ import org.jooq.impl.DSL; * * @author Lukas Eder */ -public interface Merge extends RowCountQuery { +public interface Merge extends DMLQuery { } diff --git a/jOOQ/src/main/java/org/jooq/Update.java b/jOOQ/src/main/java/org/jooq/Update.java index 48776a94b2..68de6b008b 100644 --- a/jOOQ/src/main/java/org/jooq/Update.java +++ b/jOOQ/src/main/java/org/jooq/Update.java @@ -59,6 +59,6 @@ import org.jooq.impl.DSL; * * @author Lukas Eder */ -public interface Update extends RowCountQuery { +public interface Update extends DMLQuery { }