public class JdbcManagedObject extends Object implements ManagedObject, ConnectionEventListener
ManagedObject
.Constructor and Description |
---|
JdbcManagedObject(PooledConnection pooledConnection)
Initiate.
|
Modifier and Type | Method and Description |
---|---|
void |
connectionClosed(ConnectionEvent event) |
void |
connectionErrorOccurred(ConnectionEvent event) |
Object |
getObject()
Obtains the object being managed.
|
protected void |
recycle()
Recycles.
|
public JdbcManagedObject(PooledConnection pooledConnection)
pooledConnection
- PooledConnection
.protected void recycle() throws SQLException
SQLException
- If fails to recycle.public Object getObject() throws Exception
ManagedObject
getObject
in interface ManagedObject
Exception
public void connectionClosed(ConnectionEvent event)
connectionClosed
in interface ConnectionEventListener
public void connectionErrorOccurred(ConnectionEvent event)
connectionErrorOccurred
in interface ConnectionEventListener
Copyright © 2005–2016. All rights reserved.