persistence.type
Class ConnectionFactory

java.lang.Object
  extended bypersistence.type.ConnectionFactory

public class ConnectionFactory
extends java.lang.Object

Factory for Connections.

Author:
bram 11-apr-2004

Field Summary
private static java.util.Properties props
           
 
Constructor Summary
ConnectionFactory()
           
 
Method Summary
 void closeConnection(java.sql.Connection connection)
          Signal to the factory that Connection isn't needed anymore.
 java.sql.Connection getConnection()
          Obtain a Connection.
static java.util.Properties getProperties()
          File called db.properties contains all needed info for setting up Connections.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

props

private static java.util.Properties props
Constructor Detail

ConnectionFactory

public ConnectionFactory()
Method Detail

getProperties

public static java.util.Properties getProperties()
File called db.properties contains all needed info for setting up Connections.

Returns:

getConnection

public java.sql.Connection getConnection()
Obtain a Connection.

Returns:
null if something went wrong

closeConnection

public void closeConnection(java.sql.Connection connection)
Signal to the factory that Connection isn't needed anymore.

Parameters:
connection -