Poco::Data

class AbstractBinder

File Information

Library: Data
Package: DataCore
Header: Poco/Data/AbstractBinder.h

Description

Interface for Binding data types to placeholders.

Inheritance

Known Derived Classes: Poco::Data::ODBC::Binder, Poco::Data::MySQL::Binder, Poco::Data::PostgreSQL::Binder, Poco::Data::SQLite::Binder

Member Summary

Member Functions: bind, isInBound, isOutBound, reset, reverseTranscode, toString, transcode, transcodeRequired

Types Aliases

Ptr

using Ptr = SharedPtr < AbstractBinder >;

Enumerations

Direction

Binding direction for a parameter.

PD_IN

PD_OUT

PD_IN_OUT

Constructors

AbstractBinder

AbstractBinder(
    Poco::TextEncoding::Ptr pFromEncoding = __nullptr,
    Poco::TextEncoding::Ptr pDBEncoding = __nullptr
);

Creates the AbstractBinder.

Destructor

~AbstractBinder virtual

virtual ~AbstractBinder();

Destroys the AbstractBinder.

Member Functions

bind virtual

virtual void bind(
    std::size_t pos,
    const Poco::Int8 & val,
    Direction dir = PD_IN
) = 0;

Binds an Int8.

bind virtual

virtual void bind(
    std::size_t pos,
    const std::vector < Poco::Int8 > & val,
    Direction dir = PD_IN
);

Binds an Int8 vector.

bind virtual

virtual void bind(
    std::size_t pos,
    const std::deque < Poco::Int8 > & val,
    Direction dir = PD_IN
);

Binds an Int8 deque.

bind virtual

virtual void bind(
    std::size_t pos,
    const std::list < Poco::Int8 > & val,
    Direction dir = PD_IN
);

Binds an Int8 list.

bind virtual

virtual void bind(
    std::size_t pos,
    const Poco::UInt8 & val,
    Direction dir = PD_IN
) = 0;

Binds an UInt8.

bind virtual

virtual void bind(
    std::size_t pos,
    const std::vector < Poco::UInt8 > & val,
    Direction dir = PD_IN
);

Binds an UInt8 vector.

bind virtual

virtual void bind(
    std::size_t pos,
    const std::deque < Poco::UInt8 > & val,
    Direction dir = PD_IN
);

Binds an UInt8 deque.

bind virtual

virtual void bind(
    std::size_t pos,
    const std::list < Poco::UInt8 > & val,
    Direction dir = PD_IN
);

Binds an UInt8 list.

bind virtual

virtual void bind(
    std::size_t pos,
    const Poco::Int16 & val,
    Direction dir = PD_IN
) = 0;

Binds an Int16.

bind virtual

virtual void bind(
    std::size_t pos,
    const std::vector < Poco::Int16 > & val,
    Direction dir = PD_IN
);

Binds an Int16 vector.

bind virtual

virtual void bind(
    std::size_t pos,
    const std::deque < Poco::Int16 > & val,
    Direction dir = PD_IN
);

Binds an Int16 deque.

bind virtual

virtual void bind(
    std::size_t pos,
    const std::list < Poco::Int16 > & val,
    Direction dir = PD_IN
);

Binds an Int16 list.

bind virtual

virtual void bind(
    std::size_t pos,
    const Poco::UInt16 & val,
    Direction dir = PD_IN
) = 0;

Binds an UInt16.

bind virtual

virtual void bind(
    std::size_t pos,
    const std::vector < Poco::UInt16 > & val,
    Direction dir = PD_IN
);

Binds an UInt16 vector.

bind virtual

virtual void bind(
    std::size_t pos,
    const std::deque < Poco::UInt16 > & val,
    Direction dir = PD_IN
);

Binds an UInt16 deque.

bind virtual

virtual void bind(
    std::size_t pos,
    const std::list < Poco::UInt16 > & val,
    Direction dir = PD_IN
);

Binds an UInt16 list.

bind virtual

virtual void bind(
    std::size_t pos,
    const Poco::Int32 & val,
    Direction dir = PD_IN
) = 0;

Binds an Int32.

bind virtual

virtual void bind(
    std::size_t pos,
    const std::vector < Poco::Int32 > & val,
    Direction dir = PD_IN
);

