diff options
author | Michael Stahl <mstahl@redhat.com> | 2015-11-16 14:43:14 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-11-17 10:20:33 +0100 |
commit | 95af641c81a67103849385b0f8e7b4953efcef0e (patch) | |
tree | 5d57289b83128a59999cd65a69698b38d577309c /odk | |
parent | eca4c54e52363f80db26e228e586aeb7732c7100 (diff) |
remove vestigial Adabas D references in tests etc.
Adabas D connector was removed in 8256eb0205fcddb79a67be13d6507b2653ff5e08
Change-Id: Ie142763ac32728c1596c196d919cbe84e6735c96
Diffstat (limited to 'odk')
-rw-r--r-- | odk/examples/DevelopersGuide/Database/sdbcx.java | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/odk/examples/DevelopersGuide/Database/sdbcx.java b/odk/examples/DevelopersGuide/Database/sdbcx.java index 26813ff08dc3..78a9eb71225d 100644 --- a/odk/examples/DevelopersGuide/Database/sdbcx.java +++ b/odk/examples/DevelopersGuide/Database/sdbcx.java @@ -110,24 +110,23 @@ public class sdbcx public void createConnection() throws com.sun.star.uno.Exception { // create the Driver with the implementation name - Object aDriver = xORB.createInstance("com.sun.star.comp.sdbcx.adabas.ODriver"); + Object aDriver = xORB.createInstance("org.openoffice.comp.connectivity.pq.Driver.noext"); // query for the interface com.sun.star.sdbc.XDriver xDriver; xDriver = UnoRuntime.queryInterface(XDriver.class,aDriver); if(xDriver != null) { // first create the needed url - String adabasURL = "sdbc:adabas::MYDB0"; + String URL = "sdbc:postgresql:dbname=MYDB0"; // second create the necessary properties - com.sun.star.beans.PropertyValue [] adabasProps = new com.sun.star.beans.PropertyValue[] + com.sun.star.beans.PropertyValue [] Props = new com.sun.star.beans.PropertyValue[] { new com.sun.star.beans.PropertyValue("user",0,"test1",com.sun.star.beans.PropertyState.DIRECT_VALUE), new com.sun.star.beans.PropertyValue("password",0,"test1",com.sun.star.beans.PropertyState.DIRECT_VALUE) }; - - // now create a connection to adabas - con = xDriver.connect(adabasURL,adabasProps); + // now create a connection to the database + con = xDriver.connect(URL, Props); if(con != null) { System.out.println("Connection could be created!"); |