com.compoze.mail
Interface IConnectionFactory
- public interface IConnectionFactory
This interface is responsible for creating database connections.
Method Summary |
java.sql.Connection |
getConnection(java.util.Properties props)
Gets a connection from the factory. |
void |
release(java.sql.Connection conn)
Releases a connection from the factory. |
getConnection
public java.sql.Connection getConnection(java.util.Properties props)
throws java.sql.SQLException
- Gets a connection from the factory.
- Parameters:
props
- the connection props (may not be null
)- Returns:
- the database connection
release
public void release(java.sql.Connection conn)
throws MailException
- Releases a connection from the factory.
- Parameters:
conn
- the connection to release
Copyright ©1999-2001 Compoze Software, Inc. All rights reserved.