diff options
author | Kurt Zenker <kz@openoffice.org> | 2008-03-06 17:37:32 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2008-03-06 17:37:32 +0000 |
commit | 3d6741ff0fc01edf42c25df2393bf7f5afc6f994 (patch) | |
tree | fc9d0213d9828fdd22c874675aaac1bff989edc5 /extensions/source/abpilot/datasourcehandling.cxx | |
parent | e6c3290e7aee23ba586aeba1b416724a938c99c1 (diff) |
INTEGRATION: CWS odbmacros2 (1.12.44); FILE MERGED
2008/02/04 13:08:56 fs 1.12.44.2: RESYNC: (1.12-1.13); FILE MERGED
2008/01/15 07:18:39 fs 1.12.44.1: #i67987# use a roadmap in this wizard
Diffstat (limited to 'extensions/source/abpilot/datasourcehandling.cxx')
-rw-r--r-- | extensions/source/abpilot/datasourcehandling.cxx | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/extensions/source/abpilot/datasourcehandling.cxx b/extensions/source/abpilot/datasourcehandling.cxx index eef4b28f3..f1ba4a802 100644 --- a/extensions/source/abpilot/datasourcehandling.cxx +++ b/extensions/source/abpilot/datasourcehandling.cxx @@ -4,9 +4,9 @@ * * $RCSfile: datasourcehandling.cxx,v $ * - * $Revision: 1.13 $ + * $Revision: 1.14 $ * - * last change: $Author: ihi $ $Date: 2008-01-14 14:33:39 $ + * last change: $Author: kz $ $Date: 2008-03-06 18:37:32 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -555,6 +555,16 @@ namespace abp } //--------------------------------------------------------------------- + bool ODataSource::hasTable( const ::rtl::OUString& _rTableName ) const + { + if ( !isConnected() ) + return false; + + const StringBag& aTables( getTableNames() ); + return aTables.find( _rTableName ) != aTables.end(); + } + + //--------------------------------------------------------------------- const StringBag& ODataSource::getTableNames() const SAL_THROW (( )) { m_pImpl->aTables.clear(); |