sqoop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b...@apache.org
Subject git commit: SQOOP-799 Change SqoopConnector interface to abstract class (Jarek Jarcec Cecho)
Date Wed, 26 Dec 2012 22:41:40 GMT
Updated Branches:
  refs/heads/sqoop2 46b50e3f6 -> f55b13203


SQOOP-799 Change SqoopConnector interface to abstract class
(Jarek Jarcec Cecho)


Project: http://git-wip-us.apache.org/repos/asf/sqoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/sqoop/commit/f55b1320
Tree: http://git-wip-us.apache.org/repos/asf/sqoop/tree/f55b1320
Diff: http://git-wip-us.apache.org/repos/asf/sqoop/diff/f55b1320

Branch: refs/heads/sqoop2
Commit: f55b132035f042f24a1052da56da570fc91bae7f
Parents: 46b50e3
Author: Bilung Lee <blee@apache.org>
Authored: Wed Dec 26 14:30:42 2012 -0800
Committer: Bilung Lee <blee@apache.org>
Committed: Wed Dec 26 14:30:42 2012 -0800

----------------------------------------------------------------------
 .../sqoop/connector/jdbc/GenericJdbcConnector.java |    2 +-
 .../apache/sqoop/connector/spi/SqoopConnector.java |   16 +++++++-------
 2 files changed, 9 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/sqoop/blob/f55b1320/connector/connector-generic-jdbc/src/main/java/org/apache/sqoop/connector/jdbc/GenericJdbcConnector.java
----------------------------------------------------------------------
diff --git a/connector/connector-generic-jdbc/src/main/java/org/apache/sqoop/connector/jdbc/GenericJdbcConnector.java
b/connector/connector-generic-jdbc/src/main/java/org/apache/sqoop/connector/jdbc/GenericJdbcConnector.java
index ea92d0c..c315e48 100644
--- a/connector/connector-generic-jdbc/src/main/java/org/apache/sqoop/connector/jdbc/GenericJdbcConnector.java
+++ b/connector/connector-generic-jdbc/src/main/java/org/apache/sqoop/connector/jdbc/GenericJdbcConnector.java
@@ -30,7 +30,7 @@ import org.apache.sqoop.connector.spi.SqoopConnector;
 import org.apache.sqoop.model.MJob;
 import org.apache.sqoop.validation.Validator;
 
-public class GenericJdbcConnector implements SqoopConnector {
+public class GenericJdbcConnector extends SqoopConnector {
 
   private static final Importer IMPORTER = new Importer(
       GenericJdbcImportInitializer.class,

http://git-wip-us.apache.org/repos/asf/sqoop/blob/f55b1320/spi/src/main/java/org/apache/sqoop/connector/spi/SqoopConnector.java
----------------------------------------------------------------------
diff --git a/spi/src/main/java/org/apache/sqoop/connector/spi/SqoopConnector.java b/spi/src/main/java/org/apache/sqoop/connector/spi/SqoopConnector.java
index dc08675..540303a 100644
--- a/spi/src/main/java/org/apache/sqoop/connector/spi/SqoopConnector.java
+++ b/spi/src/main/java/org/apache/sqoop/connector/spi/SqoopConnector.java
@@ -28,40 +28,40 @@ import org.apache.sqoop.validation.Validator;
 /**
  * Service provider interface for Sqoop Connectors.
  */
-public interface SqoopConnector {
+public abstract class SqoopConnector {
 
   /**
    * Retrieve connector version.
    *
    * @return Version encoded as a string
    */
-  String getVersion();
+  public abstract String getVersion();
 
   /**
    * @param locale
    * @return the resource bundle associated with the given locale.
    */
-  ResourceBundle getBundle(Locale locale);
+  public abstract ResourceBundle getBundle(Locale locale);
 
   /**
    * @return Get connection configuration class
    */
-  Class getConnectionConfigurationClass();
+  public abstract Class getConnectionConfigurationClass();
 
   /**
    * @return Get job configuration class for given type or null if not supported
    */
-  Class getJobConfigurationClass(MJob.Type jobType);
+  public abstract Class getJobConfigurationClass(MJob.Type jobType);
 
   /**
    * @return an <tt>Importer</tt> that provides classes for performing import.
    */
-  Importer getImporter();
+  public abstract Importer getImporter();
 
   /**
    * @return an <tt>Exporter</tt> that provides classes for performing export.
    */
-  Exporter getExporter();
+  public abstract Exporter getExporter();
 
   /**
    * Returns validation object that Sqoop framework can use to validate user
@@ -70,6 +70,6 @@ public interface SqoopConnector {
    *
    * @return Validator object
    */
-  Validator getValidator();
+  public abstract Validator getValidator();
 
 }


Mime
View raw message