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: XAlterTable.idl,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 __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
>
37 #ifndef __com_sun_star_container_NoSuchElementException_idl__
38 #include
<com
/sun
/star
/container
/NoSuchElementException.idl
>
41 #ifndef __com_sun_star_lang_IndexOutOfBoundsException_idl__
42 #include
<com
/sun
/star
/lang
/IndexOutOfBoundsException.idl
>
45 module com
{ module sun
{ module star
{ module beans
{
46 published
interface XPropertySet
;
49 #ifndef __com_sun_star_sdbc_SQLException_idl__
50 #include
<com
/sun
/star
/sdbc
/SQLException.idl
>
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
64 the column name which to alter
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
80 the position of the column to alter
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 //=============================================================================
98 /*===========================================================================
99 ===========================================================================*/