From a4d5a7ae247c87ce60cb64a7bae5e21ceed884c3 Mon Sep 17 00:00:00 2001 From: Lukas Eder Date: Wed, 25 Sep 2024 16:40:15 +0200 Subject: [PATCH] [jOOQ/jOOQ#9574] Add org.jooq.Synonym This includes: - Add QOM API - Add CREATE SYNONYM support - Add DROP SYNONYM support - Add parser support --- .../java/org/jooq/CreateSynonymForStep.java | 98 ++++++++ jOOQ/src/main/java/org/jooq/Synonym.java | 49 ++++ .../java/org/jooq/impl/CreateSynonymImpl.java | 237 ++++++++++++++++++ .../java/org/jooq/impl/DropSynonymImpl.java | 186 ++++++++++++++ .../main/java/org/jooq/impl/SynonymImpl.java | 90 +++++++ 5 files changed, 660 insertions(+) create mode 100644 jOOQ/src/main/java/org/jooq/CreateSynonymForStep.java create mode 100644 jOOQ/src/main/java/org/jooq/Synonym.java create mode 100644 jOOQ/src/main/java/org/jooq/impl/CreateSynonymImpl.java create mode 100644 jOOQ/src/main/java/org/jooq/impl/DropSynonymImpl.java create mode 100644 jOOQ/src/main/java/org/jooq/impl/SynonymImpl.java diff --git a/jOOQ/src/main/java/org/jooq/CreateSynonymForStep.java b/jOOQ/src/main/java/org/jooq/CreateSynonymForStep.java new file mode 100644 index 0000000000..bc11c4f057 --- /dev/null +++ b/jOOQ/src/main/java/org/jooq/CreateSynonymForStep.java @@ -0,0 +1,98 @@ +/* + * 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 + * + * https://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 + * Apache-2.0 license and offer limited warranties, support, maintenance, and + * commercial database integrations. + * + * For more information, please visit: https://www.jooq.org/legal/licensing + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + */ +package org.jooq; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/jOOQ/src/main/java/org/jooq/Synonym.java b/jOOQ/src/main/java/org/jooq/Synonym.java new file mode 100644 index 0000000000..c8855f1b9f --- /dev/null +++ b/jOOQ/src/main/java/org/jooq/Synonym.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 + * + * https://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 + * Apache-2.0 license and offer limited warranties, support, maintenance, and + * commercial database integrations. + * + * For more information, please visit: https://www.jooq.org/legal/licensing + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + */ +package org.jooq; + + + + + + + + + + + diff --git a/jOOQ/src/main/java/org/jooq/impl/CreateSynonymImpl.java b/jOOQ/src/main/java/org/jooq/impl/CreateSynonymImpl.java new file mode 100644 index 0000000000..fc1af662b9 --- /dev/null +++ b/jOOQ/src/main/java/org/jooq/impl/CreateSynonymImpl.java @@ -0,0 +1,237 @@ +/* + * 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 + * + * https://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 + * Apache-2.0 license and offer limited warranties, support, maintenance, and + * commercial database integrations. + * + * For more information, please visit: https://www.jooq.org/legal/licensing + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + */ +package org.jooq.impl; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/jOOQ/src/main/java/org/jooq/impl/DropSynonymImpl.java b/jOOQ/src/main/java/org/jooq/impl/DropSynonymImpl.java new file mode 100644 index 0000000000..3f60cd8b90 --- /dev/null +++ b/jOOQ/src/main/java/org/jooq/impl/DropSynonymImpl.java @@ -0,0 +1,186 @@ +/* + * 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 + * + * https://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 + * Apache-2.0 license and offer limited warranties, support, maintenance, and + * commercial database integrations. + * + * For more information, please visit: https://www.jooq.org/legal/licensing + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + */ +package org.jooq.impl; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/jOOQ/src/main/java/org/jooq/impl/SynonymImpl.java b/jOOQ/src/main/java/org/jooq/impl/SynonymImpl.java new file mode 100644 index 0000000000..6ffba2a697 --- /dev/null +++ b/jOOQ/src/main/java/org/jooq/impl/SynonymImpl.java @@ -0,0 +1,90 @@ +/* + * 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 + * + * https://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 + * Apache-2.0 license and offer limited warranties, support, maintenance, and + * commercial database integrations. + * + * For more information, please visit: https://www.jooq.org/legal/licensing + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + */ +package org.jooq.impl; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +