提交 c18cc094 编写于 作者: J jurgen

DB2 managable driver

Former-commit-id: d9c71350
上级 6f2c31e0
......@@ -181,7 +181,7 @@ public class DriverDescriptor extends AbstractDescriptor implements DBPDriver
this.origFiles.addAll(this.files);
for (IConfigurationElement lib : config.getChildren(RegistryConstants.TAG_FILE_SOURCE)) {
this.fileSources.add(new DriverFileSource(this, lib));
this.fileSources.add(new DriverFileSource(lib));
}
this.iconPlain = iconToImage(config.getAttribute(RegistryConstants.ATTR_ICON));
......
......@@ -48,15 +48,15 @@ public class DriverFileSource
}
}
private final DriverDescriptor driver;
private final String url;
private final String name;
private final String instructions;
private final List<FileInfo> files = new ArrayList<FileInfo>();
DriverFileSource(DriverDescriptor driver, IConfigurationElement config) {
this.driver = driver;
DriverFileSource(IConfigurationElement config) {
this.url = config.getAttribute(RegistryConstants.ATTR_URL);
this.name = config.getAttribute(RegistryConstants.ATTR_NAME);
this.instructions = config.getAttribute("instructions");
for (IConfigurationElement cfg : config.getChildren(RegistryConstants.TAG_FILE)) {
files.add(new FileInfo(cfg));
}
......@@ -70,6 +70,10 @@ public class DriverFileSource
return name;
}
public String getInstructions() {
return instructions;
}
public List<FileInfo> getFiles() {
return files;
}
......
......@@ -358,7 +358,9 @@
<property name="@dbeaver-default-dataformat.type.timestamp.pattern" value="yyyy-MM-dd-HH.mm.ss.ffffff"/>
<fileSource url="https://www-304.ibm.com/support/docview.wss?rs=4020&amp;uid=swg21385217" name="DB2 10.5 GA drivers" description="">
<fileSource url="https://www-304.ibm.com/support/docview.wss?rs=4020&amp;uid=swg21385217"
name="DB2 10.5 GA drivers"
instruction="Download JDBC (JCC) client driver. Extract downloaded archive and copy db2jcc4.jar in some directory. Then add db2jcc4.jar as a library in DBeaver driver editor dialog.">
<file name="db2jcc4.jar" description="JDBC driver"/>
</fileSource>
</driver>
......
......@@ -181,6 +181,12 @@
<parameter name="query-get-active-db" value="SELECT CURRENT_SCHEMA FROM SYSIBM.SYSDUMMY1"/>
<parameter name="query-set-active-db" value="SET SCHEMA ?"/>
<fileSource url="https://www-304.ibm.com/support/docview.wss?rs=4020&amp;uid=swg21385217"
name="DB2 10.5 GA drivers"
instruction="Download JDBC (JCC) client driver. Extract downloaded archive and copy db2jcc4.jar in some directory. Then add db2jcc4.jar as a library in DBeaver driver editor dialog.">
<file name="db2jcc4.jar" description="JDBC driver"/>
</fileSource>
</driver>
<driver
......@@ -201,6 +207,12 @@
<parameter name="query-get-active-db" value="SELECT CURRENT_SCHEMA FROM SYSIBM.SYSDUMMY1"/>
<parameter name="query-set-active-db" value="SET SCHEMA ?"/>
<fileSource url="https://www-304.ibm.com/support/docview.wss?rs=4020&amp;uid=swg21385217"
name="DB2 drivers"
instruction="Download JDBC (JCC) client driver. Extract downloaded archive and copy db2jcc4.jar in some directory. Then add db2jcc4.jar as a library in DBeaver driver editor dialog.">
<file name="db2jcc4.jar" description="JDBC driver"/>
</fileSource>
</driver>
<driver
id="db2_zos"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册