Poco

namespace Data

Overview

Namespaces: Keywords, MySQL, ODBC, SQLite

Classes: AbstractBinder, AbstractBinding, AbstractExtraction, AbstractExtractor, AbstractPreparation, AbstractPreparator, AbstractSessionImpl, AbstractTypeHandler, ArchiveByAgeStrategy, ArchiveStrategy, Binding, BindingException, Bulk, BulkBinding, BulkExtraction, Column, ConnectionFailedException, Connector, CopyBinding, DataException, Date, ExecutionException, ExtractException, Extraction, InternalBulkExtraction, InternalExtraction, LOB, LOBIOS, LOBInputStream, LOBOutputStream, LOBStreamBuf, LengthExceededException, Limit, LimitException, MetaColumn, NoDataException, NotConnectedException, NotSupportedException, PooledSessionHolder, PooledSessionImpl, Position, Preparation, Range, RecordSet, Row, RowDataMissingException, RowFilter, RowFormatter, RowIterator, SQLChannel, Session, SessionFactory, SessionImpl, SessionPool, SessionPoolContainer, SessionPoolExhaustedException, SessionPoolExistsException, SessionUnavailableException, SimpleRowFormatter, Statement, StatementCreator, StatementImpl, Time, Transaction, TypeHandler, UnknownDataBaseException, UnknownTypeException

Types: AbstractBindingDeq, AbstractBindingLst, AbstractBindingPtr, AbstractBindingVec, AbstractExtractionDeq, AbstractExtractionDeqVec, AbstractExtractionLst, AbstractExtractionLstVec, AbstractExtractionPtr, AbstractExtractionVec, AbstractExtractionVecVec, AutoTransaction, BLOB, BLOB, BLOBInputStream, BLOBOutputStream, BulkFnType, CLOB, CLOB, CLOBInputStream, CLOBOutputStream, NullData, RowFormatterPtr

Functions: POCO_DATA_INVALID_ROW, operator <<, operator [], swap, tupleBind, tupleExtract, tuplePrepare

Namespaces

namespace Keywords

namespace MySQL

namespace ODBC

namespace SQLite

Classes

class AbstractBinder

Interface for Binding data types to placeholders. more...

class AbstractBinding

AbstractBinding connects a value with a placeholder via an AbstractBinder interface. more...

class AbstractExtraction

AbstractExtraction is the interface class that connects output positions to concrete values retrieved via an AbstractExtractormore...

class AbstractExtractor

Interface used to extract data from a single result row. more...

class AbstractPreparation

Interface for calling the appropriate AbstractPreparator method more...

class AbstractPreparator

Interface used for database preparation where we first have to register all data types (and memory output locations) before extracting data, e. more...

class AbstractSessionImpl

A partial implementation of SessionImpl, providing features and properties management. more...

class AbstractTypeHandler

Parent class for type handlers. more...

class ArchiveByAgeStrategy

Archives rows scheduled for archiving. more...

class ArchiveStrategy

The ArchiveStrategy is used by SQLChannel to archive log rows. more...

class Binding

Binding maps a value or multiple values (see Binding specializations for STL containers as well as type handlers) to database column(s). more...

class BindingException

 more...

class Bulk

 more...

class BulkBinding

A BulkBinding maps a value to a column. more...

class BulkExtraction

Specialization for bulk extraction of values from a query result set. more...

class Column

Column class is column data container. more...

class ConnectionFailedException

 more...

class Connector

A Connector creates SessionImpl objects. more...

class CopyBinding

Binding maps a value or multiple values (see Binding specializations for STL containers as well as type handlers) to database column(s). more...

class DataException

 more...

class Date

Date class wraps a DateTime and exposes date related interface. more...

class ExecutionException

 more...

class ExtractException

 more...

class Extraction

Concrete Data Type specific extraction of values from a query result set. more...

class InternalBulkExtraction

Container Data Type specialization extension for extraction of values from a query result set. more...

class InternalExtraction

Vector Data Type specialization for extraction of values from a query result set. more...

class LOB

Representation of a Large OBject. more...

