se.kmr.scam.local.pool.postgre
Class PostgreConnectionFactory

java.lang.Object
  extended byse.kmr.scam.local.pool.postgre.PostgreConnectionFactory
All Implemented Interfaces:
ConnectionFactory

public class PostgreConnectionFactory
extends Object
implements ConnectionFactory

A ConnectionFactory for the JDBC-Postgre bridge.

Version:
$Revision: 1.3 $

Field Summary
protected  String dsname
           
protected  String pwd
           
protected  String username
           
 
Constructor Summary
PostgreConnectionFactory(String dsname, String username, String pwd)
          Creates a new PostgreConnectionFactory
 
Method Summary
 Connection createInstance()
          Creates a connection without Auto Commit.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dsname

protected String dsname

username

protected String username

pwd

protected String pwd
Constructor Detail

PostgreConnectionFactory

public PostgreConnectionFactory(String dsname,
                                String username,
                                String pwd)
                         throws PoolException
Creates a new PostgreConnectionFactory

Parameters:
dsname - the data source name
username - database user
pwd - database password
Throws:
PoolException - if the driver class cannot be loaded
Method Detail

createInstance

public Connection createInstance()
                          throws SQLException
Creates a connection without Auto Commit.

Specified by:
createInstance in interface ConnectionFactory
Returns:
the connection object or null if it cannot be created.
Throws:
SQLException


Copyright © 2003 SCAM. All Rights Reserved.