Library: Data
Package: DataCore
Header: Poco/Data/SessionImpl.h
Interface for Session functionality that subclasses must extend. SessionImpl objects are noncopyable.
Direct Base Classes: Poco::RefCountedObject
All Base Classes: Poco::RefCountedObject
Known Derived Classes: AbstractSessionImpl, PooledSessionImpl
Member Functions: begin, close, commit, createStatementImpl, getFeature, getProperty, isConnected, isTransaction, rollback, setFeature, setProperty
Inherited Functions: duplicate, referenceCount, release
SessionImpl();
Creates the SessionImpl.
 
 virtual ~SessionImpl();
Destroys the SessionImpl.
 
 virtual void begin() = 0;
Starts a transaction.
 
 virtual void close() = 0;
Closes the connection.
 
 virtual void commit() = 0;
Commits and ends a transaction.
 
 virtual StatementImpl * createStatementImpl() = 0;
Creates a StatementImpl.
 
 virtual bool getFeature(
    const std::string & name
) = 0;
Look up the state of a feature.
Features are a generic extension mechanism for session implementations. and are defined by the underlying SessionImpl instance.
Throws a NotSupportedException if the requested feature is not supported by the underlying implementation.
 
 virtual Poco::Any getProperty(
    const std::string & name
) = 0;
Look up the value of a property.
Properties are a generic extension mechanism for session implementations. and are defined by the underlying SessionImpl instance.
Throws a NotSupportedException if the requested property is not supported by the underlying implementation.
 
 virtual bool isConnected() = 0;
Returns true if and only if session is connected, false otherwise.
 
 virtual bool isTransaction() = 0;
Returns true if and only if a transaction is a transaction is in progress, false otherwise.
 
 virtual void rollback() = 0;
Aborts a transaction.
 
 virtual void setFeature(
    const std::string & name,
    bool state
) = 0;
Set the state of a feature.
Features are a generic extension mechanism for session implementations. and are defined by the underlying SessionImpl instance.
Throws a NotSupportedException if the requested feature is not supported by the underlying implementation.
 
 virtual void setProperty(
    const std::string & name,
    const Poco::Any & value
) = 0;
Set the value of a property.
Properties are a generic extension mechanism for session implementations. and are defined by the underlying SessionImpl instance.
Throws a NotSupportedException if the requested property is not supported by the underlying implementation.