Poco::Data::MySQL

class MySQLStatementImpl

Library: Data/MySQL
Package: MySQL
Header: Poco/Data/MySQL/MySQLStatementImpl.h

Description

Implements statement functionality needed for MySQL

Inheritance

Direct Base Classes: Poco::Data::StatementImpl

All Base Classes: Poco::Data::StatementImpl

Member Summary

Member Functions: affectedRowCount, bindImpl, binder, canBind, canCompile, columnsReturned, compileImpl, extractor, hasNext, metaColumn, next

Inherited Functions: activateNextDataSet, activatePreviousDataSet, add, addBind, addExtract, affectedRowCount, bindImpl, binder, bindings, canBind, canCompile, columnsExtracted, columnsReturned, compileImpl, currentDataSet, dataSetCount, execDirectImpl, execute, executeDirect, extractionCount, extractionLimit, extractions, extractor, fixupBinding, fixupExtraction, getExtractionLimit, getState, getStorage, hasMoreDataSets, hasNext, isStoredProcedure, makeExtractors, metaColumn, next, removeBind, reset, resetBinding, rowsExtracted, session, setExtractionLimit, setStorage, subTotalRowCount, toString

Constructors

MySQLStatementImpl

MySQLStatementImpl(
    SessionImpl & s
);

Creates the MySQLStatementImpl.

Destructor

~MySQLStatementImpl virtual

~MySQLStatementImpl() override;

Destroys the MySQLStatementImpl.

Member Functions

affectedRowCount protected virtual

int affectedRowCount() const override;

Returns the number of affected rows. Used to find out the number of rows affected by insert, delete or update.

bindImpl protected virtual

void bindImpl() override;

Binds parameters

binder protected

Poco::Data::AbstractBinder::Ptr binder() override;

Returns the concrete binder used by the statement.

canBind protected virtual

bool canBind() const override;

Returns true if a valid statement is set and we can bind.

canCompile protected virtual

bool canCompile() const override;

Returns true if another compile is possible.

columnsReturned protected virtual

std::size_t columnsReturned() const override;

Returns number of columns returned by query.

compileImpl protected virtual

void compileImpl() override;

Compiles the statement, doesn't bind yet

extractor protected

Poco::Data::AbstractExtractor::Ptr extractor() override;

Returns the concrete extractor used by the statement.

hasNext protected virtual

bool hasNext() override;

Returns true if a call to next() will return data.

metaColumn protected virtual

const MetaColumn & metaColumn(
    std::size_t pos
) const override;

Returns column meta data.

next protected virtual

std::size_t next() override;

Retrieves the next row from the resultset. Will throw, if the resultset is empty.