Tag: cws_src680_dba23 User: oj Date: 05/02/03 00:06:50 Modified: /dba/dbaccess/source/core/dataaccess/ databasedocument.cxx
Log: RESYNC: (1.7-1.8); FILE MERGED 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.16.1&r2=1.7.16.2 Delta lines: +22 -3 -------------------- --- databasedocument.cxx 20 Jan 2005 16:37:07 -0000 1.7.16.1 +++ databasedocument.cxx 3 Feb 2005 08:06:47 -0000 1.7.16.2 @@ -1076,6 +1076,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]
