update dev300-m58
[ooovba.git] / offapi / com / sun / star / sdbcx / XAlterTable.idl
blob3689eb295af5989d005db9b742903dde619757df
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: XAlterTable.idl,v $
10 * $Revision: 1.12 $
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 __com_sun_star_sdbcx_XAlterTable_idl__
31 #define __com_sun_star_sdbcx_XAlterTable_idl__
33 #ifndef __com_sun_star_uno_XInterface_idl__
34 #include <com/sun/star/uno/XInterface.idl>
35 #endif
37 #ifndef __com_sun_star_container_NoSuchElementException_idl__
38 #include <com/sun/star/container/NoSuchElementException.idl>
39 #endif
41 #ifndef __com_sun_star_lang_IndexOutOfBoundsException_idl__
42 #include <com/sun/star/lang/IndexOutOfBoundsException.idl>
43 #endif
45 module com { module sun { module star { module beans {
46 published interface XPropertySet;
47 };};};};
49 #ifndef __com_sun_star_sdbc_SQLException_idl__
50 #include <com/sun/star/sdbc/SQLException.idl>
51 #endif
53 module com { module sun { module star { module sdbcx {
55 /** is used for creating and appending new objects to a specific container.
57 published interface XAlterTable: com::sun::star::uno::XInterface
60 /** is intended to alter an existing column identified by its name.
61 This operation must be atomic, in that it is done in one step.s
63 @param colName
64 the column name which to alter
65 @param descriptor
66 the new descriptor for the new column
67 @throws com::sun::star::sdbc::SQLException
68 if a database access error occurs.
70 void alterColumnByName([in]string colName,
71 [in]com::sun::star::beans::XPropertySet descriptor)
72 raises (com::sun::star::sdbc::SQLException,
73 com::sun::star::container::NoSuchElementException);
74 //-------------------------------------------------------------------------
76 /** is intended to alter an existing column identified by its position.
77 This operation must be atomic, in that it is done in one step.s
79 @param index
80 the position of the column to alter
81 @param descriptor
82 the new descriptor for the new column
83 @throws com::sun::star::sdbc::SQLException
84 if a database access error occurs.
85 @throws com::sun::star::lang::IndexOutOfBoundsException
86 if the given index does not denote an existing column.
88 void alterColumnByIndex([in]long index,
89 [in]com::sun::star::beans::XPropertySet descriptor) raises
90 (com::sun::star::sdbc::SQLException,
91 com::sun::star::lang::IndexOutOfBoundsException);
94 //=============================================================================
96 }; }; }; };
98 /*===========================================================================
99 ===========================================================================*/
100 #endif