Bump for 3.6-28
[LibreOffice.git] / connectivity / source / drivers / mozab / MTable.cxx
blob47f710786f2343241e690aacfe14555acaa778ac
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org. If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
27 ************************************************************************/
29 #include "MTable.hxx"
30 #include "MTables.hxx"
31 #include "MColumns.hxx"
32 #include <com/sun/star/sdbc/XRow.hpp>
33 #include <com/sun/star/sdbc/XResultSet.hpp>
34 #include <com/sun/star/sdbcx/KeyType.hpp>
35 #include <com/sun/star/sdbc/KeyRule.hpp>
36 #include <cppuhelper/typeprovider.hxx>
37 #include <com/sun/star/lang/DisposedException.hpp>
38 #include <com/sun/star/sdbc/ColumnValue.hpp>
39 #include <comphelper/sequence.hxx>
40 #include <comphelper/extract.hxx>
41 #include <comphelper/types.hxx>
42 #include "connectivity/dbtools.hxx"
43 #include "connectivity/TKeys.hxx"
44 #include "connectivity/TIndexes.hxx"
45 #include "MCatalog.hxx"
48 using namespace ::comphelper;
49 using namespace connectivity::mozab;
50 using namespace connectivity;
51 using namespace ::com::sun::star::uno;
52 using namespace ::com::sun::star::beans;
53 using namespace ::com::sun::star::sdbcx;
54 using namespace ::com::sun::star::sdbc;
55 using namespace ::com::sun::star::container;
56 using namespace ::com::sun::star::lang;
58 // -------------------------------------------------------------------------
59 OTable::OTable( sdbcx::OCollection* _pTables, OConnection* _pConnection,
60 const ::rtl::OUString& _Name, const ::rtl::OUString& _Type, const ::rtl::OUString& _Description )
61 :OTable_Base(_pTables, _pConnection, sal_True, _Name, _Type, _Description )
62 ,m_pConnection( _pConnection )
64 construct();
67 //--------------------------------------------------------------------------
68 sdbcx::OCollection* OTable::createColumns( const TStringVector& _rNames )
70 return new OColumns( this, m_aMutex, _rNames );
73 //--------------------------------------------------------------------------
74 sdbcx::OCollection* OTable::createKeys(const TStringVector& _rNames)
76 return new OKeysHelper( this, m_aMutex, _rNames );
79 //--------------------------------------------------------------------------
80 sdbcx::OCollection* OTable::createIndexes(const TStringVector& _rNames)
82 return new OIndexesHelper( this, m_aMutex, _rNames );
85 // -----------------------------------------------------------------------------
89 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */