From a7fc82fbc941e46027ba9dba17091173673dadb4 Mon Sep 17 00:00:00 2001 From: "Ocke Janssen [oj]" Date: Wed, 10 Feb 2010 13:04:45 +0100 Subject: dba33e: #i107717# some renaming and wording changed --- .../com/sun/star/sdb/tools/XConnectionSupplier.idl | 67 ++++++++++++++++ .../com/sun/star/sdb/tools/XConnectionSupport.idl | 67 ---------------- offapi/com/sun/star/sdb/tools/XIndexAlteration.idl | 4 +- offapi/com/sun/star/sdb/tools/XKeyAlteration.idl | 4 +- offapi/com/sun/star/sdb/tools/XTableAlteration.idl | 11 ++- offapi/com/sun/star/sdb/tools/XTableRename.idl | 4 +- offapi/com/sun/star/sdb/tools/XViewAccess.idl | 88 ++++++++++++++++++++++ offapi/com/sun/star/sdb/tools/XViewSupport.idl | 88 ---------------------- offapi/com/sun/star/sdb/tools/makefile.mk | 4 +- 9 files changed, 170 insertions(+), 167 deletions(-) create mode 100644 offapi/com/sun/star/sdb/tools/XConnectionSupplier.idl delete mode 100644 offapi/com/sun/star/sdb/tools/XConnectionSupport.idl create mode 100644 offapi/com/sun/star/sdb/tools/XViewAccess.idl delete mode 100644 offapi/com/sun/star/sdb/tools/XViewSupport.idl (limited to 'offapi') diff --git a/offapi/com/sun/star/sdb/tools/XConnectionSupplier.idl b/offapi/com/sun/star/sdb/tools/XConnectionSupplier.idl new file mode 100644 index 000000000000..c0ec570ccf60 --- /dev/null +++ b/offapi/com/sun/star/sdb/tools/XConnectionSupplier.idl @@ -0,0 +1,67 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2008 by Sun Microsystems, Inc. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * $RCSfile: XConnectionSupplier.idl,v $ + * $Revision: 1.3 $ + * + * This file is part of OpenOffice.org. + * + * OpenOffice.org is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License version 3 + * only, as published by the Free Software Foundation. + * + * OpenOffice.org is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License version 3 for more details + * (a copy is included in the LICENSE file that accompanied this code). + * + * You should have received a copy of the GNU Lesser General Public License + * version 3 along with OpenOffice.org. If not, see + * + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef __com_sun_star_sdb_tools_XConnectionSupplier_idl__ +#define __com_sun_star_sdb_tools_XConnectionSupplier_idl__ + +#include +#ifndef __com_sun_star_lang_XInitialization_idl__ +#include +#endif +#ifndef __com_sun_star_beans_XPropertySet_idl__ +#include +#endif + +//============================================================================= +module com { module sun { module star { module sdb { module tools { +//============================================================================= + +//----------------------------------------------------------------------------- +/** allows to access the active connection + + @see com::sun::star::sdbcx::XConnection + + @since OOo 3.3 +*/ +interface XConnectionSupplier +{ + /** returns the source connection. + */ + [attribute, readonly] com::sun::star::sdbc::XConnection ActiveConnection; + + interface com::sun::star::lang::XInitialization; + +}; +//============================================================================= +}; }; }; }; }; +//============================================================================= + +#endif + diff --git a/offapi/com/sun/star/sdb/tools/XConnectionSupport.idl b/offapi/com/sun/star/sdb/tools/XConnectionSupport.idl deleted file mode 100644 index df5af67899f8..000000000000 --- a/offapi/com/sun/star/sdb/tools/XConnectionSupport.idl +++ /dev/null @@ -1,67 +0,0 @@ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2008 by Sun Microsystems, Inc. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * $RCSfile: XConnectionSupport.idl,v $ - * $Revision: 1.3 $ - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -#ifndef __com_sun_star_sdb_tools_XConnectionSupport_idl__ -#define __com_sun_star_sdb_tools_XConnectionSupport_idl__ - -#include -#ifndef __com_sun_star_lang_XInitialization_idl__ -#include -#endif -#ifndef __com_sun_star_beans_XPropertySet_idl__ -#include -#endif - -//============================================================================= -module com { module sun { module star { module sdb { module tools { -//============================================================================= - -//----------------------------------------------------------------------------- -/** allows to access the active connection - - @see com::sun::star::sdbcx::XConnection - - @since OOo 3.3 -*/ -interface XConnectionSupport -{ - /** returns the source connection. - */ - [attribute, readonly] com::sun::star::sdbc::XConnection ActiveConnection; - - interface com::sun::star::lang::XInitialization; - -}; -//============================================================================= -}; }; }; }; }; -//============================================================================= - -#endif - diff --git a/offapi/com/sun/star/sdb/tools/XIndexAlteration.idl b/offapi/com/sun/star/sdb/tools/XIndexAlteration.idl index 12ed8fd55266..fdc7ce517ca8 100644 --- a/offapi/com/sun/star/sdb/tools/XIndexAlteration.idl +++ b/offapi/com/sun/star/sdb/tools/XIndexAlteration.idl @@ -34,7 +34,7 @@ #ifndef __com_sun_star_sdbc_SQLException_idl__ #include #endif -#include +#include #ifndef __com_sun_star_lang_XInitialization_idl__ #include #endif @@ -57,7 +57,7 @@ module com { module sun { module star { module sdb { module tools { */ interface XIndexAlteration { - interface XConnectionSupport; + interface XConnectionSupplier; /** drops an object of the related container identified by its name. @param table diff --git a/offapi/com/sun/star/sdb/tools/XKeyAlteration.idl b/offapi/com/sun/star/sdb/tools/XKeyAlteration.idl index 12b4c0bc22bc..44389dfe64fd 100644 --- a/offapi/com/sun/star/sdb/tools/XKeyAlteration.idl +++ b/offapi/com/sun/star/sdb/tools/XKeyAlteration.idl @@ -34,7 +34,7 @@ #ifndef __com_sun_star_sdbc_SQLException_idl__ #include #endif -#include +#include #ifndef __com_sun_star_lang_XInitialization_idl__ #include #endif @@ -57,7 +57,7 @@ module com { module sun { module star { module sdb { module tools { */ interface XKeyAlteration { - interface XConnectionSupport; + interface XConnectionSupplier; /** drops an object of the related container identified by its name. @param table diff --git a/offapi/com/sun/star/sdb/tools/XTableAlteration.idl b/offapi/com/sun/star/sdb/tools/XTableAlteration.idl index d57feff8d4c0..fe0fe494fead 100644 --- a/offapi/com/sun/star/sdb/tools/XTableAlteration.idl +++ b/offapi/com/sun/star/sdb/tools/XTableAlteration.idl @@ -34,7 +34,7 @@ #ifndef __com_sun_star_sdbc_SQLException_idl__ #include #endif -#include +#include #ifndef __com_sun_star_lang_XInitialization_idl__ #include #endif @@ -47,7 +47,7 @@ module com { module sun { module star { module sdb { module tools { //============================================================================= //----------------------------------------------------------------------------- -/** allows to alter table. +/** allows to alter a table. @see com::sun::star::sdb::DataSource::Settings @see com::sun::star::sdbcx::ColumnDescriptor @@ -59,9 +59,9 @@ module com { module sun { module star { module sdb { module tools { */ interface XTableAlteration { - interface XConnectionSupport; + interface XConnectionSupplier; - /** rename the given table to the new name + /** alter the column defined by name @param table the table to be altered @@ -73,6 +73,7 @@ interface XTableAlteration the column descriptor with the information of the new column definition @throws com::sun::star::sdbc::SQLException + @see com::sun::star::sdbcx::XAlterTable */ void alterColumnByName( [in] com::sun::star::beans::XPropertySet table, [in] string columnName, [in] com::sun::star::beans::XPropertySet columnDescriptor) raises ( com::sun::star::sdbc::SQLException ); @@ -89,6 +90,7 @@ interface XTableAlteration the descriptor which should be serve to append a new object @throws com::sun::star::sdbc::SQLException if a database access error occurs. + @see com::sun::star::sdbcx::XAppend */ void addColumn([in] com::sun::star::beans::XPropertySet table,[in]com::sun::star::beans::XPropertySet descriptor) raises (com::sun::star::sdbc::SQLException); @@ -100,6 +102,7 @@ interface XTableAlteration the name of the column to be dropped @throws com::sun::star::sdbc::SQLException if a database access error occurs. + @see com::sun::star::sdbcx::XDrop */ void dropColumn([in] com::sun::star::beans::XPropertySet table,[in]string columnName) raises ( com::sun::star::sdbc::SQLException); diff --git a/offapi/com/sun/star/sdb/tools/XTableRename.idl b/offapi/com/sun/star/sdb/tools/XTableRename.idl index 5c4a14695ea8..f61d736bae8c 100644 --- a/offapi/com/sun/star/sdb/tools/XTableRename.idl +++ b/offapi/com/sun/star/sdb/tools/XTableRename.idl @@ -34,7 +34,7 @@ #ifndef __com_sun_star_sdbc_SQLException_idl__ #include #endif -#include +#include #ifndef __com_sun_star_lang_XInitialization_idl__ #include #endif @@ -55,7 +55,7 @@ module com { module sun { module star { module sdb { module tools { */ interface XTableRename { - interface XConnectionSupport; + interface XConnectionSupplier; /** rename the given table to the new name diff --git a/offapi/com/sun/star/sdb/tools/XViewAccess.idl b/offapi/com/sun/star/sdb/tools/XViewAccess.idl new file mode 100644 index 000000000000..e64727341e81 --- /dev/null +++ b/offapi/com/sun/star/sdb/tools/XViewAccess.idl @@ -0,0 +1,88 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2008 by Sun Microsystems, Inc. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * $RCSfile: XViewAccess.idl,v $ + * $Revision: 1.3 $ + * + * This file is part of OpenOffice.org. + * + * OpenOffice.org is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License version 3 + * only, as published by the Free Software Foundation. + * + * OpenOffice.org is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License version 3 for more details + * (a copy is included in the LICENSE file that accompanied this code). + * + * You should have received a copy of the GNU Lesser General Public License + * version 3 along with OpenOffice.org. If not, see + * + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef __com_sun_star_sdb_tools_XViewAccess_idl__ +#define __com_sun_star_sdb_tools_XViewAccess_idl__ + +#ifndef __com_sun_star_sdbc_SQLException_idl__ +#include +#endif +#include +#ifndef __com_sun_star_lang_XInitialization_idl__ +#include +#endif +#ifndef __com_sun_star_beans_XPropertySet_idl__ +#include +#endif + +//============================================================================= +module com { module sun { module star { module sdb { module tools { +//============================================================================= + +//----------------------------------------------------------------------------- +/** allows to fetch and to change the sql statements of views + + @see com::sun::star::sdb::DataSource::Settings + @see com::sun::star::sdbcx::View + + @since OOo 3.3 +*/ +interface XViewAccess +{ + interface XConnectionSupplier; + + /** returns the SQL statement of the view + + @param view + the table to be renamed + @throws com::sun::star::sdbc::SQLException + */ + string getCommand( [in] com::sun::star::beans::XPropertySet view) + raises ( com::sun::star::sdbc::SQLException ); + + /** allows to alter the SQL statement of a view + + @param view + the view to be altered + + @param command + the new SQL statement + + @throws com::sun::star::sdbc::SQLException + */ + void alterCommand( [in] com::sun::star::beans::XPropertySet view, [in] string command) + raises ( com::sun::star::sdbc::SQLException ); +}; +//============================================================================= +}; }; }; }; }; +//============================================================================= + +#endif + diff --git a/offapi/com/sun/star/sdb/tools/XViewSupport.idl b/offapi/com/sun/star/sdb/tools/XViewSupport.idl deleted file mode 100644 index 51367386dc30..000000000000 --- a/offapi/com/sun/star/sdb/tools/XViewSupport.idl +++ /dev/null @@ -1,88 +0,0 @@ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2008 by Sun Microsystems, Inc. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * $RCSfile: XViewSupport.idl,v $ - * $Revision: 1.3 $ - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -#ifndef __com_sun_star_sdb_tools_XViewSupport_idl__ -#define __com_sun_star_sdb_tools_XViewSupport_idl__ - -#ifndef __com_sun_star_sdbc_SQLException_idl__ -#include -#endif -#include -#ifndef __com_sun_star_lang_XInitialization_idl__ -#include -#endif -#ifndef __com_sun_star_beans_XPropertySet_idl__ -#include -#endif - -//============================================================================= -module com { module sun { module star { module sdb { module tools { -//============================================================================= - -//----------------------------------------------------------------------------- -/** allows to fetch the sql statements of views - - @see com::sun::star::sdb::DataSource::Settings - @see com::sun::star::sdbcx::View - - @since OOo 3.3 -*/ -interface XViewSupport -{ - interface XConnectionSupport; - - /** returns the SQL statement of the view - - @param view - the table to be renamed - @throws com::sun::star::sdbc::SQLException - */ - string getCommand( [in] com::sun::star::beans::XPropertySet view) - raises ( com::sun::star::sdbc::SQLException ); - - /** rename the given table to the new name - - @param view - the view to be altered - - @param command - the new SQL statement - - @throws com::sun::star::sdbc::SQLException - */ - void alterCommand( [in] com::sun::star::beans::XPropertySet view, [in] string command) - raises ( com::sun::star::sdbc::SQLException ); -}; -//============================================================================= -}; }; }; }; }; -//============================================================================= - -#endif - diff --git a/offapi/com/sun/star/sdb/tools/makefile.mk b/offapi/com/sun/star/sdb/tools/makefile.mk index d654250b5eaf..056a2f178e5b 100644 --- a/offapi/com/sun/star/sdb/tools/makefile.mk +++ b/offapi/com/sun/star/sdb/tools/makefile.mk @@ -50,11 +50,11 @@ IDLFILES=\ XObjectNames.idl \ XTableName.idl \ XTableRename.idl \ - XViewSupport.idl \ + XViewAccess.idl \ XTableAlteration.idl \ XKeyAlteration.idl \ XIndexAlteration.idl \ - XConnectionSupport.idl + XConnectionSupplier.idl # ------------------------------------------------------------------ .INCLUDE : target.mk -- cgit