net.mlw.vlh.adapter.jdbc.spring.util
Class SpringConnectionCreator

java.lang.Object
  extended bynet.mlw.vlh.adapter.jdbc.util.StandardConnectionCreator
      extended bynet.mlw.vlh.adapter.jdbc.spring.util.SpringConnectionCreator
All Implemented Interfaces:
ConnectionCreator

public class SpringConnectionCreator
extends StandardConnectionCreator

This connection creator uses spring to manage connection in transactional environment.

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

Constructor Summary
SpringConnectionCreator()
           
SpringConnectionCreator(DataSource dataSource)
           
 
Method Summary
 void close(ResultSet result, PreparedStatement statement, Connection connection)
          Close all opened resources.
 Connection createConnection()
          Creates a new connection.
 
Methods inherited from class net.mlw.vlh.adapter.jdbc.util.StandardConnectionCreator
getDataSource, setDataSource, setTransactionIsolation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpringConnectionCreator

public SpringConnectionCreator()

SpringConnectionCreator

public SpringConnectionCreator(DataSource dataSource)
Method Detail

createConnection

public Connection createConnection()
                            throws SQLException
Description copied from interface: ConnectionCreator
Creates a new connection.

Specified by:
createConnection in interface ConnectionCreator
Overrides:
createConnection in class StandardConnectionCreator
Throws:
SQLException

close

public void close(ResultSet result,
                  PreparedStatement statement,
                  Connection connection)
Description copied from interface: ConnectionCreator
Close all opened resources.

Specified by:
close in interface ConnectionCreator
Overrides:
close in class StandardConnectionCreator


Copyright © 2003-2006 mlavilson. All Rights Reserved.