User: rt Date: 2008-06-06 13:14:24+0000 Modified: dba/connectivity/inc/connectivity/TTableHelper.hxx
Log: INTEGRATION: CWS dba30c (1.6.10); FILE MERGED 2008/05/08 12:54:45 oj 1.6.10.3: #i64472# use of create pattern 2008/05/08 07:14:48 oj 1.6.10.2: #i87131# collect keys only once, getKeys always refetch keys 2008/05/05 10:57:50 oj 1.6.10.1: #i87131# collect keys only once, getKeys always refetch the keys File Changes: Directory: /dba/connectivity/inc/connectivity/ ============================================== File [changed]: TTableHelper.hxx Url: http://dba.openoffice.org/source/browse/dba/connectivity/inc/connectivity/TTableHelper.hxx?r1=1.6&r2=1.7 Delta lines: +13 -2 -------------------- --- TTableHelper.hxx 2008-04-10 07:33:56+0000 1.6 +++ TTableHelper.hxx 2008-06-06 13:14:21+0000 1.7 @@ -32,7 +32,9 @@ #define CONNECTIVITY_TABLEHELPER_HXX #include "connectivity/sdbcx/VTable.hxx" +#include "connectivity/sdbcx/VKey.hxx" #include "connectivity/StdTypeDefs.hxx" +#include <comphelper/stl_types.hxx> namespace connectivity { @@ -40,13 +42,16 @@ ::rtl::OUString getTypeString(const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xColProp); + DECLARE_STL_USTRINGACCESS_MAP( sdbcx::TKeyProperties , TKeyMap); + class OTableHelper : public OTable_TYPEDEF { + TKeyMap m_aKeys; ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XDatabaseMetaData > m_xMetaData; ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection > m_xConnection; - void refreshPrimaryKeys(std::vector< ::rtl::OUString>& _rKeys); - void refreshForgeinKeys(std::vector< ::rtl::OUString>& _rKeys); + void refreshPrimaryKeys(TStringVector& _rKeys); + void refreshForgeinKeys(TStringVector& _rKeys); protected: /** creates the column collection for the table @@ -109,6 +114,12 @@ virtual void SAL_CALL alterColumnByIndex( sal_Int32 index, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& descriptor ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException); // XNamed virtual ::rtl::OUString SAL_CALL getName() throw(::com::sun::star::uno::RuntimeException); + + // helper method to get key properties + sdbcx::TKeyProperties getKeyProperties(const ::rtl::OUString& _sName) const; + void addKey(const ::rtl::OUString& _sName,const sdbcx::TKeyProperties& _aKeyProperties); + + virtual ::rtl::OUString getTypeCreatePattern() const; }; } #endif // CONNECTIVITY_TABLEHELPER_HXX --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
