public class PooledCassandraConnection extends Object implements PooledConnection
PooledConnection to create a JDBC pooled connection to
a Cassandra cluster.| Constructor and Description |
|---|
PooledCassandraConnection(CassandraConnection physicalConnection)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addConnectionEventListener(ConnectionEventListener listener) |
void |
addStatementEventListener(StatementEventListener listener) |
void |
close() |
CassandraConnection |
getConnection() |
com.ing.data.cassandra.jdbc.ManagedPreparedStatement |
prepareStatement(com.ing.data.cassandra.jdbc.ManagedConnection managedConnection,
String cql)
Creates a
PreparedStatement object for sending parameterized SQL statements to the database on a
ManagedConnection representation of the pooled connection. |
void |
removeConnectionEventListener(ConnectionEventListener listener) |
void |
removeStatementEventListener(StatementEventListener listener) |
public PooledCassandraConnection(CassandraConnection physicalConnection)
physicalConnection - The physical CassandraConnection.public CassandraConnection getConnection()
getConnection in interface PooledConnectionpublic void close()
throws SQLException
close in interface PooledConnectionSQLExceptionpublic 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 com.ing.data.cassandra.jdbc.ManagedPreparedStatement prepareStatement(com.ing.data.cassandra.jdbc.ManagedConnection managedConnection,
String cql)
throws SQLException
PreparedStatement object for sending parameterized SQL statements to the database on a
ManagedConnection representation of the pooled connection.managedConnection - The representation of the pooled connection.cql - The CQL statement.ManagedPreparedStatement.SQLException - when something went wrong during the creation of the prepared statement.Copyright © 2020–2024 ING Bank. All rights reserved.