update dev300-m58
[ooovba.git] / connectivity / source / drivers / evoab2 / NTable.hxx
blob84ecfed7add029dfc2d9b8e1a73f268a07ba5e05
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: NTable.hxx,v $
10 * $Revision: 1.4 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef _CONNECTIVITY_EVOAB_TABLE_HXX_
32 #define _CONNECTIVITY_EVOAB_TABLE_HXX_
34 #include "NConnection.hxx"
35 #include "connectivity/sdbcx/VTable.hxx"
37 namespace connectivity
39 namespace evoab
41 typedef connectivity::sdbcx::OTable OEvoabTable_TYPEDEF;
43 ::rtl::OUString getTypeString(const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xColProp);
45 class OEvoabTable : public OEvoabTable_TYPEDEF
47 ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XDatabaseMetaData > m_xMetaData;
48 OEvoabConnection* m_pConnection;
50 public:
51 OEvoabTable( sdbcx::OCollection* _pTables,
52 OEvoabConnection* _pConnection,
53 const ::rtl::OUString& _Name,
54 const ::rtl::OUString& _Type,
55 const ::rtl::OUString& _Description = ::rtl::OUString(),
56 const ::rtl::OUString& _SchemaName = ::rtl::OUString(),
57 const ::rtl::OUString& _CatalogName = ::rtl::OUString()
60 OEvoabConnection* getConnection() { return m_pConnection;}
62 virtual void refreshColumns();
64 ::rtl::OUString getTableName() const { return m_Name; }
65 ::rtl::OUString getSchema() const { return m_SchemaName; }
70 #endif // _CONNECTIVITY_EVOAB_TABLE_HXX_