com.mchange.v1.db.sql
Class ConnectionBundleImpl

java.lang.Object
  extended by com.mchange.v1.db.sql.ConnectionBundleImpl
All Implemented Interfaces:
ConnectionBundle, ClosableResource

public class ConnectionBundleImpl
extends Object
implements ConnectionBundle


Constructor Summary
ConnectionBundleImpl(Connection con)
           
 
Method Summary
 void close()
          forces the release of any resources that might be associated with this object.
 void finalize()
           
 Connection getConnection()
           
 PreparedStatement getStatement(String stmt_name)
           
 void putStatement(String stmt_name, PreparedStatement stmt)
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionBundleImpl

public ConnectionBundleImpl(Connection con)
Method Detail

getConnection

public Connection getConnection()
Specified by:
getConnection in interface ConnectionBundle

getStatement

public PreparedStatement getStatement(String stmt_name)
Specified by:
getStatement in interface ConnectionBundle

putStatement

public void putStatement(String stmt_name,
                         PreparedStatement stmt)
Specified by:
putStatement in interface ConnectionBundle

close

public void close()
           throws SQLException
Description copied from interface: ClosableResource
forces the release of any resources that might be associated with this object.

Specified by:
close in interface ClosableResource
Throws:
SQLException

finalize

public void finalize()
              throws Exception
Overrides:
finalize in class Object
Throws:
Exception