class PooledSessionImpl

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


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


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, hasFeature, hasProperty, hasTransactionIsolation, impl, isConnected, isGood, isTransaction, isTransactionIsolation, open, reset, rollback, setConnectionTimeout, setFeature, setProperty, setTransactionIsolation

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



    PooledSessionHolder * pHolder

Creates the PooledSessionImpl.


~PooledSessionImpl virtual


Destroys the PooledSessionImpl.

Member Functions

begin virtual

void begin();

canTransact virtual

bool canTransact() const;

close virtual

void close();

commit virtual

void commit();

connectorName virtual

const std::string & connectorName() const;


StatementImpl::Ptr createStatementImpl();

getConnectionTimeout virtual

std::size_t getConnectionTimeout() const;

getFeature virtual

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

getProperty virtual

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

getTransactionIsolation virtual

Poco::UInt32 getTransactionIsolation() const;

hasFeature virtual

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

hasProperty virtual

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

hasTransactionIsolation virtual

bool hasTransactionIsolation(
) const;

isConnected virtual

bool isConnected() const;

isGood virtual

bool isGood() const;

isTransaction virtual

bool isTransaction() const;

isTransactionIsolation virtual

bool isTransactionIsolation(
) const;

open virtual

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

reset virtual

void reset();

rollback virtual

void rollback();

setConnectionTimeout virtual

void setConnectionTimeout(
    std::size_t timeout

setFeature virtual

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

setProperty virtual

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

setTransactionIsolation virtual

void setTransactionIsolation(

access protected

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 protected inline

SessionImpl * impl() const;

Returns a pointer to the SessionImpl.