LibreOffice Module dbaccess (master) 1
|
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... | |
ODatabaseModelImpl * | m_pModelImplementation |
bool | m_bPropagateCommitToRoot |
bool | m_bDisposingSubStorages |
Definition at line 88 of file ModelImpl.cxx.
|
private |
Definition at line 91 of file ModelImpl.cxx.
|
inlineexplicit |
Definition at line 101 of file ModelImpl.cxx.
|
inlineoverrideprotectedvirtual |
Definition at line 109 of file ModelImpl.cxx.
|
overridevirtual |
Definition at line 308 of file ModelImpl.cxx.
References aEvent, dbaccess::ODatabaseModelImpl::commitRootStorage(), m_aExposedStorages, m_aMutex, m_bPropagateCommitToRoot, m_pModelImplementation, pos, and dbaccess::ODatabaseModelImpl::setModified().
bool dbaccess::DocumentStorageAccess::commitEmbeddedStorage | ( | bool | _bPreventRootCommits | ) |
commits the dedicated "database" storage
Definition at line 247 of file ModelImpl.cxx.
References dbaccess::tools::stor::commitStorageIfWriteable(), DBG_UNHANDLED_EXCEPTION, Exception, impl_resumeCommitPropagation(), impl_suspendCommitPropagation(), m_aExposedStorages, and pos.
Referenced by dbaccess::ODatabaseModelImpl::commitEmbeddedStorage().
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().
void dbaccess::DocumentStorageAccess::dispose | ( | void | ) |
Definition at line 156 of file ModelImpl.cxx.
References DBG_UNHANDLED_EXCEPTION, Exception, m_aExposedStorages, m_aMutex, and m_pModelImplementation.
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().
|
overridevirtual |
Definition at line 341 of file ModelImpl.cxx.
References find(), m_aExposedStorages, m_bDisposingSubStorages, and Source.
|
overridevirtual |
Definition at line 271 of file ModelImpl.cxx.
References impl_openSubStorage_nothrow(), m_aExposedStorages, m_aMutex, and pos.
Referenced by dbaccess::ODatabaseModelImpl::getStorage().
|
overridevirtual |
Definition at line 284 of file ModelImpl.cxx.
References dbaccess::ODatabaseModelImpl::getRootStorage(), m_pModelImplementation, and name.
|
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().
|
inlineprivate |
Definition at line 148 of file ModelImpl.cxx.
References m_bPropagateCommitToRoot.
Referenced by commitEmbeddedStorage().
|
inlineprivate |
Definition at line 143 of file ModelImpl.cxx.
References m_bPropagateCommitToRoot.
Referenced by commitEmbeddedStorage().
|
overridevirtual |
Definition at line 303 of file ModelImpl.cxx.
|
overridevirtual |
Definition at line 331 of file ModelImpl.cxx.
|
overridevirtual |
Definition at line 336 of file ModelImpl.cxx.
|
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().
|
private |
Definition at line 93 of file ModelImpl.cxx.
Referenced by commited(), dispose(), and getDocumentSubStorage().
|
private |
Definition at line 98 of file ModelImpl.cxx.
Referenced by disposeStorages(), and disposing().
|
private |
Definition at line 97 of file ModelImpl.cxx.
Referenced by commited(), impl_resumeCommitPropagation(), and impl_suspendCommitPropagation().
|
private |
Definition at line 96 of file ModelImpl.cxx.
Referenced by commited(), dispose(), getDocumentSubStoragesNames(), and impl_openSubStorage_nothrow().