com.cafesoft.core.jdbc
Interface PoolableConnectionFactory

All Superinterfaces:
Debuggable, LoggerClient
All Known Implementing Classes:
StandardPoolableConnectionFactory

public interface PoolableConnectionFactory
extends Debuggable, LoggerClient

Factory object that is responsible for creating, destroying, activating, passivating, and validating Connection objects.

Since:
10/31/02
See Also:
Connection

Method Summary
 void activate(Connection conn)
          Activate the Connection
 Connection create(ConnectionConfig config)
          Create a new Connection
 void destroy(Connection conn)
          Destroy the Connection Object
 void passivate(Connection conn)
          Passivate the Connection
 boolean validate(Connection conn)
          Validate the Connection object
 
Methods inherited from interface com.cafesoft.core.util.Debuggable
setDebug
 
Methods inherited from interface com.cafesoft.core.log.LoggerClient
setLogger
 

Method Detail

create

public Connection create(ConnectionConfig config)
                  throws SQLException
Create a new Connection

Parameters:
config - the Configuration object for this Connection
Returns:
a new Connection
Throws:
SQLException - thrown if error occurs creating a Connection

destroy

public void destroy(Connection conn)
             throws SQLException
Destroy the Connection Object

Parameters:
conn - the Connection to destroy
Throws:
SQLException - thrown if error occurs destroying Connection

passivate

public void passivate(Connection conn)
               throws SQLException
Passivate the Connection

Parameters:
conn - the Connection object to Passivate
Throws:
SQLException - thrown if error occurs passivating the Connection

activate

public void activate(Connection conn)
Activate the Connection

Parameters:
conn - the Connection to activate

validate

public boolean validate(Connection conn)
Validate the Connection object

Parameters:
conn - the Connection object to validate
Returns:
true if Connection object is valid, false otherwise


Generated on 5:16:42 PM May 12, 2008, © 1996-2005 Cafésoft LLC. All rights reserved.