org.springframework.jdbc.datasource
Interface ConnectionHandle

All Known Implementing Classes:
DefaultJdoDialect.DataStoreConnectionHandle, HibernateJpaDialect.HibernateConnectionHandle, OpenJpaDialect.OpenJpaConnectionHandle, SimpleConnectionHandle

public interface ConnectionHandle

Simple interface to be implemented by handles for a JDBC Connection. Used by JdoDialect, for example.

Since:
1.1
Author:
Juergen Hoeller
See Also:
SimpleConnectionHandle, ConnectionHolder, JdoDialect.getJdbcConnection(PersistenceManager, boolean)

Method Summary
 java.sql.Connection getConnection()
          Fetch the JDBC Connection that this handle refers to.
 void releaseConnection(java.sql.Connection con)
          Release the JDBC Connection that this handle refers to.
 

Method Detail

getConnection

java.sql.Connection getConnection()
Fetch the JDBC Connection that this handle refers to.


releaseConnection

void releaseConnection(java.sql.Connection con)
Release the JDBC Connection that this handle refers to.

Parameters:
con - the JDBC Connection to release