Line data Source code
1 : #ifndef INCLUDED_COM_SUN_STAR_SDB_XSINGLESELECTQUERYCOMPOSER_HDL
2 : #define INCLUDED_COM_SUN_STAR_SDB_XSINGLESELECTQUERYCOMPOSER_HDL
3 :
4 : #include "sal/config.h"
5 :
6 : #include "com/sun/star/beans/PropertyValue.hdl"
7 : namespace com { namespace sun { namespace star { namespace beans { class XPropertySet; } } } }
8 : #include "com/sun/star/lang/IllegalArgumentException.hdl"
9 : #include "com/sun/star/sdb/XSingleSelectQueryAnalyzer.hdl"
10 : #include "com/sun/star/sdbc/SQLException.hdl"
11 : #include "com/sun/star/uno/RuntimeException.hdl"
12 : #include "com/sun/star/uno/Reference.h"
13 : #include "com/sun/star/uno/Sequence.h"
14 : #include "cppu/macros.hxx"
15 : #include "rtl/ustring.hxx"
16 : #include "sal/types.h"
17 :
18 : namespace com { namespace sun { namespace star { namespace uno { class Type; } } } }
19 :
20 : namespace com { namespace sun { namespace star { namespace sdb {
21 :
22 40 : class SAL_NO_VTABLE XSingleSelectQueryComposer : public css::sdb::XSingleSelectQueryAnalyzer
23 : {
24 : public:
25 :
26 : // Attributes
27 : virtual ::rtl::OUString SAL_CALL getElementaryQuery() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
28 : virtual void SAL_CALL setElementaryQuery( const ::rtl::OUString& _elementaryquery ) /* throw (css::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) */ = 0;
29 :
30 : // Methods
31 : virtual void SAL_CALL setFilter( const ::rtl::OUString& filter ) /* throw (css::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) */ = 0;
32 : virtual void SAL_CALL setStructuredFilter( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< css::beans::PropertyValue > >& filter ) /* throw (css::sdbc::SQLException, css::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) */ = 0;
33 : virtual void SAL_CALL appendFilterByColumn( const ::com::sun::star::uno::Reference< css::beans::XPropertySet >& column, ::sal_Bool andCriteria, ::sal_Int32 filterOperator ) /* throw (css::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) */ = 0;
34 : virtual void SAL_CALL setGroup( const ::rtl::OUString& group ) /* throw (css::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) */ = 0;
35 : virtual void SAL_CALL appendGroupByColumn( const ::com::sun::star::uno::Reference< css::beans::XPropertySet >& column ) /* throw (css::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) */ = 0;
36 : virtual void SAL_CALL setHavingClause( const ::rtl::OUString& filter ) /* throw (css::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) */ = 0;
37 : virtual void SAL_CALL setStructuredHavingClause( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< css::beans::PropertyValue > >& filter ) /* throw (css::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) */ = 0;
38 : virtual void SAL_CALL appendHavingClauseByColumn( const ::com::sun::star::uno::Reference< css::beans::XPropertySet >& column, ::sal_Bool andCriteria, ::sal_Int32 filterOperator ) /* throw (css::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) */ = 0;
39 : virtual void SAL_CALL setOrder( const ::rtl::OUString& order ) /* throw (css::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) */ = 0;
40 : virtual void SAL_CALL appendOrderByColumn( const ::com::sun::star::uno::Reference< css::beans::XPropertySet >& column, ::sal_Bool ascending ) /* throw (css::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) */ = 0;
41 :
42 : static inline ::com::sun::star::uno::Type const & SAL_CALL static_type(void * = 0);
43 :
44 : protected:
45 40 : ~XSingleSelectQueryComposer() throw () {} // avoid warnings about virtual members and non-virtual dtor
46 : };
47 :
48 :
49 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER css::sdb::XSingleSelectQueryComposer const *);
50 : } } } }
51 :
52 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< css::sdb::XSingleSelectQueryComposer > *) SAL_THROW(());
53 :
54 : #endif
|