public class ImportAdapterJDBC extends ImportAdapter
ImportConfigurationJDBC
object.dataTypes, header, indexes
Modifier | Constructor and Description |
---|---|
protected |
ImportAdapterJDBC(ImportConfigurationJDBC config)
Creates a new instance of this object with given configuration.
|
Modifier and Type | Method and Description |
---|---|
protected int[] |
getIndexesToImport()
Returns an array with indexes of columns that should be imported
Only columns listed within
#column will be imported. |
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.
|
boolean |
hasNext()
Indicates whether there is another element to return
This returns true when there is another element in the result set
resultSet . |
java.lang.String[] |
next() |
void |
remove()
Dummy.
|
create, getColumnDatatypes, getConfig, getHeader
protected ImportAdapterJDBC(ImportConfigurationJDBC config) throws java.io.IOException
config
- config
java.io.IOException
- In case of communication errors with JDBCpublic int getProgress()
SQLException
0 will be returned.getProgress
in class ImportAdapter
public boolean hasNext()
resultSet
.public java.lang.String[] next()
public void remove()
protected int[] getIndexesToImport()
#column
will be imported. This
iterates over the list of columns and returns an array with indexes of
columns that should be imported.