net.mlw.vlh.adapter.jdbc.spring.util
Class SpringConnectionCreator
java.lang.Object
net.mlw.vlh.adapter.jdbc.util.StandardConnectionCreator
net.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpringConnectionCreator
public SpringConnectionCreator()
SpringConnectionCreator
public SpringConnectionCreator(DataSource dataSource)
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.