Kea  1.9.9-git
isc::db::CqlCommon Class Reference

Common operations in Cassandra exchanges. More...

#include <cql_exchange.h>

Static Public Member Functions

static void bindData (const AnyArray &data, CassStatement *statement)
 Assigns values to every column of an INSERT or an UPDATE statement. More...
 
static void getData (const CassRow *row, AnyArray &data)
 Retrieves data returned by Cassandra. More...
 

Detailed Description

Common operations in Cassandra exchanges.

Definition at line 292 of file cql_exchange.h.

Member Function Documentation

void isc::db::CqlCommon::bindData ( const AnyArray data,
CassStatement *  statement 
)
static

Assigns values to every column of an INSERT or an UPDATE statement.

Calls cqlBindFunction_() for every column with its respective type.

Parameters
dataarray containing column values to be passed to the statement being executed
statementinternal Cassandra object representing the statement being executed

Definition at line 680 of file cql_exchange.cc.

References isc::db::exchangeType(), isc_throw, and isc::Exception::what().

Referenced by isc::db::CqlExchange::executeMutation(), isc::db::CqlExchange::executeSelect(), and isc::dhcp::CqlLeaseStatsQuery::executeSelect().

+ Here is the call graph for this function:

void isc::db::CqlCommon::getData ( const CassRow *  row,
AnyArray data 
)
static

Retrieves data returned by Cassandra.

Calls cqlGetFunction_() for every column with its respective type.

Parameters
rowinternal Cassandra object containing data returned by Cassandra
dataarray containing objects to be populated with results

Definition at line 709 of file cql_exchange.cc.

References isc::db::exchangeType(), isc_throw, and isc::Exception::what().

Referenced by isc::db::CqlExchange::executeSelect(), isc::dhcp::CqlLeaseStatsQuery::executeSelect(), and isc::db::CqlExchange::statementApplied().

+ Here is the call graph for this function:


The documentation for this class was generated from the following files: