[jOOQ/jOOQ#12736] More spatial support

- ST_Perimeter
- ST_XMIN
- ST_XMAX
- ST_YMIN
- ST_YMAX
- ST_ZMIN
- ST_ZMAX
This commit is contained in:
Lukas Eder 2024-06-18 09:44:05 +02:00
parent 861b26831a
commit 76fd72b68f
11 changed files with 1560 additions and 0 deletions

View File

@ -26802,6 +26802,190 @@ public class DSL {

View File

@ -627,6 +627,7 @@ final class Names {
static final Name N_ST_NUMINTERIORRINGS = systemName("st_numinteriorrings");
static final Name N_ST_NUMPOINTS = systemName("st_numpoints");
static final Name N_ST_OVERLAPS = systemName("st_overlaps");
static final Name N_ST_PERIMETER = systemName("st_perimeter");
static final Name N_ST_POINTN = systemName("st_pointn");
static final Name N_ST_SRID = systemName("st_srid");
static final Name N_ST_STARTPOINT = systemName("st_startpoint");
@ -634,8 +635,14 @@ final class Names {
static final Name N_ST_UNION = systemName("st_union");
static final Name N_ST_WITHIN = systemName("st_within");
static final Name N_ST_X = systemName("st_x");
static final Name N_ST_XMAX = systemName("st_xmax");
static final Name N_ST_XMIN = systemName("st_xmin");
static final Name N_ST_Y = systemName("st_y");
static final Name N_ST_YMAX = systemName("st_ymax");
static final Name N_ST_YMIN = systemName("st_ymin");
static final Name N_ST_Z = systemName("st_z");
static final Name N_ST_ZMAX = systemName("st_zmax");
static final Name N_ST_ZMIN = systemName("st_zmin");
static final Name N_SUBSTRING = systemName("substring");
static final Name N_SUBSTRING_INDEX = systemName("substring_index");
static final Name N_SUFFIX = systemName("suffix");

View File

@ -377,6 +377,12 @@ import static org.jooq.impl.DSL.square;
// ...
// ...
// ...
// ...
// ...
// ...
// ...
// ...
// ...
import static org.jooq.impl.DSL.stddevPop;
import static org.jooq.impl.DSL.stddevSamp;
import static org.jooq.impl.DSL.sum;
@ -9607,6 +9613,11 @@ final class DefaultParseContext extends AbstractScope implements ParseContext {
}
else if (!ignoreProEdition() && parseFunctionNameIf("ST_PERIMETER") && requireProEdition()) {
}
else if (!ignoreProEdition() && parseFunctionNameIf("ST_POINTN") && requireProEdition()) {
@ -9632,21 +9643,79 @@ final class DefaultParseContext extends AbstractScope implements ParseContext {
}
else if (!ignoreProEdition() && parseFunctionNameIf("SDO_GEOM.SDO_MIN_MBR_ORDINATE") && requireProEdition()) {
}
else if (!ignoreProEdition() && parseFunctionNameIf("SDO_GEOM.SDO_MAX_MBR_ORDINATE") && requireProEdition()) {
}
else if (!ignoreProEdition() && parseFunctionNameIf("ST_X") && requireProEdition()) {
}
else if (!ignoreProEdition() && parseFunctionNameIf("ST_XMIN") && requireProEdition()) {
}
else if (!ignoreProEdition() && parseFunctionNameIf("ST_XMAX") && requireProEdition()) {
}
else if (!ignoreProEdition() && parseFunctionNameIf("ST_Y") && requireProEdition()) {
}
else if (!ignoreProEdition() && parseFunctionNameIf("ST_YMIN") && requireProEdition()) {
}
else if (!ignoreProEdition() && parseFunctionNameIf("ST_YMAX") && requireProEdition()) {
}
else if (!ignoreProEdition() && parseFunctionNameIf("ST_Z") && requireProEdition()) {
}
else if (!ignoreProEdition() && parseFunctionNameIf("ST_ZMIN") && requireProEdition()) {
}
else if (!ignoreProEdition() && parseFunctionNameIf("ST_ZMAX") && requireProEdition()) {
}
else if (parseFunctionNameIf("SUB", "SUBTRACT"))
return parseFunctionArgs2(Field::sub);

View File

@ -9335,6 +9335,147 @@ public final class QOM {

View File

@ -0,0 +1,157 @@
/*
* 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
* ASL 2.0 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;

View File

@ -0,0 +1,167 @@
/*
* 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
* ASL 2.0 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;

View File

@ -0,0 +1,167 @@
/*
* 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
* ASL 2.0 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;

View File

@ -0,0 +1,167 @@
/*
* 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
* ASL 2.0 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;

View File

@ -0,0 +1,167 @@
/*
* 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
* ASL 2.0 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;

View File

@ -0,0 +1,167 @@
/*
* 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
* ASL 2.0 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;

View File

@ -0,0 +1,167 @@
/*
* 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
* ASL 2.0 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;