1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef __com_sun_star_sdb_tools_XIndexAlteration_idl__
21 #define __com_sun_star_sdb_tools_XIndexAlteration_idl__
23 #include
<com
/sun
/star
/sdbc
/SQLException.idl
>
24 #include
<com
/sun
/star
/sdb
/tools
/XConnectionSupplier.idl
>
25 #include
<com
/sun
/star
/lang
/XInitialization.idl
>
26 #include
<com
/sun
/star
/beans
/XPropertySet.idl
>
28 module com
{ module sun
{ module star
{ module sdb
{ module tools
{
30 /** allows to alter the indexes of a table.
32 @see com::sun::star::sdb::DataSource::Settings
33 @see com::sun::star::sdbcx::XAppend
34 @see com::sun::star::sdbcx::XDrop
38 interface XIndexAlteration
40 interface XConnectionSupplier
;
42 /** drops an object of the related container identified by its name.
44 the table to be altered
46 the name of the column to be dropped
47 @throws com::sun::star::sdbc::SQLException
48 if a database access error occurs.
50 void dropIndex
([in] com
::sun
::star
::beans
::XPropertySet table
,[in] string index
)
51 raises
( com
::sun
::star
::sdbc
::SQLException
);
53 /** creates a new object using the given descriptor and appends it
54 to the related container.
58 The descriptor will not be changed and can be used again to append another object.
60 the table to be altered
62 the descriptor which should be serve to append a new object
63 @throws com::sun::star::sdbc::SQLException
64 if a database access error occurs.
66 void addIndex
([in] com
::sun
::star
::beans
::XPropertySet table
,[in]com
::sun
::star
::beans
::XPropertySet descriptor
)
67 raises
(com
::sun
::star
::sdbc
::SQLException
);
75 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */