at.glawar
GlawarDataAdapter [2006-07-04]

at.glawar.gladataadapter
Class GLAMySQLDataAdapter

java.lang.Object
  extended byat.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

Constructor Summary
GLAMySQLDataAdapter(String strServer, int iPort, String strDatabaseName, String strUsername, String strUserPassword)
          initializes a new instance of GLAFirebirdDataAdapter
 
Method Summary
 Connection getConnection()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 - username
strUserPassword - password
Throws:
SQLException - if an error occured
Exception - if an error with the driver occured
Since:
GLADataAdapter 0.8
Method Detail

getConnection

public Connection getConnection()
                         throws SQLException
Returns:
gets either a valid connection of null
Throws:
SQLException - if an error occured
Since:
GLADataAdapter 0.8

software.glawar.at

Developed by software.glawar.at