net.mlw.vlh.adapter.jdbc.util
Interface ConnectionCreator

All Known Implementing Classes:
StandardConnectionCreator

public interface ConnectionCreator

This is a helper class to handle different behaviour of connection eg. in transactional/nontransactional environment.

Version:
$Revision: 1.2 $ $Date: 2005/10/20 16:37:49 $
Author:
Stepan Marek

Method Summary
 void close(ResultSet result, PreparedStatement statement, Connection connection)
          Close all opened resources.
 Connection createConnection()
          Creates a new connection.
 DataSource getDataSource()
           
 void setDataSource(DataSource dataSource)
           
 

Method Detail

createConnection

public Connection createConnection()
                            throws SQLException
Creates a new connection.

Returns:
Throws:
SQLException

close

public void close(ResultSet result,
                  PreparedStatement statement,
                  Connection connection)
Close all opened resources.

Parameters:
result -
statement -
connection -

getDataSource

public DataSource getDataSource()
Returns:
Returns the dataSource.

setDataSource

public void setDataSource(DataSource dataSource)
Parameters:
dataSource - The dataSource to set.


Copyright © 2003-2006 mlavilson. All Rights Reserved.