Kaydet (Commit) e05f3327 authored tarafından Ivo Hinkelmann's avatar Ivo Hinkelmann

INTEGRATION: CWS dba205b (1.4.146); FILE MERGED

2006/09/12 06:22:43 fs 1.4.146.3: #i10000#
2006/09/08 10:31:09 oj 1.4.146.2: typo in header file
2006/08/09 19:52:37 fs 1.4.146.1: refactored the OColumnAlias class, in preparation of fixing #b6248060#
üst ba2de10b
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* *
* $RCSfile: MTable.hxx,v $ * $RCSfile: MTable.hxx,v $
* *
* $Revision: 1.4 $ * $Revision: 1.5 $
* *
* last change: $Author: rt $ $Date: 2005-09-08 06:21:36 $ * last change: $Author: ihi $ $Date: 2006-10-18 13:09:40 $
* *
* The Contents of this file are made available subject to * The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
...@@ -36,8 +36,8 @@ ...@@ -36,8 +36,8 @@
#ifndef _CONNECTIVITY_MOZAB_TABLE_HXX_ #ifndef _CONNECTIVITY_MOZAB_TABLE_HXX_
#define _CONNECTIVITY_MOZAB_TABLE_HXX_ #define _CONNECTIVITY_MOZAB_TABLE_HXX_
#ifndef _CONNECTIVITY_SDBCX_TABLE_HXX_ #ifndef CONNECTIVITY_TABLEHELPER_HXX
#include "connectivity/sdbcx/VTable.hxx" #include "connectivity/TTableHelper.hxx"
#endif #endif
#ifndef _COM_SUN_STAR_SDBC_XDATABASEMETADATA_HPP_ #ifndef _COM_SUN_STAR_SDBC_XDATABASEMETADATA_HPP_
#include <com/sun/star/sdbc/XDatabaseMetaData.hpp> #include <com/sun/star/sdbc/XDatabaseMetaData.hpp>
...@@ -50,14 +50,11 @@ namespace connectivity ...@@ -50,14 +50,11 @@ namespace connectivity
{ {
namespace mozab namespace mozab
{ {
typedef connectivity::sdbcx::OTable OTable_TYPEDEF; typedef ::connectivity::OTableHelper OTable_Base;
::rtl::OUString getTypeString(const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xColProp); class OTable : public OTable_Base
class OTable : public OTable_TYPEDEF
{ {
::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XDatabaseMetaData > m_xMetaData; OConnection* m_pConnection;
OConnection* m_pConnection;
public: public:
OTable( sdbcx::OCollection* _pTables, OConnection* _pConnection); OTable( sdbcx::OCollection* _pTables, OConnection* _pConnection);
...@@ -65,22 +62,21 @@ namespace connectivity ...@@ -65,22 +62,21 @@ namespace connectivity
OConnection* _pConnection, OConnection* _pConnection,
const ::rtl::OUString& _Name, const ::rtl::OUString& _Name,
const ::rtl::OUString& _Type, const ::rtl::OUString& _Type,
const ::rtl::OUString& _Description = ::rtl::OUString(), const ::rtl::OUString& _Description );
const ::rtl::OUString& _SchemaName = ::rtl::OUString(),
const ::rtl::OUString& _CatalogName = ::rtl::OUString()
);
OConnection* getConnection() { return m_pConnection;} OConnection* getConnection() { return m_pConnection;}
sal_Bool isReadOnly() const { return sal_False; } sal_Bool isReadOnly() const { return sal_False; }
virtual void refreshColumns();
::rtl::OUString getTableName() const { return m_Name; } ::rtl::OUString getTableName() const { return m_Name; }
::rtl::OUString getSchema() const { return m_SchemaName; } ::rtl::OUString getSchema() const { return m_SchemaName; }
// com::sun::star::lang::XUnoTunnel // OTableHelper overridables
virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& aIdentifier ) throw(::com::sun::star::uno::RuntimeException); virtual sdbcx::OCollection* createColumns( const TStringVector& _rNames );
static ::com::sun::star::uno::Sequence< sal_Int8 > getUnoTunnelImplementationId(); virtual sdbcx::OCollection* createKeys(const TStringVector& _rNames);
virtual sdbcx::OCollection* createIndexes(const TStringVector& _rNames);
private:
using OTable_Base::getConnection;
}; };
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment