|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DisconnectableConnection
The interface for objects returned by the getConnection method of ConnectionManagerDataSource.
Implementations of this interface are expected to hold a reference to an underlying Connection.
| Field Summary |
|---|
| Fields inherited from interface java.sql.Connection |
|---|
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE |
| Method Summary | |
|---|---|
void |
disconnect()
Close the underlying connection object. |
Connection |
getConnection()
Get the real underlying Connection object. |
| Methods inherited from interface java.sql.Wrapper |
|---|
isWrapperFor, unwrap |
| Method Detail |
|---|
void disconnect()
Note that if methods are called on this object that require a connection, then a fresh connection will transparently be allocated and cached.
Connection getConnection()
If this object is not currently connected, then null will be returned. Note that a call to any proxied method that needs a connection will then allocate one.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||