Binds an Int32 vector.

bind virtual

virtual void bind(
    std::size_t pos,
    const std::deque < Poco::Int32 > & val,
    Direction dir = PD_IN
);

Binds an Int32 deque.

bind virtual

virtual void bind(
    std::size_t pos,
    const std::list < Poco::Int32 > & val,
    Direction dir = PD_IN
);

Binds an Int32 list.

bind virtual

virtual void bind(
    std::size_t pos,
    const Poco::UInt32 & val,
    Direction dir = PD_IN
) = 0;

Binds an UInt32.

bind virtual

virtual void bind(
    std::size_t pos,
    const std::vector < Poco::UInt32 > & val,
    Direction dir = PD_IN
);

Binds an UInt32 vector.

bind virtual

virtual void bind(
    std::size_t pos,
    const std::deque < Poco::UInt32 > & val,
    Direction dir = PD_IN
);

Binds an UInt32 deque.

bind virtual

virtual void bind(
    std::size_t pos,
    const std::list < Poco::UInt32 > & val,
    Direction dir = PD_IN
);

Binds an UInt32 list.

bind virtual

virtual void bind(
    std::size_t pos,
    const Poco::Int64 & val,
    Direction dir = PD_IN
) = 0;

Binds an Int64.

bind virtual

virtual void bind(
    std::size_t pos,
    const std::vector < Poco::Int64 > & val,
    Direction dir = PD_IN
);

Binds an Int64 vector.

bind virtual

virtual void bind(
    std::size_t pos,
    const std::deque < Poco::Int64 > & val,
    Direction dir = PD_IN
);

Binds an Int64 deque.

bind virtual

virtual void bind(
    std::size_t pos,
    const std::list < Poco::Int64 > & val,
    Direction dir = PD_IN
);

Binds an Int64 list.

bind virtual

virtual void bind(
    std::size_t pos,
    const Poco::UInt64 & val,
    Direction dir = PD_IN
) = 0;

Binds an UInt64.

bind virtual

virtual void bind(
    std::size_t pos,
    const std::vector < Poco::UInt64 > & val,
    Direction dir = PD_IN
);

Binds an UInt64 vector.

bind virtual

virtual void bind(
    std::size_t pos,
    const std::deque < Poco::UInt64 > & val,
    Direction dir = PD_IN
);

Binds an UInt64 deque.

bind virtual

virtual void bind(
    std::size_t pos,
    const std::list < Poco::UInt64 > & val,
    Direction dir = PD_IN
);

Binds an UInt64 list.

bind virtual

virtual void bind(
    std::size_t pos,
    const long & val,
    Direction dir = PD_IN
) = 0;

Binds a long.

bind virtual

virtual void bind(
    std::size_t pos,
    const unsigned long & val,
    Direction dir = PD_IN
) = 0;

Binds an unsiged long.

bind virtual

virtual void bind(
    std::size_t pos,
    const std::vector < long > & val,
    Direction dir = PD_IN
);

Binds a long vector.

bind virtual

virtual void bind(
    std::size_t pos,
    const std::deque < long > & val,
    Direction dir = PD_IN
);

Binds a long deque.

bind virtual

virtual void bind(
    std::size_t pos,
    const std::list < long > & val,
    Direction dir = PD_IN
);

Binds a long list.

bind virtual

virtual void bind(
    std::size_t pos,
    const bool & val,
    Direction dir = PD_IN
) = 0;

Binds a boolean.

bind virtual

virtual void bind(
    std::size_t pos,
    const std::vector < bool > & val,
    Direction dir = PD_IN
);

Binds a boolean vector.

bind virtual

virtual void bind(
    std::size_t pos,
    const std::deque < bool > & val,
    Direction dir = PD_IN
);

Binds a boolean deque.

bind virtual

virtual void bind(
    std::size_t pos,
    const std::list < bool > & val,
    Direction dir = PD_IN
);

Binds a boolean list.

bind virtual

virtual void bind(
    std::size_t pos,
    const float & val,
    Direction dir = PD_IN
) = 0;

Binds a float.

bind virtual

virtual void bind(
    std::size_t pos,
    const std::vector < float > & val,
    Direction dir = PD_IN
);

