Class Poco::Data::ODBC::Binder
Author: Applied Informatics Software Engineering GmbH and Contributors
Date: 2009-11-24

# Poco::Data::ODBC

# class Binder

Library: Data/ODBC
Package: ODBC
Header: Poco/Data/ODBC/Binder.h

## Description

Binds placeholders in the sql query to the provided values. Performs data types mapping.

## Inheritance

Direct Base Classes: Poco::Data::AbstractBinder

All Base Classes: Poco::Data::AbstractBinder

## Member Summary

Member Functions: bind, dataSize, getDataBinding, setDataBinding

Inherited Functions: bind

## Enumerations

### ParameterBinding

PB_IMMEDIATE

PB_AT_EXEC

## Constructors

### Binder

Binder(
const StatementHandle & rStmt,
ParameterBinding dataBinding = PB_IMMEDIATE
);

Creates the Binder.

## Destructor

### ~Binder

~Binder();

Destroys the Binder.

## Member Functions

### bind

void bind(
std::size_t pos,
const Poco::Int8 & val
);

Binds an Int8.

See also: Poco::Data::AbstractBinder::bind()

### bind

void bind(
std::size_t pos,
const Poco::UInt8 & val
);

Binds an UInt8.

See also: Poco::Data::AbstractBinder::bind()

### bind

void bind(
std::size_t pos,
const Poco::Int16 & val
);

Binds an Int16.

See also: Poco::Data::AbstractBinder::bind()

### bind

void bind(
std::size_t pos,
const Poco::UInt16 & val
);

Binds an UInt16.

See also: Poco::Data::AbstractBinder::bind()

### bind

void bind(
std::size_t pos,
const Poco::Int32 & val
);

Binds an Int32.

See also: Poco::Data::AbstractBinder::bind()

### bind

void bind(
std::size_t pos,
const Poco::UInt32 & val
);

Binds an UInt32.

See also: Poco::Data::AbstractBinder::bind()

### bind

void bind(
std::size_t pos,
const Poco::Int64 & val
);

Binds an Int64.

See also: Poco::Data::AbstractBinder::bind()

### bind

void bind(
std::size_t pos,
const Poco::UInt64 & val
);

Binds an UInt64.

See also: Poco::Data::AbstractBinder::bind()

### bind

void bind(
std::size_t pos,
const bool & val
);

Binds a boolean.

See also: Poco::Data::AbstractBinder::bind()

### bind

void bind(
std::size_t pos,
const float & val
);

Binds a float.

See also: Poco::Data::AbstractBinder::bind()

### bind

void bind(
std::size_t pos,
const double & val
);

Binds a double.

See also: Poco::Data::AbstractBinder::bind()

### bind

void bind(
std::size_t pos,
const char & val
);

Binds a single character.

See also: Poco::Data::AbstractBinder::bind()

### bind

void bind(
std::size_t pos,
const std::string & val
);

Binds a string.

See also: Poco::Data::AbstractBinder::bind()

### bind

void bind(
std::size_t pos,
const Poco::Data::BLOB & val
);

Binds a BLOB.

### dataSize

std::size_t dataSize(
SQLPOINTER pAddr
) const;

Returns bound data size for parameter at specified position.

### getDataBinding

ParameterBinding getDataBinding() const;

Return data binding type.

### setDataBinding

void setDataBinding(
ParameterBinding binding
);

Set data binding type.