From 5df7fe3700fa5902be279b7cb7b25cb4072eca20 Mon Sep 17 00:00:00 2001 From: Lukas Eder Date: Mon, 18 Jan 2021 11:02:32 +0100 Subject: [PATCH] [jOOQ/jOOQ#11246] Add support for TRIGGER pseudo columns DELETING, INSERTING, UPDATING This includes: - [jOOQ/jOOQ#11247] VariableImpl should render qualified name --- jOOQ/src/main/java/org/jooq/impl/DSL.java | 32 ++++++ .../src/main/java/org/jooq/impl/Deleting.java | 101 ++++++++++++++++++ .../main/java/org/jooq/impl/Inserting.java | 101 ++++++++++++++++++ jOOQ/src/main/java/org/jooq/impl/Names.java | 3 + .../src/main/java/org/jooq/impl/Updating.java | 101 ++++++++++++++++++ 5 files changed, 338 insertions(+) create mode 100644 jOOQ/src/main/java/org/jooq/impl/Deleting.java create mode 100644 jOOQ/src/main/java/org/jooq/impl/Inserting.java create mode 100644 jOOQ/src/main/java/org/jooq/impl/Updating.java diff --git a/jOOQ/src/main/java/org/jooq/impl/DSL.java b/jOOQ/src/main/java/org/jooq/impl/DSL.java index 603e41ad31..c4f1274548 100644 --- a/jOOQ/src/main/java/org/jooq/impl/DSL.java +++ b/jOOQ/src/main/java/org/jooq/impl/DSL.java @@ -17306,6 +17306,38 @@ public class DSL { return new Xmlforest(fields); } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + /** * The COVAR_SAMP function. */ diff --git a/jOOQ/src/main/java/org/jooq/impl/Deleting.java b/jOOQ/src/main/java/org/jooq/impl/Deleting.java new file mode 100644 index 0000000000..5773848222 --- /dev/null +++ b/jOOQ/src/main/java/org/jooq/impl/Deleting.java @@ -0,0 +1,101 @@ +/* + * 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.impl; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/jOOQ/src/main/java/org/jooq/impl/Inserting.java b/jOOQ/src/main/java/org/jooq/impl/Inserting.java new file mode 100644 index 0000000000..5773848222 --- /dev/null +++ b/jOOQ/src/main/java/org/jooq/impl/Inserting.java @@ -0,0 +1,101 @@ +/* + * 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.impl; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/jOOQ/src/main/java/org/jooq/impl/Names.java b/jOOQ/src/main/java/org/jooq/impl/Names.java index 5d90ebd334..88302b58a4 100644 --- a/jOOQ/src/main/java/org/jooq/impl/Names.java +++ b/jOOQ/src/main/java/org/jooq/impl/Names.java @@ -125,6 +125,7 @@ final class Names { static final Name N_DB_NAME = unquotedName("db_name"); static final Name N_DECODE = unquotedName("decode"); static final Name N_DEGREES = unquotedName("degrees"); + static final Name N_DELETING = unquotedName("deleting"); static final Name N_DIGITS = unquotedName("digits"); static final Name N_DUAL = unquotedName("dual"); static final Name N_E = unquotedName("e"); @@ -146,6 +147,7 @@ final class Names { static final Name N_IFNULL = unquotedName("ifnull"); static final Name N_IIF = unquotedName("iif"); static final Name N_INSERT = unquotedName("insert"); + static final Name N_INSERTING = unquotedName("inserting"); static final Name N_INSTR = unquotedName("instr"); static final Name N_ISJSON = unquotedName("isjson"); static final Name N_JOIN = unquotedName("join"); @@ -298,6 +300,7 @@ final class Names { static final Name N_TRUNCATE = unquotedName("truncate"); static final Name N_TRUNCNUM = unquotedName("truncnum"); static final Name N_UCASE = unquotedName("ucase"); + static final Name N_UPDATING = unquotedName("updating"); static final Name N_UPPER = unquotedName("upper"); static final Name N_USER = unquotedName("user"); static final Name N_VALUE = unquotedName("value"); diff --git a/jOOQ/src/main/java/org/jooq/impl/Updating.java b/jOOQ/src/main/java/org/jooq/impl/Updating.java new file mode 100644 index 0000000000..5773848222 --- /dev/null +++ b/jOOQ/src/main/java/org/jooq/impl/Updating.java @@ -0,0 +1,101 @@ +/* + * 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.impl; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +