Tag: cws_src680_qiq User: fs Date: 06/05/23 06:54:31 Modified: /dba/connectivity/source/simpledbt/ staticdbtools_s.cxx, staticdbtools_s.hxx
Log: some refactoring of compose/quoteTableName and friends, in preparation of #i51143# File Changes: Directory: /dba/connectivity/source/simpledbt/ ============================================== File [changed]: staticdbtools_s.cxx Url: http://dba.openoffice.org/source/browse/dba/connectivity/source/simpledbt/staticdbtools_s.cxx?r1=1.9&r2=1.9.104.1 Delta lines: +13 -9 -------------------- --- staticdbtools_s.cxx 8 Sep 2005 07:48:54 -0000 1.9 +++ staticdbtools_s.cxx 23 May 2006 13:54:28 -0000 1.9.104.1 @@ -4,9 +4,9 @@ * * $RCSfile: staticdbtools_s.cxx,v $ * - * $Revision: 1.9 $ + * $Revision: 1.9.104.1 $ * - * last change: $Author: rt $ $Date: 2005/09/08 07:48:54 $ + * last change: $Author: fs $ $Date: 2006/05/23 13:54:28 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -156,11 +156,15 @@ } //---------------------------------------------------------------- - ::rtl::OUString ODataAccessStaticTools::quoteTableName(const Reference< XDatabaseMetaData>& _rxMeta, const ::rtl::OUString& _rName - , sal_Bool _bUseCatalogInSelect - , sal_Bool _bUseSchemaInSelect) const + ::rtl::OUString ODataAccessStaticTools::composeTableNameForSelect( const Reference< XConnection >& _rxConnection, const ::rtl::OUString& _rCatalog, const ::rtl::OUString& _rSchema, const ::rtl::OUString& _rName ) const { - return ::dbtools::quoteTableName(_rxMeta, _rName,::dbtools::eInDataManipulation,_bUseCatalogInSelect,_bUseSchemaInSelect); + return ::dbtools::composeTableNameForSelect( _rxConnection, _rCatalog, _rSchema, _rName ); + } + + //---------------------------------------------------------------- + ::rtl::OUString ODataAccessStaticTools::composeTableNameForSelect( const Reference< XConnection >& _rxConnection, const Reference< XPropertySet>& _xTable ) const + { + return ::dbtools::composeTableNameForSelect( _rxConnection, _xTable ); } //---------------------------------------------------------------- File [changed]: staticdbtools_s.hxx Url: http://dba.openoffice.org/source/browse/dba/connectivity/source/simpledbt/staticdbtools_s.hxx?r1=1.9&r2=1.9.104.1 Delta lines: +14 -8 -------------------- --- staticdbtools_s.hxx 8 Sep 2005 07:49:13 -0000 1.9 +++ staticdbtools_s.hxx 23 May 2006 13:54:28 -0000 1.9.104.1 @@ -4,9 +4,9 @@ * * $RCSfile: staticdbtools_s.hxx,v $ * - * $Revision: 1.9 $ + * $Revision: 1.9.104.1 $ * - * last change: $Author: rt $ $Date: 2005/09/08 07:49:13 $ + * last change: $Author: fs $ $Date: 2006/05/23 13:54:28 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -135,11 +135,17 @@ ) const; // ------------------------------------------------ - virtual ::rtl::OUString quoteTableName( - const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XDatabaseMetaData>& _rxMeta, + virtual ::rtl::OUString composeTableNameForSelect( + const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection >& _rxConnection, + const ::rtl::OUString& _rCatalog, + const ::rtl::OUString& _rSchema, const ::rtl::OUString& _rName - , sal_Bool _bUseCatalogInSelect = sal_True - , sal_Bool _bUseSchemaInSelect = sal_True + ) const; + + // ------------------------------------------------ + virtual ::rtl::OUString composeTableNameForSelect( + const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection >& _rxConnection, + const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet>& _xTable ) const; // ------------------------------------------------ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
