update dev300-m58
[ooovba.git] / offapi / com / sun / star / sdbcx / View.idl
blobc8e9341e3ca65c3f6df36f074d68669aefa03ba8
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: View.idl,v $
10 * $Revision: 1.11 $
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_View_idl__
31 #define __com_sun_star_sdbcx_View_idl__
33 #ifndef __com_sun_star_beans_XPropertySet_idl__
34 #include <com/sun/star/beans/XPropertySet.idl>
35 #endif
37 module com { module sun { module star { module sdbcx {
39 published interface XRename;
40 published interface XAlterView;
43 /** is used to specify views on data. A view object is only used for creation and
44 deletion. Inspecting the command of a view is normally not supported.
46 <p>
47 If a view is going to be added to a database, the view must have a unique
48 name within the view and the table container, as it can be used like a table.
49 <b>
50 Note:
51 </b>
52 After addition, both the containers for views and the container for tables must
53 contain an element for the view.
54 </p>
56 published service View
59 /** is optional for implementation.
61 [optional] interface XRename;
63 // gives access to the properties.
64 interface com::sun::star::beans::XPropertySet;
66 /** allows changing the view's <member>Command</member>.
68 [optional] interface XAlterView;
71 /** is the name of the view.
73 [readonly, property] string Name;
76 /** is the name of the views catalog, may be empty.
78 [readonly, property] string CatalogName;
81 /** is the name of the view's schema, may be empty.
83 [readonly, property] string SchemaName;
86 /** is the command for creating the view.
88 <p>This is typically a SQL Select-Statement.</p>
90 <p>This property might be empty when a backend does not support retrieving the current
91 SQL command of a view. However, if the <code>View</code> supports altering its command
92 via the <member>XAlterView</member> interface, then it's required to also provide the
93 current SQL command in the <code>Command</code> property.</p>
95 [readonly, property] string Command;
98 /** indicates if a check option should be used for the view.
100 @see com::sun::star::sdbcx::CheckOption
102 [readonly, property] long CheckOption;
105 //=============================================================================
107 }; }; }; };
109 /*===========================================================================
110 ===========================================================================*/
111 #endif