at.glawar
GlawarDataAdapter [2006-07-04]

at.glawar.gladataadapter
Class GLAMSSQLDataAdapter

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

public class GLAMSSQLDataAdapter
extends Object

Provides methods for creating a database connection to a Microsoft's SQL-Server 2000 or 2005.

A Microsoft SQL Server 2005 JDBC Driver is needed (sqljdbc_1.0.809.102_enu.tar.gz) from e. g. http://msdn.microsoft.com/data/jdbc/

Since:
2006-06-14
Version:
$Revision: 1.1 $ ($Date: 2006/06/16 14:37:52 $)
Author:
DI Franz-Peter Glawar last modified by: $Author: frahunz $, software.glawar.at

Constructor Summary
GLAMSSQLDataAdapter(String strServer, String strPort, String strDatabaseName, String strUsername, String strUserPassword, String strApplicationName, String strInstanceName)
          initializes a new instance of GLAMSSQLDataAdapter.
 
Method Summary
 Connection getConnection()
          get a new connection to Microsoft's SQL-Server.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GLAMSSQLDataAdapter

public GLAMSSQLDataAdapter(String strServer,
                           String strPort,
                           String strDatabaseName,
                           String strUsername,
                           String strUserPassword,
                           String strApplicationName,
                           String strInstanceName)
                    throws SQLException,
                           Exception

initializes a new instance of GLAMSSQLDataAdapter.

Parameters:
strServer - server (e. g. JTIMEMYWELLNESS)
strPort - port (e. g. 1433)
strDatabaseName - name of the database (e. g. PACODB)
strUsername - username
strUserPassword - password
strApplicationName - name of the application
strInstanceName - instance name (e. g. SQLEXPRESS)
Throws:
SQLException - if an error occured
Exception - if an error with the driver occured
Since:
2006-06-14
Method Detail

getConnection

public Connection getConnection()
                         throws SQLException

get a new connection to Microsoft's SQL-Server.

Returns:
gets either a valid connection of null
Throws:
SQLException - if an error occured
Since:
2006-06-14

software.glawar.at

Developed by software.glawar.at