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

Constructors

PooledSessionImpl

PooledSessionImpl(
    PooledSessionHolder * pHolder
);

Creates the PooledSessionImpl.

Destructor

~PooledSessionImpl virtual

~PooledSessionImpl();

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;

createStatementImpl

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(
    Poco::UInt32
) const;

isConnected virtual

bool isConnected() const;

isGood virtual

bool isGood() const;

isTransaction virtual

bool isTransaction() const;

isTransactionIsolation virtual

bool isTransactionIsolation(
    Poco::UInt32
) 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(
    Poco::UInt32
);

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.