public class MySqlDatabaseManager extends Object implements DatabaseManager
| Constructor and Description |
|---|
MySqlDatabaseManager(String jdbcUrl,
String userName,
String passWord) |
| Modifier and Type | Method and Description |
|---|---|
void |
disconnect() |
void |
execute(String sql) |
ResultSet |
executeQuery(String sql) |
void |
executeUpdate(File sqlFile) |
void |
executeUpdate(String sql) |
protected void |
finalize() |
Statement |
getStatement(String sql) |
public MySqlDatabaseManager(String jdbcUrl, String userName, String passWord) throws SQLException, ClassNotFoundException
SQLExceptionClassNotFoundExceptionpublic void executeUpdate(String sql) throws SQLException
executeUpdate in interface DatabaseManagersql - SQLExceptionpublic void executeUpdate(File sqlFile) throws SQLException, IOException
executeUpdate in interface DatabaseManagersqlFile - SQLExceptionIOExceptionpublic ResultSet executeQuery(String sql) throws SQLException
executeQuery in interface DatabaseManagersql - SQLExceptionpublic void execute(String sql) throws SQLException
execute in interface DatabaseManagersql - SQLExceptionpublic Statement getStatement(String sql) throws SQLException
getStatement in interface DatabaseManagersql - SQLExceptionpublic void disconnect()
throws SQLException
disconnect in interface DatabaseManagerSQLExceptionCopyright © 2014. All rights reserved.