forked from WeBankFinTech/Visualis
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1264 from RichardShan/dev-0.3
Dev-0.3 bug fix and rebuild source
- Loading branch information
Showing
19 changed files
with
530 additions
and
186 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* << | ||
* Davinci | ||
* == | ||
* Copyright (C) 2016 - 2019 EDP | ||
* == | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* >> | ||
* | ||
*/ | ||
|
||
package edp.core.model; | ||
|
||
import lombok.Data; | ||
|
||
@Data | ||
public class Dict { | ||
private String key; | ||
private String value; | ||
} |
108 changes: 108 additions & 0 deletions
108
server/src/main/java/edp/core/model/JdbcSourceInfo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
/* | ||
* << | ||
* Davinci | ||
* == | ||
* Copyright (C) 2016 - 2019 EDP | ||
* == | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* >> | ||
* | ||
*/ | ||
|
||
package edp.core.model; | ||
|
||
import lombok.Getter; | ||
|
||
import java.util.List; | ||
|
||
@Getter | ||
public class JdbcSourceInfo { | ||
private String jdbcUrl; | ||
|
||
private String username; | ||
|
||
private String password; | ||
|
||
private String database; | ||
|
||
private String dbVersion; | ||
|
||
private List<Dict> properties; | ||
|
||
private boolean ext; | ||
|
||
private JdbcSourceInfo(String jdbcUrl, String username, String password, String database, String dbVersion, List<Dict> properties, boolean ext) { | ||
this.jdbcUrl = jdbcUrl; | ||
this.username = username; | ||
this.password = password; | ||
this.database = database; | ||
this.dbVersion = dbVersion; | ||
this.properties = properties; | ||
this.ext = ext; | ||
} | ||
|
||
|
||
public static final class JdbcSourceInfoBuilder { | ||
private String jdbcUrl; | ||
private String username; | ||
private String password; | ||
private String database; | ||
private String dbVersion; | ||
private List<Dict> properties; | ||
private boolean ext; | ||
|
||
private JdbcSourceInfoBuilder() { | ||
} | ||
|
||
public static JdbcSourceInfoBuilder aJdbcSourceInfo() { | ||
return new JdbcSourceInfoBuilder(); | ||
} | ||
|
||
public JdbcSourceInfoBuilder withJdbcUrl(String jdbcUrl) { | ||
this.jdbcUrl = jdbcUrl; | ||
return this; | ||
} | ||
|
||
public JdbcSourceInfoBuilder withUsername(String username) { | ||
this.username = username; | ||
return this; | ||
} | ||
|
||
public JdbcSourceInfoBuilder withPassword(String password) { | ||
this.password = password; | ||
return this; | ||
} | ||
|
||
public JdbcSourceInfoBuilder withDatabase(String database) { | ||
this.database = database; | ||
return this; | ||
} | ||
|
||
public JdbcSourceInfoBuilder withDbVersion(String dbVersion) { | ||
this.dbVersion = dbVersion; | ||
return this; | ||
} | ||
|
||
public JdbcSourceInfoBuilder withProperties(List<Dict> dicts) { | ||
this.properties = dicts; | ||
return this; | ||
} | ||
|
||
public JdbcSourceInfoBuilder withExt(boolean ext) { | ||
this.ext = ext; | ||
return this; | ||
} | ||
|
||
public JdbcSourceInfo build() { | ||
return new JdbcSourceInfo(jdbcUrl, username, password, database, dbVersion, properties, ext); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.