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 void
close()
forces the release of any resources that might be associated with this object.void
finalize()
java.sql.Connection
getConnection()
java.sql.PreparedStatement
getStatement(java.lang.String stmt_name)
void
putStatement(java.lang.String stmt_name, java.sql.PreparedStatement stmt)
-
-
-
Method Detail
-
getConnection
public java.sql.Connection getConnection()
- Specified by:
getConnection
in interfaceConnectionBundle
-
getStatement
public java.sql.PreparedStatement getStatement(java.lang.String stmt_name)
- Specified by:
getStatement
in interfaceConnectionBundle
-
putStatement
public void putStatement(java.lang.String stmt_name, java.sql.PreparedStatement stmt)
- Specified by:
putStatement
in interfaceConnectionBundle
-
close
public void close() throws java.sql.SQLException
Description copied from interface:ClosableResource
forces the release of any resources that might be associated with this object.- Specified by:
close
in interfaceClosableResource
- Throws:
java.sql.SQLException
-
finalize
public void finalize() throws java.lang.Exception
- Overrides:
finalize
in classjava.lang.Object
- Throws:
java.lang.Exception
-
-