INTEGRATION: CWS adabas2 (1.5.128); FILE MERGED

2005/03/22 13:15:06 fs 1.5.128.1: #i45671# XStorable at the document, not at the data source
This commit is contained in:
Vladimir Glazounov 2005-03-23 13:53:30 +00:00
parent 230ea9a268
commit 25caf58389

View file

@ -2,9 +2,9 @@
*
* $RCSfile: datasourcehandling.cxx,v $
*
* $Revision: 1.5 $
* $Revision: 1.6 $
*
* last change: $Author: hr $ $Date: 2004-08-02 17:36:38 $
* last change: $Author: vg $ $Date: 2005-03-23 14:53:30 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@ -95,6 +95,9 @@
#ifndef _COM_SUN_STAR_SDB_XCOMPLETEDCONNECTION_HPP_
#include <com/sun/star/sdb/XCompletedConnection.hpp>
#endif
#ifndef _COM_SUN_STAR_SDB_XDOCUMENTDATASOURCE_HPP_
#include <com/sun/star/sdb/XDocumentDataSource.hpp>
#endif
#ifndef _COM_SUN_STAR_SDBCX_XTABLESSUPPLIER_HPP_
#include <com/sun/star/sdbcx/XTablesSupplier.hpp>
#endif
@ -535,12 +538,13 @@ namespace abp
return;
try
{
Reference<XStorable> xStorable(m_pImpl->xDataSource,UNO_QUERY);
Reference< XDocumentDataSource > xDocAccess( m_pImpl->xDataSource, UNO_QUERY );
Reference< XStorable > xStorable;
if ( xDocAccess.is() )
xStorable = xStorable.query( xDocAccess->getDatabaseDocument() );
OSL_ENSURE( xStorable.is(),"DataSource is no XStorable!" );
if ( xStorable.is() )
{
xStorable->storeAsURL(m_pImpl->sName,Sequence<PropertyValue>());
}
}
catch(const Exception&)
{