diff --git a/caf-database-object-api/pom.xml b/caf-database-object-api/pom.xml index c0e79fa52cae1bebf84812ad07b23e3cc55452f2..bf8a014ff8e5357f8bccffab769ee20a1bf2fd7c 100644 --- a/caf-database-object-api/pom.xml +++ b/caf-database-object-api/pom.xml @@ -1,18 +1,16 @@ caf-database-object io.iec.edp - 0.2.10 + 0.3.0 4.0.0 diff --git a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/configuration/BaseConfig.java b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/configuration/BaseConfig.java index 35ab11088f3ce10491ba8d70dd4d18d31a0ad01d..85061eaaf1e3658cc1ad14ff9d1cbcfd0f8b37a0 100644 --- a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/configuration/BaseConfig.java +++ b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/configuration/BaseConfig.java @@ -1,17 +1,15 @@ /* - * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd. - * + * Copyright © OpenAtom Foundation. * 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 - * + * 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. + * 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. + * */ package io.iec.edp.caf.databaseobject.api.configuration; diff --git a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/configuration/DatabaseObjectConfiguration.java b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/configuration/DatabaseObjectConfiguration.java index a8fe54f681ed76204a46f865bb01e556fb879cd3..d3f73f3d3e853297ac51ad945bc61e44abc66eae 100644 --- a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/configuration/DatabaseObjectConfiguration.java +++ b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/configuration/DatabaseObjectConfiguration.java @@ -1,17 +1,15 @@ /* - * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd. - * + * Copyright © OpenAtom Foundation. * 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 - * + * 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. + * 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. + * */ package io.iec.edp.caf.databaseobject.api.configuration; diff --git a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/configuration/DatabaseObjectConfigurationLoader.java b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/configuration/DatabaseObjectConfigurationLoader.java index 4c7b33ee07254d99c61401b2a44bd86b3a8ac83d..64156808e051f54f8a7df13ec6c8083120a6480f 100644 --- a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/configuration/DatabaseObjectConfigurationLoader.java +++ b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/configuration/DatabaseObjectConfigurationLoader.java @@ -1,17 +1,15 @@ /* - * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd. - * + * Copyright © OpenAtom Foundation. * 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 - * + * 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. + * 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. + * */ package io.iec.edp.caf.databaseobject.api.configuration; diff --git a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/configuration/FileUtils.java b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/configuration/FileUtils.java index 6d5feacecdf3094dacaf74c83a8816955bd0ceb7..75b5b5d7f80207d3832077d76dbf29bb189d89ab 100644 --- a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/configuration/FileUtils.java +++ b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/configuration/FileUtils.java @@ -1,17 +1,15 @@ /* - * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd. - * + * Copyright © OpenAtom Foundation. * 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 - * + * 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. + * 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. + * */ package io.iec.edp.caf.databaseobject.api.configuration; @@ -34,6 +32,10 @@ public class FileUtils { private static String tableConfigPath; + public static String isMappingOpen = ""; + + public static String isUTF8ExtOpen = ""; + public static String getTableConfigPath() { if (tableConfigPath == null) { tableConfigPath = Paths.get(CafEnvironment.getServerRTPath(), "config/platform/common/caf_dbo_tablename.json").toString(); @@ -84,6 +86,46 @@ public class FileUtils { return ("true").equals(exportOpen); } + public static boolean isMappingOpen() { + if(!"".equals(isMappingOpen)){ + return "true".equals(isMappingOpen); + }else{ + String configPath = getSqlConfigPath(); + File file = new File(configPath); + try { + String content = org.apache.commons.io.FileUtils.readFileToString(file, "UTF-8"); + JSONObject jsonObject = new JSONObject(content); + isMappingOpen = jsonObject.getString("isMappingOpen"); + if(null == isMappingOpen || "".equals(isMappingOpen)){ + isMappingOpen = "false"; + } + } catch (Exception e) { + isMappingOpen = "false"; + } + return "true".equals(isMappingOpen); + } + } + + public static boolean isUTF8ExtOpen() { + if(!"".equals(isUTF8ExtOpen)){ + return "true".equals(isUTF8ExtOpen); + }else{ + String configPath = getSqlConfigPath(); + File file = new File(configPath); + try { + String content = org.apache.commons.io.FileUtils.readFileToString(file, "UTF-8"); + JSONObject jsonObject = new JSONObject(content); + isUTF8ExtOpen = jsonObject.getString("isUTF8ExtOpen"); + if(null == isUTF8ExtOpen || "".equals(isUTF8ExtOpen)){ + isUTF8ExtOpen = "false"; + } + } catch (Exception e) { + isUTF8ExtOpen = "false"; + } + return "true".equals(isUTF8ExtOpen); + } + } + private static String reservedWordOpen; public static boolean getReservedWordOpen() diff --git a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/configuration/ObjectNameMaxLengthConfiguration.java b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/configuration/ObjectNameMaxLengthConfiguration.java index 855c042396d510e61f93beeb4f5cfbae14a7b26f..c874813d38a4d3c67d68d426a93fcb123d77b9af 100644 --- a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/configuration/ObjectNameMaxLengthConfiguration.java +++ b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/configuration/ObjectNameMaxLengthConfiguration.java @@ -1,17 +1,15 @@ /* - * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd. - * + * Copyright © OpenAtom Foundation. * 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 - * + * 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. + * 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. + * */ package io.iec.edp.caf.databaseobject.api.configuration; diff --git a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/configuration/ObjectNameMaxLengthLoader.java b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/configuration/ObjectNameMaxLengthLoader.java index 0af23eb5caf73e353200b0c0be2643c4f582aa12..51f093da52ea064c51a71050b63aa6a953412bda 100644 --- a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/configuration/ObjectNameMaxLengthLoader.java +++ b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/configuration/ObjectNameMaxLengthLoader.java @@ -1,17 +1,15 @@ /* - * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd. - * + * Copyright © OpenAtom Foundation. * 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 - * + * 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. + * 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. + * */ package io.iec.edp.caf.databaseobject.api.configuration; diff --git a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/configuration/SQLReflector.java b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/configuration/SQLReflector.java index 38508ed28aaf139e139c1edf6aaebdb20147db4d..00888922ddcb27967802f638c57d784cc561c4a5 100644 --- a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/configuration/SQLReflector.java +++ b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/configuration/SQLReflector.java @@ -1,17 +1,15 @@ /* - * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd. - * + * Copyright © OpenAtom Foundation. * 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 - * + * 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. + * 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. + * */ package io.iec.edp.caf.databaseobject.api.configuration; diff --git a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/configuration/TableNameConfiguration.java b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/configuration/TableNameConfiguration.java index b34a79f10fd241d9f6161cd0a4536a8e22547593..e859abe04f994abc05c566a1a24f44929ec2772a 100644 --- a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/configuration/TableNameConfiguration.java +++ b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/configuration/TableNameConfiguration.java @@ -1,17 +1,15 @@ /* - * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd. - * + * Copyright © OpenAtom Foundation. * 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 - * + * 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. + * 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. + * */ package io.iec.edp.caf.databaseobject.api.configuration; diff --git a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/configuration/TableNameConfigurationLoader.java b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/configuration/TableNameConfigurationLoader.java index 81b8cc0e73ae142da7c4eedf5851afca31c60394..a887cb373855923c17c2dc9d565db7d175954b64 100644 --- a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/configuration/TableNameConfigurationLoader.java +++ b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/configuration/TableNameConfigurationLoader.java @@ -1,17 +1,15 @@ /* - * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd. - * + * Copyright © OpenAtom Foundation. * 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 - * + * 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. + * 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. + * */ package io.iec.edp.caf.databaseobject.api.configuration; diff --git a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/configuration/datatype/DBODataTypeConfigurationLoader.java b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/configuration/datatype/DBODataTypeConfigurationLoader.java index 6024c0cb159c9c79289f29572c88e5aae758d406..c1da0ce275ddce61bee2ccb8dc014725ffc6ddbd 100644 --- a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/configuration/datatype/DBODataTypeConfigurationLoader.java +++ b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/configuration/datatype/DBODataTypeConfigurationLoader.java @@ -1,17 +1,15 @@ /* - * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd. - * + * Copyright © OpenAtom Foundation. * 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 - * + * 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. + * 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. + * */ package io.iec.edp.caf.databaseobject.api.configuration.datatype; diff --git a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/configuration/datatype/DataTypeMapping.java b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/configuration/datatype/DataTypeMapping.java index bb67115d406b81096ec4d44c08bee973694abdad..7deec82aae296a637eb9c15bb9a9f5ca6dd218bb 100644 --- a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/configuration/datatype/DataTypeMapping.java +++ b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/configuration/datatype/DataTypeMapping.java @@ -1,17 +1,15 @@ /* - * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd. - * + * Copyright © OpenAtom Foundation. * 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 - * + * 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. + * 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. + * */ package io.iec.edp.caf.databaseobject.api.configuration.datatype; diff --git a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/configuration/datatype/DatabaseObjectDataTypeConfiguration.java b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/configuration/datatype/DatabaseObjectDataTypeConfiguration.java index fc5d375105879d52e067a964291875e898600a76..dccd022170cc1e64f80f8daa0ad117ff9875dc82 100644 --- a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/configuration/datatype/DatabaseObjectDataTypeConfiguration.java +++ b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/configuration/datatype/DatabaseObjectDataTypeConfiguration.java @@ -1,17 +1,15 @@ /* - * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd. - * + * Copyright © OpenAtom Foundation. * 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 - * + * 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. + * 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. + * */ package io.iec.edp.caf.databaseobject.api.configuration.datatype; @@ -44,9 +42,9 @@ public class DatabaseObjectDataTypeConfiguration implements Serializable { /** * 数据库类型映射关系列表 */ - private ArrayList DataTypeMappings; + private ArrayList DataTypeMappings; - public final ArrayList getDataTypeMappings() { + public final ArrayList getDataTypeMappings() { return DataTypeMappings; } diff --git a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/configuration/deplpyconfig/DboDeployConfiguration.java b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/configuration/deplpyconfig/DboDeployConfiguration.java index 2ad058ba7e527ef7da5410321df383f4e4769caf..35d6de23e453ecbb71b83be7e6ab5c3328a652fb 100644 --- a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/configuration/deplpyconfig/DboDeployConfiguration.java +++ b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/configuration/deplpyconfig/DboDeployConfiguration.java @@ -1,17 +1,15 @@ /* - * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd. - * + * Copyright © OpenAtom Foundation. * 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 - * + * 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. + * 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. + * */ package io.iec.edp.caf.databaseobject.api.configuration.deplpyconfig; diff --git a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/configuration/deplpyconfig/DboDeployConfigurationLoader.java b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/configuration/deplpyconfig/DboDeployConfigurationLoader.java index 396829b2a94f19d94d62fbc3431207b557272472..42cf81e75ee2e4704225932356ce5cc4184d049e 100644 --- a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/configuration/deplpyconfig/DboDeployConfigurationLoader.java +++ b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/configuration/deplpyconfig/DboDeployConfigurationLoader.java @@ -1,17 +1,15 @@ /* - * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd. - * + * Copyright © OpenAtom Foundation. * 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 - * + * 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. + * 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. + * */ package io.iec.edp.caf.databaseobject.api.configuration.deplpyconfig; diff --git a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/configuration/funcmapping/DBOFuncMappingLoader.java b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/configuration/funcmapping/DBOFuncMappingLoader.java index 5c6d396f9cd29d054730ac535c4f27cd28881112..d2dc7bb98e00e7e306693957d69d97fc440a328c 100644 --- a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/configuration/funcmapping/DBOFuncMappingLoader.java +++ b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/configuration/funcmapping/DBOFuncMappingLoader.java @@ -1,17 +1,15 @@ /* - * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd. - * + * Copyright © OpenAtom Foundation. * 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 - * + * 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. + * 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. + * */ package io.iec.edp.caf.databaseobject.api.configuration.funcmapping; diff --git a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/configuration/funcmapping/DatabaseFuncConfiguration.java b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/configuration/funcmapping/DatabaseFuncConfiguration.java index ab85ddf65ee9cec43ad03e4d5a3bcbb52adba2aa..a4f67e9180703e7c71d21fdae05caa96536b07fd 100644 --- a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/configuration/funcmapping/DatabaseFuncConfiguration.java +++ b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/configuration/funcmapping/DatabaseFuncConfiguration.java @@ -1,17 +1,15 @@ /* - * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd. - * + * Copyright © OpenAtom Foundation. * 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 - * + * 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. + * 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. + * */ package io.iec.edp.caf.databaseobject.api.configuration.funcmapping; diff --git a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/configuration/funcmapping/DatabaseFuncMapping.java b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/configuration/funcmapping/DatabaseFuncMapping.java index 6b18c2e08810d0c883abda2c2e9af4bdf14daf19..d1b2b6a15ce8985b58f5c2c585b1056b32dfb7b7 100644 --- a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/configuration/funcmapping/DatabaseFuncMapping.java +++ b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/configuration/funcmapping/DatabaseFuncMapping.java @@ -1,17 +1,15 @@ /* - * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd. - * + * Copyright © OpenAtom Foundation. * 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 - * + * 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. + * 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. + * */ package io.iec.edp.caf.databaseobject.api.configuration.funcmapping; diff --git a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/context/DatabaseObjectContext.java b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/context/DatabaseObjectContext.java index c7d263dd8c16f57b046c2d2a4b70b1426303aae7..bae35b0ef3e271f8afd4bcdb0c2822494d6ca9e7 100644 --- a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/context/DatabaseObjectContext.java +++ b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/context/DatabaseObjectContext.java @@ -1,17 +1,15 @@ /* - * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd. - * + * Copyright © OpenAtom Foundation. * 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 - * + * 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. + * 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. + * */ package io.iec.edp.caf.databaseobject.api.context; diff --git a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/context/DatabaseObjectReservedWords.java b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/context/DatabaseObjectReservedWords.java index 6e9089305ce80eb457a876a1cef3d64498c217b9..47768099c7e35f795c8ad001e090a9d9ece264f6 100644 --- a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/context/DatabaseObjectReservedWords.java +++ b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/context/DatabaseObjectReservedWords.java @@ -1,17 +1,15 @@ /* - * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd. - * + * Copyright © OpenAtom Foundation. * 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 - * + * 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. + * 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. + * */ package io.iec.edp.caf.databaseobject.api.context; diff --git a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/context/DatabaseReservedWords.java b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/context/DatabaseReservedWords.java index e5d448a687681138714876ef586bb4247c24ec77..3722073d40ec7be78206daa3261d3989cb8a0f5a 100644 --- a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/context/DatabaseReservedWords.java +++ b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/context/DatabaseReservedWords.java @@ -1,17 +1,15 @@ /* - * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd. - * + * Copyright © OpenAtom Foundation. * 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 - * + * 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. + * 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. + * */ package io.iec.edp.caf.databaseobject.api.context; diff --git a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/context/ReservedColumns.java b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/context/ReservedColumns.java index d9f98e7f8da31214f2370e95d713f749b68f9c57..407e5e21502293b40650838ffb387f90846df88b 100644 --- a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/context/ReservedColumns.java +++ b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/context/ReservedColumns.java @@ -1,17 +1,15 @@ /* - * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd. - * + * Copyright © OpenAtom Foundation. * 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 - * + * 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. + * 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. + * */ package io.iec.edp.caf.databaseobject.api.context; diff --git a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/AbstractDatabaseObject.java b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/AbstractDatabaseObject.java index 9f6f51b132695b596e4d077ecdebaa6ef1e69c64..0bf0ee2bdae38e11934ffb6ccd76970ba5001e8b 100644 --- a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/AbstractDatabaseObject.java +++ b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/AbstractDatabaseObject.java @@ -1,17 +1,15 @@ /* - * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd. - * + * Copyright © OpenAtom Foundation. * 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 - * + * 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. + * 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. + * */ package io.iec.edp.caf.databaseobject.api.entity; diff --git a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/ColumnChangeOperation.java b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/ColumnChangeOperation.java index 92aad59dcf40d4b94ed59c44e8313b83300d7e51..a31eb672f1870efd0fdb1b5e5650209b56cb5eaf 100644 --- a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/ColumnChangeOperation.java +++ b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/ColumnChangeOperation.java @@ -1,17 +1,15 @@ /* - * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd. - * + * Copyright © OpenAtom Foundation. * 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 - * + * 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. + * 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. + * */ package io.iec.edp.caf.databaseobject.api.entity; diff --git a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/ColumnOperation.java b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/ColumnOperation.java index fadbc7b796360e2ac6fb7b7a08b9f6417832ae13..c3f530a0171c572ab804d0834eeefa5a985f8e07 100644 --- a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/ColumnOperation.java +++ b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/ColumnOperation.java @@ -1,17 +1,15 @@ /* - * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd. - * + * Copyright © OpenAtom Foundation. * 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 - * + * 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. + * 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. + * */ package io.iec.edp.caf.databaseobject.api.entity; diff --git a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/DBInfo.java b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/DBInfo.java index 7828a66afc852aa92523272ec6b72762a2878570..eb5516301eebb38461c1af32a9b48ab4ee6565c4 100644 --- a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/DBInfo.java +++ b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/DBInfo.java @@ -1,17 +1,15 @@ /* - * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd. - * + * Copyright © OpenAtom Foundation. * 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 - * + * 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. + * 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. + * */ package io.iec.edp.caf.databaseobject.api.entity; @@ -110,7 +108,7 @@ public class DBInfo { if (url == null || url.length() <= 0) { switch (dbType) { case DM: - url = "jdbc:dm://" + server + ":" + port + "/DMSERVER?schema=" + dbName; + url = "jdbc:dm://" + server + ":" + port; break; case PgSQL: url = "jdbc:postgresql://" + server + ":" + port + "/" + dbName; @@ -136,6 +134,9 @@ public class DBInfo { case DB2: url = "jdbc:db2://" + server + ":" + port + "/" + dbName; break; + case OpenGauss: + url = "jdbc:opengauss://" + server + ":" + port + "/" + dbName+"?batchMode=off&loggerLevel=OFF"; + break; default: throw new RuntimeException("数据库类型不正确"); } diff --git a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/DBOTableNameRule.java b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/DBOTableNameRule.java index b0ef451ecb18278cac6e40a3511f8fedaf343bb0..bf7172e73cb169a2067ee073c37cdb958baf2354 100644 --- a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/DBOTableNameRule.java +++ b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/DBOTableNameRule.java @@ -1,17 +1,15 @@ /* - * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd. - * + * Copyright © OpenAtom Foundation. * 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 - * + * 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. + * 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. + * */ package io.iec.edp.caf.databaseobject.api.entity; diff --git a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/DataType.java b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/DataType.java index e43a673c23757f425668ebb87215aa67f93deaee..2d5d39dc16bfc160104145a75c9bd0e106b451c4 100644 --- a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/DataType.java +++ b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/DataType.java @@ -1,17 +1,15 @@ /* - * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd. - * + * Copyright © OpenAtom Foundation. * 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 - * + * 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. + * 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. + * */ package io.iec.edp.caf.databaseobject.api.entity; @@ -108,7 +106,7 @@ public enum DataType { Jsonb; - public static final int SIZE = java.lang.Integer.SIZE; + public static final int SIZE = Integer.SIZE; public int getValue() { return this.ordinal(); diff --git a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/DatabaseObjectColumn.java b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/DatabaseObjectColumn.java index b1a5e1bf2653d980be80f8555abe8e2724382993..2216694ed885681a97a5efb86c8ce20f4316cb09 100644 --- a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/DatabaseObjectColumn.java +++ b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/DatabaseObjectColumn.java @@ -1,17 +1,15 @@ /* - * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd. - * + * Copyright © OpenAtom Foundation. * 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 - * + * 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. + * 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. + * */ package io.iec.edp.caf.databaseobject.api.entity; diff --git a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/DatabaseObjectIndex.java b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/DatabaseObjectIndex.java index be7d1b4b23c35afad53fc2282048d3044369b105..a21b4f255e0f43479952e7b4ac6b665177bd122f 100644 --- a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/DatabaseObjectIndex.java +++ b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/DatabaseObjectIndex.java @@ -1,17 +1,15 @@ /* - * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd. - * + * Copyright © OpenAtom Foundation. * 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 - * + * 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. + * 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. + * */ package io.iec.edp.caf.databaseobject.api.entity; diff --git a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/DatabaseObjectInfo.java b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/DatabaseObjectInfo.java index 9c3aab90fba6978f94764c580b9735a588ab5c8d..ef7bba8b676e0b5eff05172f6d4d3cbf23d7356f 100644 --- a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/DatabaseObjectInfo.java +++ b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/DatabaseObjectInfo.java @@ -1,17 +1,15 @@ /* - * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd. - * + * Copyright © OpenAtom Foundation. * 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 - * + * 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. + * 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. + * */ package io.iec.edp.caf.databaseobject.api.entity; diff --git a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/DatabaseObjectTable.java b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/DatabaseObjectTable.java index 3cf782816b6d0c5dcee9787490fec68ea1da029c..e7505fb5782bde736dfe272ac888c11fa92f5323 100644 --- a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/DatabaseObjectTable.java +++ b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/DatabaseObjectTable.java @@ -1,17 +1,15 @@ /* - * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd. - * + * Copyright © OpenAtom Foundation. * 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 - * + * 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. + * 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. + * */ package io.iec.edp.caf.databaseobject.api.entity; diff --git a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/DatabaseObjectTableCore.java b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/DatabaseObjectTableCore.java index 72321432c0b3bf3c41a9e8c20b40da8a380eaee1..3264900370730949939d9d0a3a8125b62f758dd6 100644 --- a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/DatabaseObjectTableCore.java +++ b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/DatabaseObjectTableCore.java @@ -1,17 +1,15 @@ /* - * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd. - * + * Copyright © OpenAtom Foundation. * 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 - * + * 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. + * 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. + * */ package io.iec.edp.caf.databaseobject.api.entity; diff --git a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/DatabaseObjectTempTable.java b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/DatabaseObjectTempTable.java index 2f6d43d57dde5259b1d2cd36e83f4d0398485494..989e892334db4afc78a779beabceaf895ef8a14b 100644 --- a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/DatabaseObjectTempTable.java +++ b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/DatabaseObjectTempTable.java @@ -1,17 +1,15 @@ /* - * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd. - * + * Copyright © OpenAtom Foundation. * 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 - * + * 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. + * 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. + * */ package io.iec.edp.caf.databaseobject.api.entity; diff --git a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/DatabaseObjectType.java b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/DatabaseObjectType.java index aa47ee55f5900e2bf885bc52b6c0e2ac59138117..28916213d7d41f64c991e73de4fb46c9b7c21474 100644 --- a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/DatabaseObjectType.java +++ b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/DatabaseObjectType.java @@ -1,17 +1,15 @@ /* - * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd. - * + * Copyright © OpenAtom Foundation. * 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 - * + * 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. + * 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. + * */ package io.iec.edp.caf.databaseobject.api.entity; @@ -62,7 +60,7 @@ public enum DatabaseObjectType { */ TempTable(6); - public static final int SIZE = java.lang.Integer.SIZE; + public static final int SIZE = Integer.SIZE; private int intValue; private static Map mappings; diff --git a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/DatabaseObjectView.java b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/DatabaseObjectView.java index bffe460d0c8dc94db9093be4e198e7fb2e4047fd..daa4c91bcd1ff5dc112f08295d6d32f0eeeefc40 100644 --- a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/DatabaseObjectView.java +++ b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/DatabaseObjectView.java @@ -1,17 +1,15 @@ /* - * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd. - * + * Copyright © OpenAtom Foundation. * 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 - * + * 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. + * 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. + * */ package io.iec.edp.caf.databaseobject.api.entity; diff --git a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/DatabaseObjectViewDefinition.java b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/DatabaseObjectViewDefinition.java index 9ecaf7d0c62ce694cd202b420f6b12eb2f5713dc..e33122681328dc0601eed0fc508773240e2589f8 100644 --- a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/DatabaseObjectViewDefinition.java +++ b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/DatabaseObjectViewDefinition.java @@ -1,17 +1,15 @@ /* - * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd. - * + * Copyright © OpenAtom Foundation. * 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 - * + * 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. + * 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. + * */ package io.iec.edp.caf.databaseobject.api.entity; diff --git a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/DbType.java b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/DbType.java index 5639e33ba5f42195e58c6fa1be234e1b2cd93f7c..93d81662f9cc37f4f99e87442c3f42ea2eab7aa6 100644 --- a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/DbType.java +++ b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/DbType.java @@ -1,17 +1,15 @@ /* - * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd. - * + * Copyright © OpenAtom Foundation. * 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 - * + * 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. + * 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. + * */ package io.iec.edp.caf.databaseobject.api.entity; @@ -67,5 +65,10 @@ public enum DbType { /** * DB2 */ - DB2 + DB2, + + /** + * OpenGauss + */ + OpenGauss } diff --git a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/DboDeployResultInfo.java b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/DboDeployResultInfo.java index 1007b25566300757ee159820784854117ed81961..699d9dda1e6cbd79327bfa73afd67ed0398680bd 100644 --- a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/DboDeployResultInfo.java +++ b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/DboDeployResultInfo.java @@ -1,17 +1,15 @@ /* - * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd. - * + * Copyright © OpenAtom Foundation. * 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 - * + * 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. + * 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. + * */ package io.iec.edp.caf.databaseobject.api.entity; diff --git a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/DboTableChangeInfo.java b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/DboTableChangeInfo.java index 44ef683830e4507a89229eaf416be38905e8c9a0..8551b58e901c777af3ea2238464ef52d983e7253 100644 --- a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/DboTableChangeInfo.java +++ b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/DboTableChangeInfo.java @@ -1,17 +1,15 @@ /* - * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd. - * + * Copyright © OpenAtom Foundation. * 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 - * + * 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. + * 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. + * */ package io.iec.edp.caf.databaseobject.api.entity; diff --git a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/DimensionStrategyWithOrder.java b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/DimensionStrategyWithOrder.java index 01306ffd5609cb6b2aecd44538921c247dacfbeb..fee555770bf2cb83d3c21b8730995d76d704e4ce 100644 --- a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/DimensionStrategyWithOrder.java +++ b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/DimensionStrategyWithOrder.java @@ -1,17 +1,15 @@ /* - * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd. - * + * Copyright © OpenAtom Foundation. * 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 - * + * 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. + * 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. + * */ package io.iec.edp.caf.databaseobject.api.entity; diff --git a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/DimensionValueEntity.java b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/DimensionValueEntity.java index 796d810d6cfe3cbf213ab1386434eac66177d98f..799302c50a59b4dc74287cd86cea202e3d751e1a 100644 --- a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/DimensionValueEntity.java +++ b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/DimensionValueEntity.java @@ -1,17 +1,15 @@ /* - * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd. - * + * Copyright © OpenAtom Foundation. * 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 - * + * 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. + * 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. + * */ package io.iec.edp.caf.databaseobject.api.entity; diff --git a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/GspDatabaseObject.java b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/GspDatabaseObject.java index ada1bff110ccd797267e47d96db19ed68d157228..07f5e01e45110a318a7a6b4d6dd0e722f35e9ee4 100644 --- a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/GspDatabaseObject.java +++ b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/GspDatabaseObject.java @@ -1,17 +1,15 @@ /* - * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd. - * + * Copyright © OpenAtom Foundation. * 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 - * + * 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. + * 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. + * */ package io.iec.edp.caf.databaseobject.api.entity; @@ -30,6 +28,18 @@ import java.time.LocalDateTime; @Entity @Table(name = "GSPDatabaseObject") public class GspDatabaseObject { + + public GspDatabaseObject(){} + + public GspDatabaseObject(String id, String code, String name, int type) { + this.id = id; + this.code = code; + this.name = name; + this.type = type; + this.createdTime=null; + this.lastModifiedTime=null; + } + /** * 唯一标识 */ diff --git a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/GspDatabaseObjectColumnMapping.java b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/GspDatabaseObjectColumnMapping.java new file mode 100644 index 0000000000000000000000000000000000000000..d300a3e901003aa3fd4f3f95de866874878ac76d --- /dev/null +++ b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/GspDatabaseObjectColumnMapping.java @@ -0,0 +1,43 @@ +package io.iec.edp.caf.databaseobject.api.entity; + +import lombok.Data; + +import javax.persistence.Column; +import javax.persistence.Entity; +import javax.persistence.Id; +import javax.persistence.Table; + +/** + * 数据库列对象映射实体 + * + * @author michael xue + */ +@Data +@Entity +@Table(name = "GSPColumnMapping") +public class GspDatabaseObjectColumnMapping { + + /** + * 唯一标识 + */ + @Id + @Column(length = 36) + private String id; + + + /** + * dboId + */ + private String dboId; + + + /** + * columnId + */ + private String columnId; + + /** + * columnIdMapping + */ + private String columnIdMapping; +} diff --git a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/GspDatabaseObjectDT.java b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/GspDatabaseObjectDT.java index a759a9fab01c29c5ad0ea8cb5836a4364bd388f1..4212f04da60121a76ed8a9b5e3209afa58707c65 100644 --- a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/GspDatabaseObjectDT.java +++ b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/GspDatabaseObjectDT.java @@ -1,17 +1,15 @@ /* - * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd. - * + * Copyright © OpenAtom Foundation. * 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 - * + * 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. + * 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. + * */ package io.iec.edp.caf.databaseobject.api.entity; diff --git a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/GspDatabaseObjectMapping.java b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/GspDatabaseObjectMapping.java new file mode 100644 index 0000000000000000000000000000000000000000..c8f79728a3e0ea3dcc886cc77dae1f1a80d7c2f9 --- /dev/null +++ b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/GspDatabaseObjectMapping.java @@ -0,0 +1,39 @@ +package io.iec.edp.caf.databaseobject.api.entity; + +import lombok.Data; + +import javax.persistence.Column; +import javax.persistence.Entity; +import javax.persistence.Id; +import javax.persistence.Table; + +/** + * 数据库对象信息实体 + * + * @author liu_wei + */ +@Data +@Entity +@Table(name = "GSPDatabaseObjectMapping") +public class GspDatabaseObjectMapping { + + /** + * 唯一标识 + */ + @Id + @Column(length = 36) + private String id; + + + /** + * dboId + */ + private String dboId; + + + /** + * 映射dboId + */ + private String dboIdMapping; + +} diff --git a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/ScopeType.java b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/ScopeType.java index d4c26aab7bd3e99e9116395e215c729613262470..eafdcb41c7d8b44f08aed4a60f5efcb118bdf468 100644 --- a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/ScopeType.java +++ b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/ScopeType.java @@ -1,17 +1,15 @@ /* - * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd. - * + * Copyright © OpenAtom Foundation. * 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 - * + * 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. + * 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. + * */ package io.iec.edp.caf.databaseobject.api.entity; diff --git a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/TempTableContext.java b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/TempTableContext.java index c418640f6495b0ccb58e1ad5c0049984b2b4299b..82c526cd441d220d8e8ce1425d48d087bcb123f1 100644 --- a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/TempTableContext.java +++ b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/TempTableContext.java @@ -1,17 +1,15 @@ /* - * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd. - * + * Copyright © OpenAtom Foundation. * 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 - * + * 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. + * 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. + * */ package io.iec.edp.caf.databaseobject.api.entity; diff --git a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/ViewDefination.java b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/ViewDefination.java index 6689bb7a45864b7d9c4eecc3bccb8d5055fb52db..90949f6ba6f75f56aedd9c2de23e6cc0b842bf40 100644 --- a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/ViewDefination.java +++ b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/ViewDefination.java @@ -1,17 +1,15 @@ /* - * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd. - * + * Copyright © OpenAtom Foundation. * 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 - * + * 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. + * 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. + * */ package io.iec.edp.caf.databaseobject.api.entity; diff --git a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/exception/DboException.java b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/exception/DboException.java index 815bed8308b5cc6a51111cf75c02b1993aa20ba3..0226a3da47f15907db1ee650d2ebdad520a2e1a3 100644 --- a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/exception/DboException.java +++ b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/exception/DboException.java @@ -1,17 +1,15 @@ /* - * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd. - * + * Copyright © OpenAtom Foundation. * 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 - * + * 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. + * 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. + * */ package io.iec.edp.caf.databaseobject.api.exception; diff --git a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/helper/DboConfigurationHelper.java b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/helper/DboConfigurationHelper.java index 7138cc75270b507b3b470f39e4763b0194866434..7a976197c4903244f1befd7f07827a5588f41eec 100644 --- a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/helper/DboConfigurationHelper.java +++ b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/helper/DboConfigurationHelper.java @@ -1,17 +1,15 @@ /* - * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd. - * + * Copyright © OpenAtom Foundation. * 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 - * + * 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. + * 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. + * */ package io.iec.edp.caf.databaseobject.api.helper; diff --git a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/service/IDatabaseObjectDeployService.java b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/service/IDatabaseObjectDeployService.java index 8fdcb0c2092596fadc95e590457917d7c1c08c2e..5b3c060933c23cc8ab139d2695a4b03689a04566 100644 --- a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/service/IDatabaseObjectDeployService.java +++ b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/service/IDatabaseObjectDeployService.java @@ -1,17 +1,15 @@ /* - * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd. - * + * Copyright © OpenAtom Foundation. * 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 - * + * 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. + * 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. + * */ package io.iec.edp.caf.databaseobject.api.service; @@ -67,6 +65,17 @@ public interface IDatabaseObjectDeployService { */ DboDeployResultInfo deployDatabaseObjects(List databaseObjects, Map dimensionValue, String su); + + /** + * 部署多个DBO到指定库 + * + * @param databaseObjects DBO实体列表 + * @param dimensionValue 维度信息 + * @param dbInfo 数据库信息 + * @return 部署结果 + */ + DboDeployResultInfo deployDatabaseObjects(List databaseObjects, Map dimensionValue, DBInfo dbInfo); + /** * 部署指定路径下DBO * diff --git a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/service/IDatabaseObjectDtService.java b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/service/IDatabaseObjectDtService.java index 0c12ad84dba6d46f8795b6955b53ab3a424d7046..9167dcf6a0fd3f6ef56fbb8a447e2459aefa495c 100644 --- a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/service/IDatabaseObjectDtService.java +++ b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/service/IDatabaseObjectDtService.java @@ -1,17 +1,15 @@ /* - * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd. - * + * Copyright © OpenAtom Foundation. * 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 - * + * 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. + * 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. + * */ package io.iec.edp.caf.databaseobject.api.service; diff --git a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/service/IDatabaseObjectExportService.java b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/service/IDatabaseObjectExportService.java index 7a0edb690d0104c4d6c8bce9c53361aaecaaf9a3..fc2a85ed24a9aaeb48ccd7a4f9c2245566d064ac 100644 --- a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/service/IDatabaseObjectExportService.java +++ b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/service/IDatabaseObjectExportService.java @@ -1,17 +1,15 @@ /* - * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd. - * + * Copyright © OpenAtom Foundation. * 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 - * + * 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. + * 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. + * */ package io.iec.edp.caf.databaseobject.api.service; diff --git a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/service/IDatabaseObjectRtService.java b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/service/IDatabaseObjectRtService.java index 581356d356a616a45216caa3dac789953a9994e2..925c9387b4830adb37451d65c45113b8f5e873ed 100644 --- a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/service/IDatabaseObjectRtService.java +++ b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/service/IDatabaseObjectRtService.java @@ -1,26 +1,21 @@ /* - * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd. - * + * Copyright © OpenAtom Foundation. * 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 - * + * 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. + * 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. + * */ package io.iec.edp.caf.databaseobject.api.service; -import io.iec.edp.caf.databaseobject.api.entity.AbstractDatabaseObject; -import io.iec.edp.caf.databaseobject.api.entity.DBOTableNameRule; -import io.iec.edp.caf.databaseobject.api.entity.DatabaseObjectTable; -import io.iec.edp.caf.databaseobject.api.entity.TempTableContext; +import io.iec.edp.caf.databaseobject.api.entity.*; import io.iec.edp.caf.dimension.api.entity.DimensionEntity; import org.springframework.web.bind.annotation.RequestBody; @@ -47,6 +42,15 @@ public interface IDatabaseObjectRtService { @GET List getDatabaseObjectList(); + /** + * 获取未序列化content的数据库对象 + * + * @return DBO实体列表 + */ + @GET + @Path("/gspDatabaseObject/list") + List getGspDatabaseObjectList(); + /** * 获取默认DBO实体列表 * @@ -66,6 +70,22 @@ public interface IDatabaseObjectRtService { @Path(value = "/{dboId}") AbstractDatabaseObject getDatabaseObject(@PathParam("dboId") String dboId); + /** + * 清空全部mapping缓存 + */ + @POST + @Path("/cache/clear/mapping") + void clearDatabaseObjectMappingContent(); + + /** + * 根据dboIds清空缓存 + * + * @param ids 数据库对象ID列表 + */ + @POST + @Path("/cache/clear/mapping/ids") + void clearDatabaseObjectMappingContentByIds(@RequestBody String ids); + /** * 根据ID获取数据库对象表详细信息 * @@ -159,7 +179,7 @@ public interface IDatabaseObjectRtService { * @param dimensionInfo 维度信息 * @return 表名 */ - String getTableNameWithDimensionValue(String dboId, Map dimensionInfo); + String getTableNameWithDimensionValue(String dboId, Map dimensionInfo) throws RuntimeException; /** * 根据多个维护获取dbo的多个表名(例如多年度) diff --git a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/service/IDatabaseObjectService.java b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/service/IDatabaseObjectService.java index 77690e761bf3aa988f81af44c4eaab3824acf67b..73591965e7e340e461465e1087a96196eb322e1a 100644 --- a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/service/IDatabaseObjectService.java +++ b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/service/IDatabaseObjectService.java @@ -1,17 +1,15 @@ /* - * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd. - * + * Copyright © OpenAtom Foundation. * 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 - * + * 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. + * 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. + * */ package io.iec.edp.caf.databaseobject.api.service; diff --git a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/service/IDatabaseObjectTempTableService.java b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/service/IDatabaseObjectTempTableService.java index 9992baafca0dd7cf1d0903c1565060fd94bdb7a1..0b454bb80d4d10fb996d671e86c6bdaa4e9bf5ae 100644 --- a/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/service/IDatabaseObjectTempTableService.java +++ b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/service/IDatabaseObjectTempTableService.java @@ -1,17 +1,15 @@ /* - * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd. - * + * Copyright © OpenAtom Foundation. * 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 - * + * 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. + * 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. + * */ package io.iec.edp.caf.databaseobject.api.service; diff --git a/caf-database-object-api/src/test/java/ConfigurationgLoaderTest.java b/caf-database-object-api/src/test/java/ConfigurationgLoaderTest.java index af7d4975bc79f060cb8d7860ea7701348284d294..1753d04498d2d82ff4d4e32dbac2eb3e66847a56 100644 --- a/caf-database-object-api/src/test/java/ConfigurationgLoaderTest.java +++ b/caf-database-object-api/src/test/java/ConfigurationgLoaderTest.java @@ -1,17 +1,15 @@ /* - * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd. - * + * Copyright © OpenAtom Foundation. * 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 - * + * 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. + * 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. + * */ import org.junit.Test; diff --git a/caf-database-object-spi/pom.xml b/caf-database-object-spi/pom.xml index 7714383b5b2c618de68921d3c106cd1bdaa9a765..7a86cb50374e37a642ebb499084933edb5690acf 100644 --- a/caf-database-object-spi/pom.xml +++ b/caf-database-object-spi/pom.xml @@ -1,18 +1,16 @@ caf-database-object io.iec.edp - 0.2.10 + 0.3.0 4.0.0 jar diff --git a/caf-database-object-spi/src/main/java/io/iec/edp/caf/databaseobject/spi/ITableNameRuleManager.java b/caf-database-object-spi/src/main/java/io/iec/edp/caf/databaseobject/spi/ITableNameRuleManager.java index bd46bf2c7be8beeb21cbb497a1c7c88bf47eb4f5..b9f601f80db36d7246965a9cf74f1b61d84c0bf2 100644 --- a/caf-database-object-spi/src/main/java/io/iec/edp/caf/databaseobject/spi/ITableNameRuleManager.java +++ b/caf-database-object-spi/src/main/java/io/iec/edp/caf/databaseobject/spi/ITableNameRuleManager.java @@ -1,17 +1,15 @@ /* - * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd. - * + * Copyright © OpenAtom Foundation. * 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 - * + * 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. + * 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. + * */ package io.iec.edp.caf.databaseobject.spi; diff --git a/caf-dimension-api/pom.xml b/caf-dimension-api/pom.xml index b329361ee1e83f9d65bc164909438fbdfa680bee..aee20b9953dca8a100f59837cb086e051147e604 100644 --- a/caf-dimension-api/pom.xml +++ b/caf-dimension-api/pom.xml @@ -1,18 +1,16 @@ caf-database-object io.iec.edp - 0.2.10 + 0.3.0 4.0.0 jar diff --git a/caf-dimension-api/src/main/java/io/iec/edp/caf/dimension/api/entity/DimensionEntity.java b/caf-dimension-api/src/main/java/io/iec/edp/caf/dimension/api/entity/DimensionEntity.java index e3d4fd219809eee48ee2d7ee44ccd4588e51f4c5..ae929f09529a7bf28e423b0bf32ac69df9479c4a 100644 --- a/caf-dimension-api/src/main/java/io/iec/edp/caf/dimension/api/entity/DimensionEntity.java +++ b/caf-dimension-api/src/main/java/io/iec/edp/caf/dimension/api/entity/DimensionEntity.java @@ -1,17 +1,15 @@ /* - * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd. - * + * Copyright © OpenAtom Foundation. * 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 - * + * 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. + * 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. + * */ package io.iec.edp.caf.dimension.api.entity;