at.glawar
GlawarDataAdapter [2006-07-04]

at.glawar.gladataadapter
Class GLAFirebirdDataAdapter

java.lang.Object
  extended byat.glawar.gladataadapter.GLAFirebirdDataAdapter

public class GLAFirebirdDataAdapter
extends Object

Provides methods for creating a database connection to a Firebird 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.4 $ ($Date: 2006/07/04 18:48:56 $)
Author:
DI Franz-Peter Glawar last modified by: $Author: frahunz $, software.glawar.at

Constructor Summary
GLAFirebirdDataAdapter(String strServer, int iPort, String strDatabaseName, String strUsername, String strUserPassword)
          initializes a new instance of GLAFirebirdDataAdapter
GLAFirebirdDataAdapter(String strServer, int iPort, String strDatabaseName, String strUsername, String strUserPassword, String strDialect, String strCharset)
          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

GLAFirebirdDataAdapter

public GLAFirebirdDataAdapter(String strServer,
                              int iPort,
                              String strDatabaseName,
                              String strUsername,
                              String strUserPassword)
                       throws SQLException
initializes a new instance of GLAFirebirdDataAdapter

Parameters:
strServer - server (e. g. localhost)
iPort - port (e. g. 3050)
strDatabaseName - name and path of the database (e. g. D:/Firebird.dbs/GLA-PB.GLA)
strUsername - username
strUserPassword - password
Throws:
SQLException - if an error occured
Since:
GLADataAdapter 0.8

GLAFirebirdDataAdapter

public GLAFirebirdDataAdapter(String strServer,
                              int iPort,
                              String strDatabaseName,
                              String strUsername,
                              String strUserPassword,
                              String strDialect,
                              String strCharset)
                       throws SQLException
initializes a new instance of GLAFirebirdDataAdapter

Parameters:
strServer - server (e. g. localhost)
iPort - port (e. g. 3050)
strDatabaseName - name and path of the database (e. g. D:/Firebird.dbs/GLA-PB.GLA)
strUsername - username
strUserPassword - password
strDialect - dialect (e. g. 3)
strCharset - (e. g. ISO8859_1)
Throws:
SQLException - if an error occured
Since:
2006-07-04
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