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, 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



    PooledSessionHolder * pHolder

Creates the PooledSessionImpl.


~PooledSessionImpl virtual


Destroys the PooledSessionImpl.

Member Functions

begin virtual

void begin();

canTransact virtual

bool canTransact();

close virtual

void close();

commit virtual

void commit();

connectorName virtual

const std::string & connectorName() const;

createStatementImpl virtual

StatementImpl * createStatementImpl();

getConnectionTimeout virtual

std::size_t getConnectionTimeout();

getFeature virtual

bool getFeature(
    const std::string & name

getProperty virtual

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

getTransactionIsolation virtual

Poco::UInt32 getTransactionIsolation();

hasTransactionIsolation virtual

bool hasTransactionIsolation(

isConnected virtual

bool isConnected();

isTransaction virtual

bool isTransaction();

isTransactionIsolation virtual

bool isTransactionIsolation(

open virtual

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

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.