Line data Source code
1 : #ifndef INCLUDED_COM_SUN_STAR_SDB_TOOLS_XCONNECTIONTOOLS_HDL
2 : #define INCLUDED_COM_SUN_STAR_SDB_TOOLS_XCONNECTIONTOOLS_HDL
3 :
4 : #include "sal/config.h"
5 :
6 : namespace com { namespace sun { namespace star { namespace container { class XNameAccess; } } } }
7 : namespace com { namespace sun { namespace star { namespace lang { class XComponent; } } } }
8 : namespace com { namespace sun { namespace star { namespace sdb { class XSingleSelectQueryComposer; } } } }
9 : namespace com { namespace sun { namespace star { namespace sdb { namespace tools { class XDataSourceMetaData; } } } } }
10 : namespace com { namespace sun { namespace star { namespace sdb { namespace tools { class XObjectNames; } } } } }
11 : namespace com { namespace sun { namespace star { namespace sdb { namespace tools { class XTableName; } } } } }
12 : #include "com/sun/star/sdbc/SQLException.hdl"
13 : #include "com/sun/star/uno/RuntimeException.hdl"
14 : #include "com/sun/star/uno/XInterface.hdl"
15 : #include "com/sun/star/uno/Reference.h"
16 : #include "cppu/macros.hxx"
17 : #include "rtl/ustring.hxx"
18 : #include "sal/types.h"
19 :
20 : namespace com { namespace sun { namespace star { namespace uno { class Type; } } } }
21 :
22 : namespace com { namespace sun { namespace star { namespace sdb { namespace tools {
23 :
24 29 : class SAL_NO_VTABLE XConnectionTools : public css::uno::XInterface
25 : {
26 : public:
27 :
28 : // Methods
29 : virtual ::com::sun::star::uno::Reference< css::sdb::tools::XTableName > SAL_CALL createTableName() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
30 : virtual ::com::sun::star::uno::Reference< css::sdb::tools::XObjectNames > SAL_CALL getObjectNames() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
31 : virtual ::com::sun::star::uno::Reference< css::sdb::tools::XDataSourceMetaData > SAL_CALL getDataSourceMetaData() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
32 : virtual ::com::sun::star::uno::Reference< css::container::XNameAccess > SAL_CALL getFieldsByCommandDescriptor( ::sal_Int32 commandType, const ::rtl::OUString& command, ::com::sun::star::uno::Reference< css::lang::XComponent >& keepFieldsAlive ) /* throw (css::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) */ = 0;
33 : virtual ::com::sun::star::uno::Reference< css::sdb::XSingleSelectQueryComposer > SAL_CALL getComposer( ::sal_Int32 commandType, const ::rtl::OUString& command ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
34 :
35 : static inline ::com::sun::star::uno::Type const & SAL_CALL static_type(void * = 0);
36 :
37 : protected:
38 29 : ~XConnectionTools() throw () {} // avoid warnings about virtual members and non-virtual dtor
39 : };
40 :
41 :
42 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER css::sdb::tools::XConnectionTools const *);
43 : } } } } }
44 :
45 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< css::sdb::tools::XConnectionTools > *) SAL_THROW(());
46 :
47 : #endif
|