1*ebfcd9afSAndrew Rist/**************************************************************
2cdf0e10cSrcweir *
3*ebfcd9afSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4*ebfcd9afSAndrew Rist * or more contributor license agreements.  See the NOTICE file
5*ebfcd9afSAndrew Rist * distributed with this work for additional information
6*ebfcd9afSAndrew Rist * regarding copyright ownership.  The ASF licenses this file
7*ebfcd9afSAndrew Rist * to you under the Apache License, Version 2.0 (the
8*ebfcd9afSAndrew Rist * "License"); you may not use this file except in compliance
9*ebfcd9afSAndrew Rist * with the License.  You may obtain a copy of the License at
10*ebfcd9afSAndrew Rist *
11*ebfcd9afSAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
12*ebfcd9afSAndrew Rist *
13*ebfcd9afSAndrew Rist * Unless required by applicable law or agreed to in writing,
14*ebfcd9afSAndrew Rist * software distributed under the License is distributed on an
15*ebfcd9afSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*ebfcd9afSAndrew Rist * KIND, either express or implied.  See the License for the
17*ebfcd9afSAndrew Rist * specific language governing permissions and limitations
18*ebfcd9afSAndrew Rist * under the License.
19*ebfcd9afSAndrew Rist *
20*ebfcd9afSAndrew Rist *************************************************************/
21*ebfcd9afSAndrew Rist
22*ebfcd9afSAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweir#ifndef __com_sun_star_sdb_tools_XTableRename_idl__
25cdf0e10cSrcweir#define __com_sun_star_sdb_tools_XTableRename_idl__
26cdf0e10cSrcweir
27cdf0e10cSrcweir#ifndef __com_sun_star_sdbc_SQLException_idl__
28cdf0e10cSrcweir#include <com/sun/star/sdbc/SQLException.idl>
29cdf0e10cSrcweir#endif
30cdf0e10cSrcweir#include <com/sun/star/sdb/tools/XConnectionSupplier.idl>
31cdf0e10cSrcweir#ifndef __com_sun_star_lang_XInitialization_idl__
32cdf0e10cSrcweir#include <com/sun/star/lang/XInitialization.idl>
33cdf0e10cSrcweir#endif
34cdf0e10cSrcweir#ifndef __com_sun_star_beans_XPropertySet_idl__
35cdf0e10cSrcweir#include <com/sun/star/beans/XPropertySet.idl>
36cdf0e10cSrcweir#endif
37cdf0e10cSrcweir
38cdf0e10cSrcweir//=============================================================================
39cdf0e10cSrcweirmodule com {  module sun {  module star {  module sdb { module tools {
40cdf0e10cSrcweir//=============================================================================
41cdf0e10cSrcweir
42cdf0e10cSrcweir//-----------------------------------------------------------------------------
43cdf0e10cSrcweir/** allows to rename table.
44cdf0e10cSrcweir
45cdf0e10cSrcweir    @see com::sun::star::sdb::DataSource::Settings
46cdf0e10cSrcweir
47cdf0e10cSrcweir    @since OOo 3.3
48cdf0e10cSrcweir*/
49cdf0e10cSrcweirinterface XTableRename
50cdf0e10cSrcweir{
51cdf0e10cSrcweir    interface XConnectionSupplier;
52cdf0e10cSrcweir
53cdf0e10cSrcweir    /** rename the given table to the new name
54cdf0e10cSrcweir
55cdf0e10cSrcweir        @param table
56cdf0e10cSrcweir            the table to be renamed
57cdf0e10cSrcweir        @param newName
58cdf0e10cSrcweir            the new name of the table
59cdf0e10cSrcweir        @throws com::sun::star::sdbc::SQLException
60cdf0e10cSrcweir    */
61cdf0e10cSrcweir    void  rename( [in] com::sun::star::beans::XPropertySet table, [in] string newName)
62cdf0e10cSrcweir        raises ( com::sun::star::sdbc::SQLException );
63cdf0e10cSrcweir
64cdf0e10cSrcweir
65cdf0e10cSrcweir};
66cdf0e10cSrcweir//=============================================================================
67cdf0e10cSrcweir}; }; }; }; };
68cdf0e10cSrcweir//=============================================================================
69cdf0e10cSrcweir
70cdf0e10cSrcweir#endif
71cdf0e10cSrcweir
72