User: kz Date: 05/01/21 09:03:40 Modified: /dba/dbaccess/source/core/dataaccess/ databasedocument.cxx
Log: INTEGRATION: CWS dba22 (1.7.8); FILE MERGED 2005/01/11 07:26:31 oj 1.7.8.1: #i39123# commit embedded storage File Changes: Directory: /dba/dbaccess/source/core/dataaccess/ ================================================ File [changed]: databasedocument.cxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/core/dataaccess/databasedocument.cxx?r1=1.7&r2=1.8 Delta lines: +19 -0 -------------------- --- databasedocument.cxx 3 Dec 2004 14:34:06 -0000 1.7 +++ databasedocument.cxx 21 Jan 2005 17:03:37 -0000 1.8 @@ -1072,6 +1072,25 @@ m_aFlushListeners.removeInterface(_xListener); } // ----------------------------------------------------------------------------- +sal_Bool ODatabaseSource::commitEmbeddedStorage() +{ + sal_Bool bStore = sal_False; + try + { + TStorages::iterator aFind = m_aStorages.find(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("database"))); + if ( aFind != m_aStorages.end() ) + { + Reference<XTransactedObject> xTrans(aFind->second,UNO_QUERY); + if ( bStore = xTrans.is() ) + xTrans->commit(); + } + } + catch(Exception&) + { + OSL_ENSURE(0,"Exception Caught: Could not store embedded database!"); + } + return bStore; +} //........................................................................ } // namespace dbaccess //........................................................................ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
