db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject svn commit: r1195306 - in /db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/source: jdbc/JdbcMetadataSourceProvider.java stream/FileSourceProvider.java
Date Mon, 31 Oct 2011 02:03:11 GMT
Author: tfischer
Date: Mon Oct 31 02:03:10 2011
New Revision: 1195306

URL: http://svn.apache.org/viewvc?rev=1195306&view=rev
Log:
added a copy method for source providers which allows reusing them when iteration has already
begun

Modified:
    db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/source/jdbc/JdbcMetadataSourceProvider.java
    db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/source/stream/FileSourceProvider.java

Modified: db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/source/jdbc/JdbcMetadataSourceProvider.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/source/jdbc/JdbcMetadataSourceProvider.java?rev=1195306&r1=1195305&r2=1195306&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/source/jdbc/JdbcMetadataSourceProvider.java
(original)
+++ db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/source/jdbc/JdbcMetadataSourceProvider.java
Mon Oct 31 02:03:10 2011
@@ -202,4 +202,18 @@ public class JdbcMetadataSourceProvider 
     {
         return schema;
     }
+
+    /**
+     * {@inheritDoc}
+     */
+    public SourceProvider copy() throws ConfigurationException
+    {
+        JdbcMetadataSourceProvider result = new JdbcMetadataSourceProvider(
+                urlOption,
+                driverOption,
+                usernameOption,
+                passwordOption,
+                schemaOption);
+        return result;
+    }
 }

Modified: db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/source/stream/FileSourceProvider.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/source/stream/FileSourceProvider.java?rev=1195306&r1=1195305&r2=1195306&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/source/stream/FileSourceProvider.java
(original)
+++ db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/source/stream/FileSourceProvider.java
Mon Oct 31 02:03:10 2011
@@ -268,4 +268,15 @@ public class FileSourceProvider extends 
         }
         return Collections.unmodifiableList(paths);
     }
+
+    /**
+     * {@inheritDoc}
+     */
+    public SourceProvider copy() throws ConfigurationException
+    {
+        FileSourceProvider result = new FileSourceProvider(
+                sourceFormat,
+                sourceFileset);
+        return result;
+    }
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message