db-ddlutils-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject svn commit: r369523 - in /db/ddlutils/trunk/src: java/org/apache/ddlutils/platform/oracle/Oracle8Platform.java java/org/apache/ddlutils/platform/oracle/OracleModelReader.java test/jdbc.properties.oracle9
Date Mon, 16 Jan 2006 16:50:12 GMT
Author: tomdz
Date: Mon Jan 16 08:50:06 2006
New Revision: 369523

URL: http://svn.apache.org/viewcvs?rev=369523&view=rev
Log:
Started Oracle jdbc model reader

Added:
    db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/oracle/OracleModelReader.java
    db/ddlutils/trunk/src/test/jdbc.properties.oracle9
Modified:
    db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/oracle/Oracle8Platform.java

Modified: db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/oracle/Oracle8Platform.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/oracle/Oracle8Platform.java?rev=369523&r1=369522&r2=369523&view=diff
==============================================================================
--- db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/oracle/Oracle8Platform.java (original)
+++ db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/oracle/Oracle8Platform.java Mon
Jan 16 08:50:06 2006
@@ -87,6 +87,7 @@
         info.addDefaultSize(Types.VARCHAR, 254);
 
         setSqlBuilder(new OracleBuilder(info));
+        setModelReader(new OracleModelReader(info));
     }
 
     /**

Added: db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/oracle/OracleModelReader.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/oracle/OracleModelReader.java?rev=369523&view=auto
==============================================================================
--- db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/oracle/OracleModelReader.java
(added)
+++ db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/oracle/OracleModelReader.java
Mon Jan 16 08:50:06 2006
@@ -0,0 +1,42 @@
+package org.apache.ddlutils.platform.oracle;
+
+/*
+ * Copyright 2006 The Apache Software Foundation.
+ * 
+ * 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.
+ */
+
+import org.apache.ddlutils.PlatformInfo;
+import org.apache.ddlutils.platform.JdbcModelReader;
+
+/**
+ * Reads a database model from a Oracle database.
+ *
+ * @author Thomas Dudziak
+ * @version $Revision: $
+ */
+public class OracleModelReader extends JdbcModelReader
+{
+    /**
+     * Creates a new model reader for Oracle databases.
+     * 
+     * @param platformInfo The platform specific settings
+     */
+    public OracleModelReader(PlatformInfo platformInfo)
+    {
+        super(platformInfo);
+        setDefaultCatalogPattern(null);
+        setDefaultSchemaPattern(null);
+        setDefaultTablePattern("%");
+    }
+}

Added: db/ddlutils/trunk/src/test/jdbc.properties.oracle9
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/test/jdbc.properties.oracle9?rev=369523&view=auto
==============================================================================
--- db/ddlutils/trunk/src/test/jdbc.properties.oracle9 (added)
+++ db/ddlutils/trunk/src/test/jdbc.properties.oracle9 Mon Jan 16 08:50:06 2006
@@ -0,0 +1,16 @@
+# JDBC properties for Oracle9
+# Note: Properties starting with "datasource." will be fed into the datasource instance of
the
+# class configured via the datasource.class property
+
+# Use this property to choose the Oracle9 platform (instead of the Oracle8 default one)
+ddlutils.platform=Oracle9
+
+#
+# Using the plain DBCP datasource
+#
+
+datasource.class=org.apache.commons.dbcp.BasicDataSource
+datasource.driverClassName=oracle.jdbc.driver.OracleDriver
+datasource.url=jdbc:oracle:thin:@localhost:1521:ddlutilstest
+datasource.username=ddlutils
+datasource.password=ddlutils



Mime
View raw message