Binds a float vector.

bind virtual

virtual void bind(
    std::size_t pos,
    const std::deque < float > & val,
    Direction dir = PD_IN
);

Binds a float deque.

bind virtual

virtual void bind(
    std::size_t pos,
    const std::list < float > & val,
    Direction dir = PD_IN
);

Binds a float list.

bind virtual

virtual void bind(
    std::size_t pos,
    const double & val,
    Direction dir = PD_IN
) = 0;

Binds a double.

bind virtual

virtual void bind(
    std::size_t pos,
    const std::vector < double > & val,
    Direction dir = PD_IN
);

Binds a double vector.

bind virtual

virtual void bind(
    std::size_t pos,
    const std::deque < double > & val,
    Direction dir = PD_IN
);

Binds a double deque.

bind virtual

virtual void bind(
    std::size_t pos,
    const std::list < double > & val,
    Direction dir = PD_IN
);

Binds a double list.

bind virtual

virtual void bind(
    std::size_t pos,
    const char & val,
    Direction dir = PD_IN
) = 0;

Binds a single character.

bind virtual

virtual void bind(
    std::size_t pos,
    const std::vector < char > & val,
    Direction dir = PD_IN
);

Binds a character vector.

bind virtual

virtual void bind(
    std::size_t pos,
    const std::deque < char > & val,
    Direction dir = PD_IN
);

Binds a character deque.

bind virtual

virtual void bind(
    std::size_t pos,
    const std::list < char > & val,
    Direction dir = PD_IN
);

Binds a character list.

bind virtual

virtual void bind(
    std::size_t pos,
    const char * const & pVal,
    Direction dir = PD_IN
) = 0;

Binds a const char ptr.

bind virtual

virtual void bind(
    std::size_t pos,
    const std::string & val,
    Direction dir = PD_IN
) = 0;

Binds a string.

bind virtual

virtual void bind(
    std::size_t pos,
    const std::vector < std::string > & val,
    Direction dir = PD_IN
);

Binds a string vector.

bind virtual

virtual void bind(
    std::size_t pos,
    const std::deque < std::string > & val,
    Direction dir = PD_IN
);

Binds a string deque.

bind virtual

virtual void bind(
    std::size_t pos,
    const std::list < std::string > & val,
    Direction dir = PD_IN
);

Binds a string list.

bind virtual

virtual void bind(
    std::size_t pos,
    const UTF16String & val,
    Direction dir = PD_IN
);

Binds a UTF-16 Unicode string.

bind virtual

virtual void bind(
    std::size_t pos,
    const std::vector < UTF16String > & val,
    Direction dir = PD_IN
);

Binds a UTF-16 Unicode string vector.

bind virtual

virtual void bind(
    std::size_t pos,
    const std::deque < UTF16String > & val,
    Direction dir = PD_IN
);

Binds a UTF-16 Unicode string deque.

bind virtual

virtual void bind(
    std::size_t pos,
    const std::list < UTF16String > & val,
    Direction dir = PD_IN
);

Binds a UTF-16 Unicode string list.

bind virtual

virtual void bind(
    std::size_t pos,
    const BLOB & val,
    Direction dir = PD_IN
) = 0;

Binds a BLOB.

bind virtual

virtual void bind(
    std::size_t pos,
    const CLOB & val,
    Direction dir = PD_IN
) = 0;

Binds a CLOB.

bind virtual

virtual void bind(
    std::size_t pos,
    const std::vector < BLOB > & val,
    Direction dir = PD_IN
);

Binds a BLOB vector.

bind virtual

virtual void bind(
    std::size_t pos,
    const std::deque < BLOB > & val,
    Direction dir = PD_IN
);

Binds a BLOB deque.

bind virtual

virtual void bind(
    std::size_t pos,
    const std::list < BLOB > & val,
    Direction dir = PD_IN
);

Binds a BLOB list.

bind virtual

virtual void bind(
    std::size_t pos,
    const std::vector < CLOB > & val,
    Direction dir = PD_IN
);

Binds a CLOB vector.

bind virtual

virtual void bind(
    std::size_t pos,
    const std::deque < CLOB > & val,
    Direction dir = PD_IN
);

Binds a CLOB deque.

