Package com.mchange.v1.db.sql
Class ConnectionBundleImpl
- java.lang.Object
-
- com.mchange.v1.db.sql.ConnectionBundleImpl
-
- All Implemented Interfaces:
ConnectionBundle,ClosableResource
public class ConnectionBundleImpl extends java.lang.Object implements ConnectionBundle
-
-
Constructor Summary
Constructors Constructor Description ConnectionBundleImpl(java.sql.Connection con)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()forces the release of any resources that might be associated with this object.voidfinalize()java.sql.ConnectiongetConnection()java.sql.PreparedStatementgetStatement(java.lang.String stmt_name)voidputStatement(java.lang.String stmt_name, java.sql.PreparedStatement stmt)
-
-
-
Method Detail
-
getConnection
public java.sql.Connection getConnection()
- Specified by:
getConnectionin interfaceConnectionBundle
-
getStatement
public java.sql.PreparedStatement getStatement(java.lang.String stmt_name)
- Specified by:
getStatementin interfaceConnectionBundle
-
putStatement
public void putStatement(java.lang.String stmt_name, java.sql.PreparedStatement stmt)- Specified by:
putStatementin interfaceConnectionBundle
-
close
public void close() throws java.sql.SQLExceptionDescription copied from interface:ClosableResourceforces the release of any resources that might be associated with this object.- Specified by:
closein interfaceClosableResource- Throws:
java.sql.SQLException
-
finalize
public void finalize() throws java.lang.Exception- Overrides:
finalizein classjava.lang.Object- Throws:
java.lang.Exception
-
-