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, close, commit, createStatementImpl, getFeature, getProperty, impl, isConnected, isTransaction, rollback, setFeature, setProperty

Inherited Functions: begin, close, commit, createStatementImpl, duplicate, getFeature, getProperty, isConnected, isTransaction, referenceCount, release, rollback, setFeature, setProperty



    PooledSessionHolder * pHolder

Creates the PooledSessionImpl.


~PooledSessionImpl virtual


Destroys the PooledSessionImpl.

Member Functions

begin virtual

void begin();

close virtual

void close();

commit virtual

void commit();

createStatementImpl virtual

StatementImpl * createStatementImpl();

getFeature virtual

bool getFeature(
    const std::string & name

getProperty virtual

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

isConnected virtual

bool isConnected();

isTransaction virtual

bool isTransaction();

rollback virtual

void rollback();

setFeature virtual

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

setProperty virtual

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

access protected

SessionImpl * access();

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();

Returns a pointer to the SessionImpl.