Update ooo320-m1
[ooovba.git] / connectivity / source / drivers / postgresql / pq_xindexcolumn.cxx
blob4e974afc366e4449af31453c04d86f88d77d82a7
1 /*************************************************************************
3 * $RCSfile: pq_xindexcolumn.cxx,v $
5 * $Revision: 1.1.2.1 $
7 * last change: $Author: jbu $ $Date: 2004/06/10 15:27:03 $
9 * The Contents of this file are made available subject to the terms of
10 * either of the following licenses
12 * - GNU Lesser General Public License Version 2.1
13 * - Sun Industry Standards Source License Version 1.1
15 * Sun Microsystems Inc., October, 2000
17 * GNU Lesser General Public License Version 2.1
18 * =============================================
19 * Copyright 2000 by Sun Microsystems, Inc.
20 * 901 San Antonio Road, Palo Alto, CA 94303, USA
22 * This library is free software; you can redistribute it and/or
23 * modify it under the terms of the GNU Lesser General Public
24 * License version 2.1, as published by the Free Software Foundation.
26 * This library is distributed in the hope that it will be useful,
27 * but WITHOUT ANY WARRANTY; without even the implied warranty of
28 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
29 * Lesser General Public License for more details.
31 * You should have received a copy of the GNU Lesser General Public
32 * License along with this library; if not, write to the Free Software
33 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
34 * MA 02111-1307 USA
37 * Sun Industry Standards Source License Version 1.1
38 * =================================================
39 * The contents of this file are subject to the Sun Industry Standards
40 * Source License Version 1.1 (the "License"); You may not use this file
41 * except in compliance with the License. You may obtain a copy of the
42 * License at http://www.openoffice.org/license.html.
44 * Software provided under this License is provided on an "AS IS" basis,
45 * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
46 * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
47 * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
48 * See the License for the specific provisions governing your rights and
49 * obligations concerning the Software.
51 * The Initial Developer of the Original Code is: Joerg Budischewski
53 * Copyright: 2000 by Sun Microsystems, Inc.
55 * All Rights Reserved.
57 * Contributor(s): Joerg Budischewski
60 ************************************************************************/
62 #include <cppuhelper/typeprovider.hxx>
64 #include "pq_xindexcolumn.hxx"
66 using com::sun::star::uno::Any;
67 using com::sun::star::uno::Reference;
68 using com::sun::star::uno::RuntimeException;
69 using com::sun::star::uno::Type;
70 using com::sun::star::uno::Sequence;
72 using com::sun::star::beans::XPropertySet;
74 namespace pq_sdbc_driver
76 #define ASCII_STR(x) OUString( RTL_CONSTASCII_USTRINGPARAM( x ) )
78 IndexColumn::IndexColumn( const ::rtl::Reference< RefCountedMutex > & refMutex,
79 const Reference< com::sun::star::sdbc::XConnection > & connection,
80 ConnectionSettings *pSettings )
81 : ReflectionBase(
82 getStatics().refl.indexColumn.implName,
83 getStatics().refl.indexColumn.serviceNames,
84 refMutex,
85 connection,
86 pSettings,
87 * getStatics().refl.indexColumn.pProps )
90 Reference< XPropertySet > IndexColumn::createDataDescriptor( ) throw (RuntimeException)
92 IndexColumnDescriptor * pIndexColumn = new IndexColumnDescriptor(
93 m_refMutex, m_conn, m_pSettings );
94 pIndexColumn->copyValuesFrom( this );
96 return Reference< XPropertySet > ( pIndexColumn );
100 IndexColumnDescriptor::IndexColumnDescriptor(
101 const ::rtl::Reference< RefCountedMutex > & refMutex,
102 const Reference< com::sun::star::sdbc::XConnection > & connection,
103 ConnectionSettings *pSettings )
104 : ReflectionBase(
105 getStatics().refl.indexColumnDescriptor.implName,
106 getStatics().refl.indexColumnDescriptor.serviceNames,
107 refMutex,
108 connection,
109 pSettings,
110 * getStatics().refl.indexColumnDescriptor.pProps )
113 Reference< XPropertySet > IndexColumnDescriptor::createDataDescriptor( ) throw (RuntimeException)
115 IndexColumnDescriptor * pIndexColumn = new IndexColumnDescriptor(
116 m_refMutex, m_conn, m_pSettings );
117 pIndexColumn->copyValuesFrom( this );
119 return Reference< XPropertySet > ( pIndexColumn );