# Poco::Data

# template < class C >

# class BulkExtraction

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

## Description

Specialization for bulk extraction of values from a query result set. Bulk extraction support is provided only for following STL containers: - std::vector - std::deque - std::list

## Inheritance

Direct Base Classes: AbstractExtraction

All Base Classes: AbstractExtraction

## Member Summary

Member Functions: createPreparation, extract, isNull, numOfColumnsHandled, numOfRowsAllowed, numOfRowsHandled, reset, result

Inherited Functions: canExtract, createPreparation, extract, getEmptyStringIsNull, getExtractor, getForceEmptyString, getLimit, isBulk, isNull, isValueNull, numOfColumnsHandled, numOfRowsAllowed, numOfRowsHandled, position, reset, setEmptyStringIsNull, setExtractor, setForceEmptyString, setLimit

## Types

### CValType

typedef typename C::value_type CValType;

### Ptr

typedef SharedPtr < Type > Ptr;

### Type

typedef BulkExtraction < ValType > Type;

### ValPtr

typedef SharedPtr < ValType > ValPtr;

### ValType

typedef C ValType;

## Constructors

### BulkExtraction

BulkExtraction(
C & result,
Poco::UInt32 limit,
const Position & pos = Position (0)
);

### BulkExtraction

BulkExtraction(
C & result,
const CValType & def,
Poco::UInt32 limit,
const Position & pos = Position (0)
);

## Destructor

### ~BulkExtraction

virtual ~BulkExtraction();

## Member Functions

### createPreparation

AbstractPreparation::Ptr createPreparation(
AbstractPreparator::Ptr & pPrep,
std::size_t col
);

### extract

std::size_t extract(
std::size_t col
);

See also: Poco::Data::AbstractExtraction::extract()

### isNull

bool isNull(
std::size_t row
) const;

See also: Poco::Data::AbstractExtraction::isNull()

### numOfColumnsHandled

std::size_t numOfColumnsHandled() const;

See also: Poco::Data::AbstractExtraction::numOfColumnsHandled()

### numOfRowsAllowed

std::size_t numOfRowsAllowed() const;

See also: Poco::Data::AbstractExtraction::numOfRowsAllowed()

### numOfRowsHandled

std::size_t numOfRowsHandled() const;

See also: Poco::Data::AbstractExtraction::numOfRowsHandled()

### reset

virtual void reset();

See also: Poco::Data::AbstractExtraction::reset()

### result

const C & result() const;