1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: MCatalog.hxx,v $
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 ************************************************************************/
30 #ifndef _CONNECTIVITY_MOZAB_CATALOG_HXX_
31 #define _CONNECTIVITY_MOZAB_CATALOG_HXX_
33 #include "connectivity/sdbcx/VCatalog.hxx"
34 // #ifndef _CONNECTIVITY_OFUNCTIONDEFS_HXX_
35 // #include "odbc/OFunctiondefs.hxx"
38 namespace connectivity
42 // please don't name the class the same name as in an other namespaces
43 // some compilers have problems with this task as I noticed on windows
45 class OCatalog
: public connectivity::sdbcx::OCatalog
47 OConnection
* m_pConnection
; // used to get the metadata
48 ::com::sun::star::uno::Reference
< ::com::sun::star::sdbc::XDatabaseMetaData
> m_xMetaData
; // just to make things easier
51 // implementation of the pure virtual methods
52 virtual void refreshTables();
53 virtual void refreshViews() ;
54 virtual void refreshGroups();
55 virtual void refreshUsers() ;
56 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::container::XNameAccess
> SAL_CALL
getTables( ) throw(::com::sun::star::uno::RuntimeException
);
58 OCatalog(OConnection
* _pCon
);
60 OConnection
* getConnection() const { return m_pConnection
; }
61 sdbcx::OCollection
* getPrivateTables() const { return m_pTables
;}
62 sdbcx::OCollection
* getPrivateViews() const { return m_pViews
; }
64 static const ::rtl::OUString
& getDot();
68 #endif // _CONNECTIVITY_MOZAB_CATALOG_HXX_