From 2d1402a6e4dc5d5e9b7f01acc450c35bc1ebaead Mon Sep 17 00:00:00 2001 From: Lukas Eder Date: Mon, 26 Jul 2021 11:11:53 +0200 Subject: [PATCH] [jOOQ/jOOQ#5620] Add support for PL/SQL associative array types --- .../java/org/jooq/AssociativeArrayRecord.java | 96 +++++ .../jooq/impl/AssociativeArrayConstant.java | 121 ++++++ .../jooq/impl/AssociativeArrayRecordImpl.java | 399 ++++++++++++++++++ 3 files changed, 616 insertions(+) create mode 100644 jOOQ/src/main/java/org/jooq/AssociativeArrayRecord.java create mode 100644 jOOQ/src/main/java/org/jooq/impl/AssociativeArrayConstant.java create mode 100644 jOOQ/src/main/java/org/jooq/impl/AssociativeArrayRecordImpl.java diff --git a/jOOQ/src/main/java/org/jooq/AssociativeArrayRecord.java b/jOOQ/src/main/java/org/jooq/AssociativeArrayRecord.java new file mode 100644 index 0000000000..edf0f34209 --- /dev/null +++ b/jOOQ/src/main/java/org/jooq/AssociativeArrayRecord.java @@ -0,0 +1,96 @@ +/* + * 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; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/jOOQ/src/main/java/org/jooq/impl/AssociativeArrayConstant.java b/jOOQ/src/main/java/org/jooq/impl/AssociativeArrayConstant.java new file mode 100644 index 0000000000..37f3e645b7 --- /dev/null +++ b/jOOQ/src/main/java/org/jooq/impl/AssociativeArrayConstant.java @@ -0,0 +1,121 @@ +/* + * 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/AssociativeArrayRecordImpl.java b/jOOQ/src/main/java/org/jooq/impl/AssociativeArrayRecordImpl.java new file mode 100644 index 0000000000..54a702257a --- /dev/null +++ b/jOOQ/src/main/java/org/jooq/impl/AssociativeArrayRecordImpl.java @@ -0,0 +1,399 @@ +/* + * 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; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +