public class SQLServerPooledConnection extends Object implements PooledConnection
Modifier and Type | Method and Description |
---|---|
void |
addConnectionEventListener(ConnectionEventListener listener)
Registers the given event listener so that it will be notified when an event occurs on this
PooledConnection object.
|
void |
addStatementEventListener(StatementEventListener listener) |
void |
close()
Closes the physical connection that this PooledConnection object represents.
|
Connection |
getConnection()
Creates an object handle for the physical connection that this PooledConnection object represents.
|
void |
removeConnectionEventListener(ConnectionEventListener listener)
Remove a listener.
|
void |
removeStatementEventListener(StatementEventListener listener) |
String |
toString()
This is a helper function to provide an ID string suitable for tracing.
|
public String toString()
public Connection getConnection() throws SQLException
getConnection
in interface PooledConnection
SQLException
public void addConnectionEventListener(ConnectionEventListener listener)
addConnectionEventListener
in interface PooledConnection
public void close() throws SQLException
close
in interface PooledConnection
SQLException
public void removeConnectionEventListener(ConnectionEventListener listener)
removeConnectionEventListener
in interface PooledConnection
public void addStatementEventListener(StatementEventListener listener)
addStatementEventListener
in interface PooledConnection
public void removeStatementEventListener(StatementEventListener listener)
removeStatementEventListener
in interface PooledConnection
Copyright © 2016. All rights reserved.