merge the formfield patch from ooo-build
[ooovba.git] / connectivity / source / drivers / postgresql / pq_xkeys.hxx
bloba9188080923369038895e4336aa466b9fd2e7ef2
1 /*************************************************************************
3 * $RCSfile: pq_xkeys.hxx,v $
5 * $Revision: 1.1.2.2 $
7 * last change: $Author: jbu $ $Date: 2004/06/10 15:27:10 $
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 #ifndef _PQ_KEYS_HXX_
63 #define _PQ_KEYS_HXX_
65 #include "pq_xcontainer.hxx"
67 namespace pq_sdbc_driver
69 class Keys : public Container
71 rtl::OUString m_schemaName;
72 rtl::OUString m_tableName;
74 public: // instances Columns 'exception safe'
75 static com::sun::star::uno::Reference< com::sun::star::container::XIndexAccess > create(
76 const ::rtl::Reference< RefCountedMutex > & refMutex,
77 const ::com::sun::star::uno::Reference< com::sun::star::sdbc::XConnection > & origin,
78 ConnectionSettings *pSettings,
79 const rtl::OUString &schemaName,
80 const rtl::OUString &tableName);
82 protected:
83 Keys(
84 const ::rtl::Reference< RefCountedMutex > & refMutex,
85 const ::com::sun::star::uno::Reference< com::sun::star::sdbc::XConnection > & origin,
86 ConnectionSettings *pSettings,
87 const rtl::OUString &schemaName,
88 const rtl::OUString &tableName);
90 virtual ~Keys();
92 public: // XAppend
93 virtual void SAL_CALL appendByDescriptor(
94 const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& descriptor )
95 throw (::com::sun::star::sdbc::SQLException,
96 ::com::sun::star::container::ElementExistException,
97 ::com::sun::star::uno::RuntimeException);
99 public: // XDrop
100 virtual void SAL_CALL dropByIndex( sal_Int32 index )
101 throw (::com::sun::star::sdbc::SQLException,
102 ::com::sun::star::lang::IndexOutOfBoundsException,
103 ::com::sun::star::uno::RuntimeException);
105 public: // XRefreshable
106 virtual void SAL_CALL refresh( ) throw (::com::sun::star::uno::RuntimeException);
108 public: // XDataDescriptorFactory
109 virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > SAL_CALL createDataDescriptor( )
110 throw (::com::sun::star::uno::RuntimeException);
114 class KeyDescriptors : public Container
116 public: // instances Columns 'exception safe'
117 static com::sun::star::uno::Reference< com::sun::star::container::XIndexAccess > create(
118 const ::rtl::Reference< RefCountedMutex > & refMutex,
119 const ::com::sun::star::uno::Reference< com::sun::star::sdbc::XConnection > & origin,
120 ConnectionSettings *pSettings );
122 protected:
123 KeyDescriptors(
124 const ::rtl::Reference< RefCountedMutex > & refMutex,
125 const ::com::sun::star::uno::Reference< com::sun::star::sdbc::XConnection > & origin,
126 ConnectionSettings *pSettings );
128 public: // XDataDescriptorFactory
129 virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > SAL_CALL createDataDescriptor( )
130 throw (::com::sun::star::uno::RuntimeException);
134 #endif