public class SingleStorePoolConnection extends Object implements PooledConnection
| Constructor and Description |
|---|
SingleStorePoolConnection(Connection connection)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addConnectionEventListener(ConnectionEventListener listener) |
void |
addStatementEventListener(StatementEventListener listener) |
void |
close() |
void |
fireConnectionClosed(ConnectionEvent event) |
void |
fireConnectionErrorOccurred(SQLException returnEx) |
void |
fireStatementClosed(PreparedStatement statement) |
void |
fireStatementErrorOccurred(PreparedStatement statement,
SQLException returnEx) |
Connection |
getConnection() |
void |
removeConnectionEventListener(ConnectionEventListener listener) |
void |
removeStatementEventListener(StatementEventListener listener) |
public SingleStorePoolConnection(Connection connection)
connection - connection to retrieve connection optionspublic Connection getConnection()
getConnection in interface PooledConnectionpublic void addConnectionEventListener(ConnectionEventListener listener)
addConnectionEventListener in interface PooledConnectionpublic void removeConnectionEventListener(ConnectionEventListener listener)
removeConnectionEventListener in interface PooledConnectionpublic void addStatementEventListener(StatementEventListener listener)
addStatementEventListener in interface PooledConnectionpublic void removeStatementEventListener(StatementEventListener listener)
removeStatementEventListener in interface PooledConnectionpublic void fireStatementClosed(PreparedStatement statement)
public void fireStatementErrorOccurred(PreparedStatement statement, SQLException returnEx)
public void fireConnectionClosed(ConnectionEvent event)
public void fireConnectionErrorOccurred(SQLException returnEx)
public void close()
throws SQLException
close in interface PooledConnectionSQLExceptionCopyright © 2025 SingleStore. All rights reserved.