From 74eed913364cf67ba4193d37f3bafc615aedc789 Mon Sep 17 00:00:00 2001 From: xuefengping02 Date: Mon, 10 Jul 2023 15:14:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BB=A3=E7=A0=81=E5=88=B0?= =?UTF-8?q?=E6=9C=80=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- caf-database-object-api/pom.xml | 12 ++--- .../api/configuration/BaseConfig.java | 10 ++-- .../DatabaseObjectConfiguration.java | 10 ++-- .../DatabaseObjectConfigurationLoader.java | 10 ++-- .../api/configuration/FileUtils.java | 54 ++++++++++++++++--- .../ObjectNameMaxLengthConfiguration.java | 10 ++-- .../ObjectNameMaxLengthLoader.java | 10 ++-- .../api/configuration/SQLReflector.java | 10 ++-- .../configuration/TableNameConfiguration.java | 10 ++-- .../TableNameConfigurationLoader.java | 10 ++-- .../DBODataTypeConfigurationLoader.java | 10 ++-- .../datatype/DataTypeMapping.java | 10 ++-- .../DatabaseObjectDataTypeConfiguration.java | 14 +++-- .../deplpyconfig/DboDeployConfiguration.java | 10 ++-- .../DboDeployConfigurationLoader.java | 10 ++-- .../funcmapping/DBOFuncMappingLoader.java | 10 ++-- .../DatabaseFuncConfiguration.java | 10 ++-- .../funcmapping/DatabaseFuncMapping.java | 10 ++-- .../api/context/DatabaseObjectContext.java | 10 ++-- .../context/DatabaseObjectReservedWords.java | 10 ++-- .../api/context/DatabaseReservedWords.java | 10 ++-- .../api/context/ReservedColumns.java | 10 ++-- .../api/entity/AbstractDatabaseObject.java | 10 ++-- .../api/entity/ColumnChangeOperation.java | 10 ++-- .../api/entity/ColumnOperation.java | 10 ++-- .../caf/databaseobject/api/entity/DBInfo.java | 15 +++--- .../api/entity/DBOTableNameRule.java | 10 ++-- .../databaseobject/api/entity/DataType.java | 12 ++--- .../api/entity/DatabaseObjectColumn.java | 10 ++-- .../api/entity/DatabaseObjectIndex.java | 10 ++-- .../api/entity/DatabaseObjectInfo.java | 10 ++-- .../api/entity/DatabaseObjectTable.java | 10 ++-- .../api/entity/DatabaseObjectTableCore.java | 10 ++-- .../api/entity/DatabaseObjectTempTable.java | 10 ++-- .../api/entity/DatabaseObjectType.java | 12 ++--- .../api/entity/DatabaseObjectView.java | 10 ++-- .../entity/DatabaseObjectViewDefinition.java | 10 ++-- .../caf/databaseobject/api/entity/DbType.java | 17 +++--- .../api/entity/DboDeployResultInfo.java | 10 ++-- .../api/entity/DboTableChangeInfo.java | 10 ++-- .../entity/DimensionStrategyWithOrder.java | 10 ++-- .../api/entity/DimensionValueEntity.java | 10 ++-- .../api/entity/GspDatabaseObject.java | 22 +++++--- .../GspDatabaseObjectColumnMapping.java | 43 +++++++++++++++ .../api/entity/GspDatabaseObjectDT.java | 10 ++-- .../api/entity/GspDatabaseObjectMapping.java | 39 ++++++++++++++ .../databaseobject/api/entity/ScopeType.java | 10 ++-- .../api/entity/TempTableContext.java | 10 ++-- .../api/entity/ViewDefination.java | 10 ++-- .../api/exception/DboException.java | 10 ++-- .../api/helper/DboConfigurationHelper.java | 10 ++-- .../service/IDatabaseObjectDeployService.java | 21 +++++--- .../api/service/IDatabaseObjectDtService.java | 10 ++-- .../service/IDatabaseObjectExportService.java | 10 ++-- .../api/service/IDatabaseObjectRtService.java | 42 +++++++++++---- .../api/service/IDatabaseObjectService.java | 10 ++-- .../IDatabaseObjectTempTableService.java | 10 ++-- .../test/java/ConfigurationgLoaderTest.java | 10 ++-- caf-database-object-spi/pom.xml | 12 ++--- .../spi/ITableNameRuleManager.java | 10 ++-- caf-dimension-api/pom.xml | 12 ++--- .../dimension/api/entity/DimensionEntity.java | 10 ++-- 62 files changed, 433 insertions(+), 374 deletions(-) create mode 100644 caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/GspDatabaseObjectColumnMapping.java create mode 100644 caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/GspDatabaseObjectMapping.java diff --git a/caf-database-object-api/pom.xml b/caf-database-object-api/pom.xml index c0e79fa..bf8a014 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 35ab110..85061ea 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 a8fe54f..d3f73f3 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 4c7b33e..6415680 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 6d5feac..75b5b5d 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 855c042..c874813 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 0af23eb..51f093d 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 38508ed..0088892 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 b34a79f..e859abe 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 81b8cc0..a887cb3 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 6024c0c..c1da0ce 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 bb67115..7deec82 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 fc5d375..dccd022 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 2ad058b..35d6de2 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 396829b..42cf81e 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 5c6d396..d2dc7bb 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 ab85ddf..a4f67e9 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 6b18c2e..d1b2b6a 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 c7d263d..bae35b0 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 6e90893..4776809 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 e5d448a..3722073 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 d9f98e7..407e5e2 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 9f6f51b..0bf0ee2 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 92aad59..a31eb67 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 fadbc7b..c3f530a 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 7828a66..eb55163 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 b0ef451..bf7172e 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 e43a673..2d5d39d 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 b1a5e1b..2216694 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 be7d1b4..a21b4f2 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 9c3aab9..ef7bba8 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 3cf7828..e7505fb 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 7232143..3264900 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 2f6d43d..989e892 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 aa47ee5..2891621 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 bffe460..daa4c91 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 9ecaf7d..e331226 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 5639e33..93d8166 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 1007b25..699d9dd 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 44ef683..8551b58 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 01306ff..fee5557 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 796d810..799302c 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 ada1bff..07f5e01 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 0000000..d300a3e --- /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 a759a9f..4212f04 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 0000000..c8f7972 --- /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 d4c26aa..eafdcb4 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 c418640..82c526c 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 6689bb7..90949f6 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 815bed8..0226a3d 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 7138cc7..7a97619 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 8fdcb0c..5b3c060 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 0c12ad8..9167dcf 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 7a0edb6..fc2a85e 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 581356d..925c938 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 77690e7..7359196 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 9992baa..0b454bb 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 af7d497..1753d04 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 7714383..7a86cb5 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 bd46bf2..b9f601f 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 b329361..aee20b9 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 e3d4fd2..ae929f0 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; -- Gitee