public class DbToKeel extends Importer
DbToKeel
This class extends from the Importer class. It is used to read data from a SQL database table and transform them to the KEEL format.processHeader
Constructor and Description |
---|
DbToKeel(java.lang.String driverNameUser,
java.lang.String databaseURLUser,
java.lang.String tableNameUser,
java.lang.String loginUser,
java.lang.String passwordUser)
DbToKeel class Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
Start(java.lang.String pathnameOutput)
Method used to transform the data from the SQL database table to
KEEL format file which will be stored in the second file given.
|
DataType, Save, setProcessHeader, UcFirst
public DbToKeel(java.lang.String driverNameUser, java.lang.String databaseURLUser, java.lang.String tableNameUser, java.lang.String loginUser, java.lang.String passwordUser)
driverNameUser
- driver value to make the connection with the database.databaseURLUser
- database URL with the format jdbc:subprotocol:subname.tableNameUser
- table name to read and transform.loginUser
- Database user login.passwordUser
- user password.public void Start(java.lang.String pathnameOutput) throws java.lang.Exception
pathnameOutput
- KEEL file path.java.lang.Exception
- if the files can not be read or written or the connection can not be done.