public class MySQLConnector extends JDBCConnector
connectionId, connector, jdbcString
Constructor and Description |
---|
MySQLConnector(java.sql.Connection connector)
JDBC Constructor
|
MySQLConnector(java.lang.String url,
java.lang.String login,
java.lang.String password)
Instantiate a MySQL connector
|
Modifier and Type | Method and Description |
---|---|
void |
open()
Open connection to the database
|
close, commit, executePreparedQuery, executeQuery, isAutoCommit, isOpen, prepareStatement, query, queryPreparedStatement, rollback, setAutoCommit
public MySQLConnector(java.sql.Connection connector)
connector
- Connectorpublic MySQLConnector(java.lang.String url, java.lang.String login, java.lang.String password) throws java.lang.ClassNotFoundException
url
- MySQL Database URLlogin
- MySQL User Loginpassword
- MySQL User Passwordjava.lang.ClassNotFoundException
- Class not found exceptionpublic void open() throws java.sql.SQLException
open
in class JDBCConnector
java.sql.SQLException
- SQL Exception