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 eb5516301eebb38461c1af32a9b48ab4ee6565c4..f33307cce01ea8569f1715c4677d93ef4d2987db 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,15 +1,17 @@ /* - * Copyright © OpenAtom Foundation. + * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd. + * * 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 +110,7 @@ public class DBInfo { if (url == null || url.length() <= 0) { switch (dbType) { case DM: - url = "jdbc:dm://" + server + ":" + port; + url = "jdbc:dm://" + server + ":" + port + "/DMSERVER?schema=" + dbName; break; case PgSQL: url = "jdbc:postgresql://" + server + ":" + port + "/" + dbName; @@ -137,6 +139,12 @@ public class DBInfo { case OpenGauss: url = "jdbc:opengauss://" + server + ":" + port + "/" + dbName+"?batchMode=off&loggerLevel=OFF"; break; + case GBase8s: + url = "jdbc:gbase8s://" + server + ":" + port + "/" + dbName+"?batchMode=off&loggerLevel=OFF"; + break; + case GBase8c: + url = "jdbc:gbase8c://" + 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/DbType.java b/caf-database-object-api/src/main/java/io/iec/edp/caf/databaseobject/api/entity/DbType.java index 93d81662f9cc37f4f99e87442c3f42ea2eab7aa6..9053d3288a03fb521bde1e1b2730445df6bcbdde 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,15 +1,17 @@ /* - * Copyright © OpenAtom Foundation. + * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd. + * * 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; @@ -70,5 +72,15 @@ public enum DbType { /** * OpenGauss */ - OpenGauss + OpenGauss, + + /** + * gbase8s + */ + GBase8s, + + /** + * gbase8c + */ + GBase8c }