Package org.deidentifier.arx.io
Klasse ImportAdapterJDBC
java.lang.Object
org.deidentifier.arx.io.ImportAdapter
org.deidentifier.arx.io.ImportAdapterJDBC
Import adapter for JDBC
This adapter can import data from JDBC sources. The source itself is
described by an appropriate
ImportConfigurationJDBC object.-
Feldübersicht
Von Klasse geerbte Felder org.deidentifier.arx.io.ImportAdapter
dataTypes, header, indexes -
Konstruktorübersicht
KonstruktorenModifiziererKonstruktorBeschreibungprotectedCreates a new instance of this object with given configuration. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected int[]Returns an array with indexes of columns that should be imported Only columns listed withinwill be imported.Ungültige Referenz
#columnReturns the number of records, if available, null otherwiseintReturns 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.booleanhasNext()Indicates whether there is another element to return This returns true when there is another element in the result setresultSet.String[]next()voidremove()Dummy.Von Klasse geerbte Methoden org.deidentifier.arx.io.ImportAdapter
create, getColumnDatatypes, getConfig, getHeaderVon Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden java.util.Iterator
forEachRemaining
-
Konstruktordetails
-
ImportAdapterJDBC
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
Beschreibung aus Klasse kopiert:ImportAdapterReturns the number of records, if available, null otherwise- Setzt außer Kraft:
getLengthin KlasseImportAdapter- 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 anSQLException0 will be returned.- Angegeben von:
getProgressin KlasseImportAdapter- 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 setresultSet.- Gibt zurück:
-
next
-
remove
public void remove()Dummy. -
getIndexesToImport
protected int[] getIndexesToImport()Returns an array with indexes of columns that should be imported Only columns listed withinwill be imported. This iterates over the list of columns and returns an array with indexes of columns that should be imported.Ungültige Referenz
#column- Gibt zurück:
- Array containing indexes of columns that should be imported
-