bind virtual

virtual void bind(
    std::size_t pos,
    const std::list < CLOB > & val,
    Direction dir = PD_IN
);

Binds a CLOB list.

bind virtual

virtual void bind(
    std::size_t pos,
    const DateTime & val,
    Direction dir = PD_IN
) = 0;

Binds a DateTime.

bind virtual

virtual void bind(
    std::size_t pos,
    const std::vector < DateTime > & val,
    Direction dir = PD_IN
);

Binds a DateTime vector.

bind virtual

virtual void bind(
    std::size_t pos,
    const std::deque < DateTime > & val,
    Direction dir = PD_IN
);

Binds a DateTime deque.

bind virtual

virtual void bind(
    std::size_t pos,
    const std::list < DateTime > & val,
    Direction dir = PD_IN
);

Binds a DateTime list.

bind virtual

virtual void bind(
    std::size_t pos,
    const Date & val,
    Direction dir = PD_IN
) = 0;

Binds a Date.

bind virtual

virtual void bind(
    std::size_t pos,
    const std::vector < Date > & val,
    Direction dir = PD_IN
);

Binds a Date vector.

bind virtual

virtual void bind(
    std::size_t pos,
    const std::deque < Date > & val,
    Direction dir = PD_IN
);

Binds a Date deque.

bind virtual

virtual void bind(
    std::size_t pos,
    const std::list < Date > & val,
    Direction dir = PD_IN
);

Binds a Date list.

bind virtual

virtual void bind(
    std::size_t pos,
    const Time & val,
    Direction dir = PD_IN
) = 0;

Binds a Time.

bind virtual

virtual void bind(
    std::size_t pos,
    const std::vector < Time > & val,
    Direction dir = PD_IN
);

Binds a Time vector.

bind virtual

virtual void bind(
    std::size_t pos,
    const std::deque < Time > & val,
    Direction dir = PD_IN
);

Binds a Time deque.

bind virtual

virtual void bind(
    std::size_t pos,
    const std::list < Time > & val,
    Direction dir = PD_IN
);

Binds a Time list.

bind virtual

virtual void bind(
    std::size_t pos,
    const UUID & val,
    Direction dir = PD_IN
) = 0;

Binds a UUID.

bind virtual

virtual void bind(
    std::size_t pos,
    const std::vector < UUID > & val,
    Direction dir = PD_IN
);

Binds a UUID vector.

bind virtual

virtual void bind(
    std::size_t pos,
    const std::deque < UUID > & val,
    Direction dir = PD_IN
);

Binds a UUID deque.

bind virtual

virtual void bind(
    std::size_t pos,
    const std::list < UUID > & val,
    Direction dir = PD_IN
);

Binds a UUID list.

bind virtual

virtual void bind(
    std::size_t pos,
    const NullData & val,
    Direction dir = PD_IN
) = 0;

Binds a null.

bind virtual

virtual void bind(
    std::size_t pos,
    const std::vector < NullData > & val,
    Direction dir = PD_IN
);

Binds a null vector.

bind virtual

virtual void bind(
    std::size_t pos,
    const std::deque < NullData > & val,
    Direction dir = PD_IN
);

Binds a null deque.

bind virtual

virtual void bind(
    std::size_t pos,
    const std::list < NullData > & val,
    Direction dir = PD_IN
);

Binds a null list.

bind

void bind(
    std::size_t pos,
    const Any & val,
    Direction dir = PD_IN
);

Binds an Any.

bind

void bind(
    std::size_t pos,
    const Poco::Dynamic::Var & val,
    Direction dir = PD_IN
);

Binds a Var.

isInBound static inline

static bool isInBound(
    Direction dir
);

Returns true if direction is in bound;

isOutBound static inline

static bool isOutBound(
    Direction dir
);

Returns true if direction is out bound;

reset virtual inline

virtual void reset();

Resets a binder. No-op by default. Implement for binders that cache data.

reverseTranscode protected

void reverseTranscode(
    const std::string & from,
    std::string & to
);

toString protected

const std::string & toString(
    const UUID & uuid
);

transcode protected

void transcode(
    const std::string & from,
    std::string & to
);

transcodeRequired protected inline

bool transcodeRequired() const;