|
iiitToolkit 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.iiit.jdbc.JdbcConnection
This class holds a java.sql.connection
. It should be used only inside
this package. Therefore all methods are protected.
Constructor Summary | |
protected |
JdbcConnection(JdbcConnectionPool owner,
Connection connection)
Creates a new instance of JdbcConnection |
Method Summary | |
protected JdbcStatement |
createStatement()
Creates a Statement object for sending SQL statements to the database. |
protected void |
destroyConnection()
Do not move the connection to pool of free ones. |
protected void |
finalize()
closes the encapsulated java.sql.Connection explicitly. |
protected JdbcDatabaseMetaData |
getMetaData()
Retrieves a JdbcDatabaseMetaData object that contains metadata about
the database to which this Connection object represents a connection. |
protected JdbcConnection |
lock()
Lock a collection. |
protected JdbcPreparedStatement |
prepareStatement(String sql)
Creates prepared statement |
protected void |
release()
Release a previous lock. |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected JdbcConnection(JdbcConnectionPool owner, Connection connection)
owner
- The owning JdbcConnectionPoolconnection
- The connection to the underlying databaseMethod Detail |
protected JdbcConnection lock()
protected void release()
protected JdbcPreparedStatement prepareStatement(String sql) throws JdbcException
sql
- an SQL statement that may contain one or more '?' IN parameter placeholders
JdbcException
- if a database access error occursprotected JdbcStatement createStatement() throws JdbcException
JdbcException
- if a database access error occursprotected JdbcDatabaseMetaData getMetaData() throws JdbcException
JdbcDatabaseMetaData
object that contains metadata about
the database to which this Connection object represents a connection.
JdbcException
- if a database access error occursprotected void destroyConnection()
protected void finalize() throws Throwable
finalize
in class Object
Throwable
- Any throwable thrown during the excution.
|
iiitToolkit 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |