Line data Source code
1 : #ifndef INCLUDED_COM_SUN_STAR_SDB_XCOLUMNUPDATE_HDL
2 : #define INCLUDED_COM_SUN_STAR_SDB_XCOLUMNUPDATE_HDL
3 :
4 : #include "sal/config.h"
5 :
6 : namespace com { namespace sun { namespace star { namespace io { class XInputStream; } } } }
7 : #include "com/sun/star/sdbc/SQLException.hdl"
8 : #include "com/sun/star/uno/RuntimeException.hdl"
9 : #include "com/sun/star/uno/XInterface.hdl"
10 : #include "com/sun/star/util/Date.hdl"
11 : #include "com/sun/star/util/DateTime.hdl"
12 : #include "com/sun/star/util/Time.hdl"
13 : #include "com/sun/star/uno/Any.h"
14 : #include "com/sun/star/uno/Reference.h"
15 : #include "com/sun/star/uno/Sequence.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 {
23 :
24 263 : class SAL_NO_VTABLE XColumnUpdate : public css::uno::XInterface
25 : {
26 : public:
27 :
28 : // Methods
29 : virtual void SAL_CALL updateNull() /* throw (css::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) */ = 0;
30 : virtual void SAL_CALL updateBoolean( ::sal_Bool x ) /* throw (css::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) */ = 0;
31 : virtual void SAL_CALL updateByte( ::sal_Int8 x ) /* throw (css::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) */ = 0;
32 : virtual void SAL_CALL updateShort( ::sal_Int16 x ) /* throw (css::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) */ = 0;
33 : virtual void SAL_CALL updateInt( ::sal_Int32 x ) /* throw (css::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) */ = 0;
34 : virtual void SAL_CALL updateLong( ::sal_Int64 x ) /* throw (css::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) */ = 0;
35 : virtual void SAL_CALL updateFloat( float x ) /* throw (css::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) */ = 0;
36 : virtual void SAL_CALL updateDouble( double x ) /* throw (css::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) */ = 0;
37 : virtual void SAL_CALL updateString( const ::rtl::OUString& x ) /* throw (css::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) */ = 0;
38 : virtual void SAL_CALL updateBytes( const ::com::sun::star::uno::Sequence< ::sal_Int8 >& x ) /* throw (css::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) */ = 0;
39 : virtual void SAL_CALL updateDate( const css::util::Date& x ) /* throw (css::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) */ = 0;
40 : virtual void SAL_CALL updateTime( const css::util::Time& x ) /* throw (css::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) */ = 0;
41 : virtual void SAL_CALL updateTimestamp( const css::util::DateTime& x ) /* throw (css::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) */ = 0;
42 : virtual void SAL_CALL updateBinaryStream( const ::com::sun::star::uno::Reference< css::io::XInputStream >& x, ::sal_Int32 length ) /* throw (css::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) */ = 0;
43 : virtual void SAL_CALL updateCharacterStream( const ::com::sun::star::uno::Reference< css::io::XInputStream >& x, ::sal_Int32 length ) /* throw (css::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) */ = 0;
44 : virtual void SAL_CALL updateObject( const ::com::sun::star::uno::Any& x ) /* throw (css::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) */ = 0;
45 : virtual void SAL_CALL updateNumericObject( const ::com::sun::star::uno::Any& x, ::sal_Int32 scale ) /* throw (css::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) */ = 0;
46 :
47 : static inline ::com::sun::star::uno::Type const & SAL_CALL static_type(void * = 0);
48 :
49 : protected:
50 263 : ~XColumnUpdate() throw () {} // avoid warnings about virtual members and non-virtual dtor
51 : };
52 :
53 :
54 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER css::sdb::XColumnUpdate const *);
55 : } } } }
56 :
57 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< css::sdb::XColumnUpdate > *) SAL_THROW(());
58 :
59 : #endif
|