LibreOffice Module dbaccess (master) 1
Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
dbaccess::DocumentStorageAccess Class Reference
Inheritance diagram for dbaccess::DocumentStorageAccess:
[legend]
Collaboration diagram for dbaccess::DocumentStorageAccess:
[legend]

Public Member Functions

 DocumentStorageAccess (ODatabaseModelImpl &_rModelImplementation)
 
void dispose ()
 
virtual Reference< XStorage > SAL_CALL getDocumentSubStorage (const OUString &aStorageName, ::sal_Int32 _nMode) override
 
virtual Sequence< OUString > SAL_CALL getDocumentSubStoragesNames () override
 
virtual void SAL_CALL preCommit (const css::lang::EventObject &aEvent) override
 
virtual void SAL_CALL commited (const css::lang::EventObject &aEvent) override
 
virtual void SAL_CALL preRevert (const css::lang::EventObject &aEvent) override
 
virtual void SAL_CALL reverted (const css::lang::EventObject &aEvent) override
 
virtual void SAL_CALL disposing (const css::lang::EventObject &Source) override
 
void disposeStorages ()
 disposes all storages managed by this instance More...
 
void commitStorages ()
 disposes all known sub storages More...
 
bool commitEmbeddedStorage (bool _bPreventRootCommits)
 commits the dedicated "database" storage More...
 

Protected Member Functions

virtual ~DocumentStorageAccess () override
 

Private Types

typedef std::map< OUString, Reference< XStorage > > NamedStorages
 

Private Member Functions

Reference< XStorage > impl_openSubStorage_nothrow (const OUString &_rStorageName, sal_Int32 _nMode)
 opens the sub storage with the given name, in the given mode More...
 
void impl_suspendCommitPropagation ()
 
void impl_resumeCommitPropagation ()
 

Private Attributes

::osl::Mutex m_aMutex
 
NamedStorages m_aExposedStorages
 all sub storages which we ever gave to the outer world More...
 
ODatabaseModelImplm_pModelImplementation
 
bool m_bPropagateCommitToRoot
 
bool m_bDisposingSubStorages
 

Detailed Description

Definition at line 88 of file ModelImpl.cxx.

Member Typedef Documentation

◆ NamedStorages

typedef std::map< OUString, Reference< XStorage > > dbaccess::DocumentStorageAccess::NamedStorages
private

Definition at line 91 of file ModelImpl.cxx.

Constructor & Destructor Documentation

◆ DocumentStorageAccess()

dbaccess::DocumentStorageAccess::DocumentStorageAccess ( ODatabaseModelImpl _rModelImplementation)
inlineexplicit

Definition at line 101 of file ModelImpl.cxx.

◆ ~DocumentStorageAccess()

virtual dbaccess::DocumentStorageAccess::~DocumentStorageAccess ( )
inlineoverrideprotectedvirtual

Definition at line 109 of file ModelImpl.cxx.

Member Function Documentation

◆ commited()

void SAL_CALL dbaccess::DocumentStorageAccess::commited ( const css::lang::EventObject &  aEvent)
overridevirtual

◆ commitEmbeddedStorage()

bool dbaccess::DocumentStorageAccess::commitEmbeddedStorage ( bool  _bPreventRootCommits)

◆ commitStorages()

void dbaccess::DocumentStorageAccess::commitStorages ( )

disposes all known sub storages

Definition at line 231 of file ModelImpl.cxx.

References dbaccess::tools::stor::commitStorageIfWriteable(), and m_aExposedStorages.

Referenced by dbaccess::ODatabaseModelImpl::commitStorages().

◆ dispose()

void dbaccess::DocumentStorageAccess::dispose ( void  )

◆ disposeStorages()

void dbaccess::DocumentStorageAccess::disposeStorages ( )

disposes all storages managed by this instance

Definition at line 211 of file ModelImpl.cxx.

