Class Poco::Data::PooledSessionImpl
Author: Applied Informatics Software Engineering GmbH and Contributors

# Poco::Data

# class PooledSessionImpl

Library: Data
Package: SessionPooling
Header: Poco/Data/PooledSessionImpl.h

## Description

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

## Inheritance

Direct Base Classes: SessionImpl

All Base Classes: SessionImpl, Poco::RefCountedObject

## Member Summary

Member Functions: access, begin, canTransact, close, commit, connectorName, createStatementImpl, getConnectionTimeout, getFeature, getProperty, getTransactionIsolation, hasTransactionIsolation, impl, isConnected, isTransaction, isTransactionIsolation, open, rollback, setConnectionTimeout, setFeature, setProperty, setTransactionIsolation

Inherited Functions: begin, canTransact, close, commit, connectionString, connectorName, createStatementImpl, duplicate, getConnectionTimeout, getFeature, getLoginTimeout, getProperty, getTransactionIsolation, hasTransactionIsolation, isConnected, isTransaction, isTransactionIsolation, open, reconnect, referenceCount, release, rollback, setConnectionString, setConnectionTimeout, setFeature, setLoginTimeout, setProperty, setTransactionIsolation, uri

## Constructors

### PooledSessionImpl

PooledSessionImpl(
PooledSessionHolder * pHolder
);

Creates the PooledSessionImpl.

## Destructor

### ~PooledSessionImpl

~PooledSessionImpl();

Destroys the PooledSessionImpl.

## Member Functions

### begin

void begin();

See also: Poco::Data::SessionImpl::begin()

### canTransact

bool canTransact();

See also: Poco::Data::SessionImpl::canTransact()

### close

void close();

See also: Poco::Data::SessionImpl::close()

### commit

void commit();

See also: Poco::Data::SessionImpl::commit()

### connectorName

const std::string & connectorName() const;

See also: Poco::Data::SessionImpl::connectorName()

### createStatementImpl

StatementImpl * createStatementImpl();

See also: Poco::Data::SessionImpl::createStatementImpl()

### getConnectionTimeout

std::size_t getConnectionTimeout();

See also: Poco::Data::SessionImpl::getConnectionTimeout()

### getFeature

bool getFeature(
const std::string & name
);

See also: Poco::Data::SessionImpl::getFeature()

### getProperty

Poco::Any getProperty(
const std::string & name
);

See also: Poco::Data::SessionImpl::getProperty()

### getTransactionIsolation

Poco::UInt32 getTransactionIsolation();

See also: Poco::Data::SessionImpl::getTransactionIsolation()

### hasTransactionIsolation

bool hasTransactionIsolation(
Poco::UInt32
);

See also: Poco::Data::SessionImpl::hasTransactionIsolation()

### isConnected

bool isConnected();

See also: Poco::Data::SessionImpl::isConnected()

### isTransaction

bool isTransaction();

See also: Poco::Data::SessionImpl::isTransaction()

### isTransactionIsolation

bool isTransactionIsolation(
Poco::UInt32
);

See also: Poco::Data::SessionImpl::isTransactionIsolation()

### open

void open(
const std::string & connect = ""
);

See also: Poco::Data::SessionImpl::open()

### rollback

void rollback();

See also: Poco::Data::SessionImpl::rollback()

### setConnectionTimeout

void setConnectionTimeout(
std::size_t timeout
);

See also: Poco::Data::SessionImpl::setConnectionTimeout()

### setFeature

void setFeature(
const std::string & name,
bool state
);

See also: Poco::Data::SessionImpl::setFeature()

### setProperty

void setProperty(
const std::string & name,
const Poco::Any & value
);

See also: Poco::Data::SessionImpl::setProperty()

### setTransactionIsolation

void setTransactionIsolation(
Poco::UInt32
);

See also: Poco::Data::SessionImpl::setTransactionIsolation()

### access

SessionImpl * access() const;

Updates the last access timestamp, verifies validity of the session and returns the session if it is valid.

Throws an SessionUnavailableException if the session is no longer valid.

### impl

SessionImpl * impl() const;

Returns a pointer to the SessionImpl.