|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.abstracthorizon.danube.connection.ConnectionWrapper
public abstract class ConnectionWrapper
Simple Connection wrapper class.
| Field Summary | |
|---|---|
protected Connection |
connection
Wrapped connection |
protected org.slf4j.Logger |
logger
Logger |
| Constructor Summary | |
|---|---|
ConnectionWrapper(Connection connection)
Constructor |
|
| Method Summary | ||
|---|---|---|
|
adapt(Class<T> cls)
Adopts this object using supplied adopter manager |
|
void |
close()
Closes the connection |
|
boolean |
isClosed()
Checks if underlaying connection closed |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final org.slf4j.Logger logger
protected Connection connection
| Constructor Detail |
|---|
public ConnectionWrapper(Connection connection)
connection - | Method Detail |
|---|
public void close()
close in interface Connectionpublic boolean isClosed()
isClosed in interface Connectiontrue if underlaying connection closedpublic <T> T adapt(Class<T> cls)
adapt in interface Adaptablecls - class to be adopted to
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||