Compoze Software, Inc.

com.compoze.ejb
Interface IDatabaseConnectionFactory


public interface IDatabaseConnectionFactory

Classes that implement this interface are capable of creating a connection to a database.


Method Summary
 java.sql.Connection createConnection(User caller)
          Creates a database connection.
 

Method Detail

createConnection


public java.sql.Connection createConnection(User caller)
                                     throws javax.naming.NamingException,
                                            java.sql.SQLException
Creates a database connection.
Parameters:
caller - the caller (may be used to by the factory to select a different DataSource)
Returns:
the database connection
Throws:
javax.naming.NamingException - if a naming exception occurred
java.sql.SQLException - if an SQL exception occurred

Compoze Software, Inc.

Copyright ©1999-2001 Compoze Software, Inc. All rights reserved.