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
|
Method Summary |
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)
|
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConnectionBundleImpl
public ConnectionBundleImpl(java.sql.Connection con)
getConnection
public java.sql.Connection getConnection()
- Specified by:
getConnection in interface ConnectionBundle
getStatement
public java.sql.PreparedStatement getStatement(java.lang.String stmt_name)
- Specified by:
getStatement in interface ConnectionBundle
putStatement
public void putStatement(java.lang.String stmt_name,
java.sql.PreparedStatement stmt)
- Specified by:
putStatement in interface ConnectionBundle
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 interface ClosableResource
- Throws:
java.sql.SQLException
finalize
public void finalize()
throws java.lang.Exception
- Overrides:
finalize in class java.lang.Object
- Throws:
java.lang.Exception