class LOBIOS

The base class for LOBInputStream and LOBOutputStreammore...

class LOBInputStream

An input stream for reading from a LOBmore...

class LOBOutputStream

An output stream for writing to a LOBmore...

class LOBStreamBuf

This is the streambuf class used for reading from and writing to a LOBmore...

class LengthExceededException

 more...

class Limit

Limit stores information how many rows a query should return. more...

class LimitException

 more...

class MetaColumn

MetaColumn class contains column metadata information. more...

class NoDataException

 more...

class NotConnectedException

 more...

class NotSupportedException

 more...

class PooledSessionHolder

This class is used by SessionPool to manage SessionImpl objects. more...

class PooledSessionImpl

PooledSessionImpl is a decorator created by SessionPool that adds session pool management to SessionImpl objects. more...

class Position

Utility class wrapping unsigned integer. more...

class Preparation

Class for calling the appropriate AbstractPreparator method. more...

class Range

Range stores information how many rows a query should return. more...

class RecordSet

RecordSet provides access to data returned from a query. more...

class Row

Row class provides a data type for RecordSet iteration purposes. more...

class RowDataMissingException

 more...

class RowFilter

RowFilter class provides row filtering functionality. more...

class RowFormatter

Row formatter is an abstract class providing definition for row formatting functionality. more...

class RowIterator

RowIterator class. more...

class SQLChannel

This Channel implements logging to a SQL database. more...

class Session

A Session holds a connection to a Database and creates Statement objects. more...

class SessionFactory

