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

Constructors

PooledSessionImpl

PooledSessionImpl(
    PooledSessionHolder * pHolder
);

Creates the PooledSessionImpl.

Destructor

~PooledSessionImpl virtual

~PooledSessionImpl();

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.