se.kmr.scam.local.pool.postgre
Class PostgreConnectionFactory
java.lang.Object
se.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 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
dsname
protected String dsname
username
protected String username
pwd
protected String pwd
PostgreConnectionFactory
public PostgreConnectionFactory(String dsname,
String username,
String pwd)
throws PoolException
- Creates a new
PostgreConnectionFactory
- Parameters:
dsname
- the data source nameusername
- database userpwd
- database password
- Throws:
PoolException
- if the driver class cannot be loaded
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.