at.glawar.gladataadapter
Class GLAMySQLDataAdapter
java.lang.Object
at.glawar.gladataadapter.GLAMySQLDataAdapter
- public class GLAMySQLDataAdapter
- extends Object
Provides methods for creating a database connection to a MySQL
database.
A Firebird-JDBC-driver is needed
(Firebird_4_JCA_JDBC_Jaybird_v1_5_5_for_JDK_1_4.jar)
from e. g.
http://www.firebirdsql.org
- Since:
- GLADataAdapter 0.8
- Version:
- $Revision: 1.2 $ ($Date: 2006/06/01 18:28:36 $)
- Author:
- DI Franz-Peter Glawar last modified by: $Author: frahunz $,
software.glawar.at
GLAMySQLDataAdapter
public GLAMySQLDataAdapter(String strServer,
int iPort,
String strDatabaseName,
String strUsername,
String strUserPassword)
throws SQLException,
Exception
- initializes a new instance of GLAFirebirdDataAdapter
- Parameters:
strServer - server (e. g. localhost)iPort - port (e. g. 3306)strDatabaseName - name and path of the database (e. g. test)strUsername - usernamestrUserPassword - password
- Throws:
SQLException - if an error occured
Exception - if an error with the driver occured- Since:
- GLADataAdapter 0.8
getConnection
public Connection getConnection()
throws SQLException
- Returns:
- gets either a valid connection of
null
- Throws:
SQLException - if an error occured- Since:
- GLADataAdapter 0.8
Developed by software.glawar.at