A SessionFactory is a singleton class that stores Connectors and allows to create Sessions of the required type: Session ses(SessionFactory::instance(). more...

class SessionImpl

Interface for Session functionality that subclasses must extend. more...

class SessionPool

This class implements session pooling for POCO Datamore...

class SessionPoolContainer

This class implements container of session pools. more...

class SessionPoolExhaustedException

 more...

class SessionPoolExistsException

 more...

class SessionUnavailableException

 more...

class SimpleRowFormatter

A simple row formatting class. more...

class Statement

A Statement is used to execute SQL statements. more...

class StatementCreator

A StatementCreator creates Statements. more...

class StatementImpl

StatementImpl interface that subclasses must implement to define database dependent query execution. more...

class Time

Time class wraps a DateTime and exposes time related interface. more...

class Transaction

Transaction helps with transactions in domain logic. more...

class TypeHandler

Converts Rows to a Type and the other way around. more...

class UnknownDataBaseException

 more...

class UnknownTypeException

 more...

Types

AbstractBindingDeq

typedef std::deque < AbstractBindingPtr > AbstractBindingDeq;

AbstractBindingLst

typedef std::list < AbstractBindingPtr > AbstractBindingLst;

AbstractBindingPtr

typedef Poco::AutoPtr < AbstractBinding > AbstractBindingPtr;

AbstractBindingVec

typedef std::vector < AbstractBindingPtr > AbstractBindingVec;

AbstractExtractionDeq

typedef std::deque < AbstractExtractionPtr > AbstractExtractionDeq;

AbstractExtractionDeqVec

typedef std::vector < AbstractExtractionDeq > AbstractExtractionDeqVec;

AbstractExtractionLst

typedef std::list < AbstractExtractionPtr > AbstractExtractionLst;

AbstractExtractionLstVec

typedef std::vector < AbstractExtractionLst > AbstractExtractionLstVec;

AbstractExtractionPtr

typedef Poco::AutoPtr < AbstractExtraction > AbstractExtractionPtr;

AbstractExtractionVec

typedef std::vector < AbstractExtractionPtr > AbstractExtractionVec;

AbstractExtractionVecVec

typedef std::vector < AbstractExtractionVec > AbstractExtractionVecVec;

AutoTransaction

typedef Transaction AutoTransaction;

BLOB

typedef LOB < unsigned char > BLOB;

BLOB

typedef LOB < unsigned char > BLOB;

BLOBInputStream

typedef LOBInputStream < unsigned char > BLOBInputStream;

BLOBOutputStream

typedef LOBOutputStream < unsigned char > BLOBOutputStream;

BulkFnType

typedef void (* BulkFnType)(Void);

CLOB

typedef LOB < char > CLOB;

CLOB

typedef LOB < char > CLOB;

CLOBInputStream

typedef LOBInputStream < char > CLOBInputStream;

CLOBOutputStream

typedef LOBOutputStream < char > CLOBOutputStream;

NullData

typedef NullType NullData;

RowFormatterPtr

typedef SharedPtr < RowFormatter > RowFormatterPtr;

Functions

POCO_DATA_INVALID_ROW static

static const std::size_t POCO_DATA_INVALID_ROW = std::numeric_limits < std::size_t >::max();

operator << inline

inline std::ostream & operator << (
    std::ostream & os,
    const RecordSet & rs
);

inlines

operator <<

std::ostream & operator << (
    std::ostream & os,
    const Row & row
);

inlines

operator [] inline

inline Poco::Dynamic::Var RecordSet::operator[] (
    const std::string & name
);

operator [] inline

inline Poco::Dynamic::Var RecordSet::operator[] (
    std::size_t index
);

operator [] inline

inline Poco::Dynamic::Var & Row::operator[] (
    std::size_t col
);

operator [] inline

inline Poco::Dynamic::Var & Row::operator[] (
    const std::string & name
);

swap inline

template < typename C > inline void swap(
    Column < C > & c1,
    Column < C > & c2
);

The std::vector<bool> specialization for the Column class.

This specialization is necessary due to the nature of std::vector<bool>. For details, see the standard library implementation of vector<bool> or S. Meyers: "Effective STL" (Copyright Addison-Wesley 2001), Item 18: "Avoid using vector<bool>."

The workaround employed here is using deque<bool> as an internal "companion" container kept in sync with the vector<bool> column data. Creates the Column. Creates the Column. Destroys the Column. Assignment operator. Swaps the column with another one. Returns reference to contained data. Returns the field value in specified row. Returns the field value in specified row. Returns number of rows. Clears and shrinks the storage. Returns column name. Returns column maximum length. Returns column precision. Valid for floating point fields only (zero for other data types). Returns column position. Returns column type. Returns iterator pointing to the beginning of data storage vector. Returns iterator pointing to the end of data storage vector. Column specialization for std::list Creates the Column. Creates the Column. Destroys the Column. Assignment operator. Swaps the column with another one. Returns reference to contained data. Returns the field value in specified row. This is the std::list specialization and std::list is not the optimal solution for cases where random access is needed. However, to allow for compatibility with other containers, this functionality is provided here. To alleviate the problem, an effort is made to start iteration from beginning or end, depending on the position requested. Returns the field value in specified row. Returns number of rows. Clears the storage. Returns column name. Returns column maximum length. Returns column precision. Valid for floating point fields only (zero for other data types). Returns column position. Returns column type. Returns iterator pointing to the beginning of data storage vector. Returns iterator pointing to the end of data storage vector.

swap inline

template < typename T > inline void swap(
    LOB < T > & b1,
    LOB < T > & b2
);

swap inline

inline void swap(
    Session & s1,
    Session & s2
);

swap inline

inline void swap(
    Statement & s1,
    Statement & s2
);

tupleBind inline

template < typename TupleType, typename Type, int N > inline void tupleBind(
    std::size_t & pos,
    TupleType tuple,
    AbstractBinder * pBinder,
    AbstractBinder::Direction dir
);

Specialization of type handler for std::deque. Specialization of type handler for std::vector. Specialization of type handler for std::list. Specialization of type handler for Nullable. Poco::Tuple TypeHandler specializations

tupleExtract inline

template < typename TupleType, typename DefValType, typename Type, int N > inline void tupleExtract(
    std::size_t & pos,
    TupleType tuple,
    DefValType defVal,
    AbstractExtractor * pExt
);

tuplePrepare inline

template < typename TupleType, typename Type, int N > inline void tuplePrepare(
    std::size_t & pos,
    TupleType tuple,
    AbstractPreparator * pPreparator
);