public class KeelToDb extends Exporter
KeelToDb
This class extends from the Exporter class. It is used to read data with KEEL format and transform them to a new SQL database table.Constructor and Description |
---|
KeelToDb(java.lang.String driverNameUser,
java.lang.String databaseURLUser,
java.lang.String tableNameUser,
java.lang.String loginUser,
java.lang.String passwordUser)
KeelToDb class Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
Save()
Method that creates the new SQL database table
using all the structures built by the start method of the Exporter class.
|
void |
Start(java.lang.String pathnameInput)
Method used to transform the data from the KEEL file given as parameter to
a new SQL database table.
|
java.lang.String |
UcFirst(java.lang.String line)
Sets as capital letter the first one of the line given as parameter.
|
public KeelToDb(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 pathnameInput) throws java.lang.Exception
public void Save() throws java.lang.Exception
java.lang.Exception
- if the connection can not be done.public java.lang.String UcFirst(java.lang.String line)
line
- line given.