Klasse ImportAdapterJDBC

java.lang.Object
org.deidentifier.arx.io.ImportAdapter
org.deidentifier.arx.io.ImportAdapterJDBC
Alle implementierten Schnittstellen:
Iterator<String[]>

public class ImportAdapterJDBC extends ImportAdapter
Import adapter for JDBC This adapter can import data from JDBC sources. The source itself is described by an appropriate ImportConfigurationJDBC object.
  • Konstruktordetails

    • ImportAdapterJDBC

      protected ImportAdapterJDBC(ImportConfigurationJDBC config) throws IOException
      Creates a new instance of this object with given configuration.
      Parameter:
      config - config
      Löst aus:
      IOException - In case of communication errors with JDBC
  • Methodendetails

    • getLength

      public Integer getLength()
      Beschreibung aus Klasse kopiert: ImportAdapter
      Returns the number of records, if available, null otherwise
      Setzt außer Kraft:
      getLength in Klasse ImportAdapter
      Gibt zurück:
    • getProgress

      public int getProgress()
      Returns the percentage of data that has already been returned This divides the number of rows that have already been returned by the number of total rows and casts the result into a percentage. In case of an SQLException 0 will be returned.
      Angegeben von:
      getProgress in Klasse ImportAdapter
      Gibt zurück:
    • hasNext

      public boolean hasNext()
      Indicates whether there is another element to return This returns true when there is another element in the result set resultSet.
      Gibt zurück:
    • next

      public String[] next()
    • remove

      public void remove()
      Dummy.
    • getIndexesToImport

      protected int[] getIndexesToImport()
      Returns an array with indexes of columns that should be imported Only columns listed within
      Ungültige Referenz
      #column
      will be imported. This iterates over the list of columns and returns an array with indexes of columns that should be imported.
      Gibt zurück:
      Array containing indexes of columns that should be imported