References DBG_UNHANDLED_EXCEPTION, Exception, m_aExposedStorages, and m_bDisposingSubStorages.

Referenced by dbaccess::ODatabaseModelImpl::disposeStorages().

◆ disposing()

void SAL_CALL dbaccess::DocumentStorageAccess::disposing ( const css::lang::EventObject &  Source)
overridevirtual

Definition at line 341 of file ModelImpl.cxx.

References find(), m_aExposedStorages, m_bDisposingSubStorages, and Source.

◆ getDocumentSubStorage()

Reference< XStorage > SAL_CALL dbaccess::DocumentStorageAccess::getDocumentSubStorage ( const OUString &  aStorageName,
::sal_Int32  _nMode 
)
overridevirtual

◆ getDocumentSubStoragesNames()

Sequence< OUString > SAL_CALL dbaccess::DocumentStorageAccess::getDocumentSubStoragesNames ( )
overridevirtual

◆ impl_openSubStorage_nothrow()

Reference< XStorage > dbaccess::DocumentStorageAccess::impl_openSubStorage_nothrow ( const OUString &  _rStorageName,
sal_Int32  _nMode 
)
private

opens the sub storage with the given name, in the given mode

Definition at line 179 of file ModelImpl.cxx.

References DBG_UNHANDLED_EXCEPTION, Exception, dbaccess::ODatabaseModelImpl::getOrCreateRootStorage(), dbaccess::ODatabaseModelImpl::m_bDocumentReadOnly, and m_pModelImplementation.

Referenced by getDocumentSubStorage().

◆ impl_resumeCommitPropagation()

void dbaccess::DocumentStorageAccess::impl_resumeCommitPropagation ( )
inlineprivate

Definition at line 148 of file ModelImpl.cxx.

References m_bPropagateCommitToRoot.

Referenced by commitEmbeddedStorage().

◆ impl_suspendCommitPropagation()

void dbaccess::DocumentStorageAccess::impl_suspendCommitPropagation ( )
inlineprivate

Definition at line 143 of file ModelImpl.cxx.

References m_bPropagateCommitToRoot.

Referenced by commitEmbeddedStorage().

◆ preCommit()

void SAL_CALL dbaccess::DocumentStorageAccess::preCommit ( const css::lang::EventObject &  aEvent)
overridevirtual

Definition at line 303 of file ModelImpl.cxx.

◆ preRevert()

void SAL_CALL dbaccess::DocumentStorageAccess::preRevert ( const css::lang::EventObject &  aEvent)
overridevirtual

Definition at line 331 of file ModelImpl.cxx.

◆ reverted()

void SAL_CALL dbaccess::DocumentStorageAccess::reverted ( const css::lang::EventObject &  aEvent)
overridevirtual

Definition at line 336 of file ModelImpl.cxx.

Member Data Documentation

◆ m_aExposedStorages

NamedStorages dbaccess::DocumentStorageAccess::m_aExposedStorages
private

all sub storages which we ever gave to the outer world

Definition at line 95 of file ModelImpl.cxx.

Referenced by commited(), commitEmbeddedStorage(), commitStorages(), dispose(), disposeStorages(), disposing(), and getDocumentSubStorage().

◆ m_aMutex

::osl::Mutex dbaccess::DocumentStorageAccess::m_aMutex
private

Definition at line 93 of file ModelImpl.cxx.

Referenced by commited(), dispose(), and getDocumentSubStorage().

◆ m_bDisposingSubStorages

bool dbaccess::DocumentStorageAccess::m_bDisposingSubStorages
private

Definition at line 98 of file ModelImpl.cxx.

Referenced by disposeStorages(), and disposing().

◆ m_bPropagateCommitToRoot

bool dbaccess::DocumentStorageAccess::m_bPropagateCommitToRoot
private

◆ m_pModelImplementation

ODatabaseModelImpl* dbaccess::DocumentStorageAccess::m_pModelImplementation
private

The documentation for this class was generated from the following file: