db-ddlutils-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject svn commit: r412311 - in /db/ddlutils/trunk/src/java/org/apache/ddlutils: PlatformUtils.java platform/db2/Db2Platform.java
Date Wed, 07 Jun 2006 07:28:23 GMT
Author: tomdz
Date: Wed Jun  7 00:28:23 2006
New Revision: 412311

URL: http://svn.apache.org/viewvc?rev=412311&view=rev
Log:
Added the registration of the JDBC driver and subprotocol for the JTOpen driver

Modified:
    db/ddlutils/trunk/src/java/org/apache/ddlutils/PlatformUtils.java
    db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/db2/Db2Platform.java

Modified: db/ddlutils/trunk/src/java/org/apache/ddlutils/PlatformUtils.java
URL: http://svn.apache.org/viewvc/db/ddlutils/trunk/src/java/org/apache/ddlutils/PlatformUtils.java?rev=412311&r1=412310&r2=412311&view=diff
==============================================================================
--- db/ddlutils/trunk/src/java/org/apache/ddlutils/PlatformUtils.java (original)
+++ db/ddlutils/trunk/src/java/org/apache/ddlutils/PlatformUtils.java Wed Jun  7 00:28:23
2006
@@ -141,6 +141,7 @@
         jdbcSubProtocolToPlatform.put(Db2Platform.JDBC_SUBPROTOCOL,                     
       Db2Platform.DATABASENAME);
         jdbcSubProtocolToPlatform.put(Db2Platform.JDBC_SUBPROTOCOL_OS390_1,             
       Db2Platform.DATABASENAME);
         jdbcSubProtocolToPlatform.put(Db2Platform.JDBC_SUBPROTOCOL_OS390_2,             
       Db2Platform.DATABASENAME);
+        jdbcSubProtocolToPlatform.put(Db2Platform.JDBC_SUBPROTOCOL_JTOPEN,              
       Db2Platform.DATABASENAME);
         jdbcSubProtocolToPlatform.put(PlatformUtils.JDBC_SUBPROTOCOL_DATADIRECT_DB2,    
       Db2Platform.DATABASENAME);
         jdbcSubProtocolToPlatform.put(PlatformUtils.JDBC_SUBPROTOCOL_INET_DB2,          
       Db2Platform.DATABASENAME);
         jdbcSubProtocolToPlatform.put(DerbyPlatform.JDBC_SUBPROTOCOL,                   
       DerbyPlatform.DATABASENAME);
@@ -185,6 +186,7 @@
         jdbcDriverToPlatform.put(Db2Platform.JDBC_DRIVER,                         Db2Platform.DATABASENAME);
         jdbcDriverToPlatform.put(Db2Platform.JDBC_DRIVER_OLD1,                    Db2Platform.DATABASENAME);
         jdbcDriverToPlatform.put(Db2Platform.JDBC_DRIVER_OLD2,                    Db2Platform.DATABASENAME);
+        jdbcDriverToPlatform.put(Db2Platform.JDBC_DRIVER_JTOPEN,                  Db2Platform.DATABASENAME);
         jdbcDriverToPlatform.put(PlatformUtils.JDBC_DRIVER_DATADIRECT_DB2,        Db2Platform.DATABASENAME);
         jdbcDriverToPlatform.put(PlatformUtils.JDBC_DRIVER_INET_DB2,              Db2Platform.DATABASENAME);
         jdbcDriverToPlatform.put(DerbyPlatform.JDBC_DRIVER_EMBEDDED,              DerbyPlatform.DATABASENAME);

Modified: db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/db2/Db2Platform.java
URL: http://svn.apache.org/viewvc/db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/db2/Db2Platform.java?rev=412311&r1=412310&r2=412311&view=diff
==============================================================================
--- db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/db2/Db2Platform.java (original)
+++ db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/db2/Db2Platform.java Wed Jun 
7 00:28:23 2006
@@ -30,19 +30,23 @@
 public class Db2Platform extends PlatformImplBase
 {
     /** Database name of this platform. */
-    public static final String DATABASENAME     = "DB2";
+    public static final String DATABASENAME       = "DB2";
     /** The standard DB2 jdbc driver. */
-    public static final String JDBC_DRIVER      = "com.ibm.db2.jcc.DB2Driver";
+    public static final String JDBC_DRIVER        = "com.ibm.db2.jcc.DB2Driver";
     /** Older name for the jdbc driver. */
-    public static final String JDBC_DRIVER_OLD1 = "COM.ibm.db2.jdbc.app.DB2Driver";
+    public static final String JDBC_DRIVER_OLD1   = "COM.ibm.db2.jdbc.app.DB2Driver";
     /** Older name for the jdbc driver. */
-    public static final String JDBC_DRIVER_OLD2 = "COM.ibm.db2os390.sqlj.jdbc.DB2SQLJDriver";
+    public static final String JDBC_DRIVER_OLD2   = "COM.ibm.db2os390.sqlj.jdbc.DB2SQLJDriver";
+    /** The JTOpen JDBC Driver. */
+    public static final String JDBC_DRIVER_JTOPEN = "com.ibm.as400.access.AS400JDBCDriver";
     /** The subprotocol used by the standard DB2 driver. */
     public static final String JDBC_SUBPROTOCOL = "db2";
     /** An alternative subprotocol used by the standard DB2 driver on OS/390. */
     public static final String JDBC_SUBPROTOCOL_OS390_1 = "db2os390";
     /** An alternative subprotocol used by the standard DB2 driver on OS/390. */
     public static final String JDBC_SUBPROTOCOL_OS390_2 = "db2os390sqlj";
+    /** An alternative subprotocol used by the JTOpen driver on OS/400. */
+    public static final String JDBC_SUBPROTOCOL_JTOPEN = "as400";
 
     /**
      * Creates a new platform instance.



Mime
View raw message