Line data Source code
1 : #ifndef INCLUDED_COM_SUN_STAR_SDB_XCOLUMN_HDL
2 : #define INCLUDED_COM_SUN_STAR_SDB_XCOLUMN_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 io { class XInputStream; } } } }
8 : #include "com/sun/star/sdbc/SQLException.hdl"
9 : namespace com { namespace sun { namespace star { namespace sdbc { class XArray; } } } }
10 : namespace com { namespace sun { namespace star { namespace sdbc { class XBlob; } } } }
11 : namespace com { namespace sun { namespace star { namespace sdbc { class XClob; } } } }
12 : namespace com { namespace sun { namespace star { namespace sdbc { class XRef; } } } }
13 : #include "com/sun/star/uno/RuntimeException.hdl"
14 : #include "com/sun/star/uno/XInterface.hdl"
15 : #include "com/sun/star/util/Date.hdl"
16 : #include "com/sun/star/util/DateTime.hdl"
17 : #include "com/sun/star/util/Time.hdl"
18 : #include "com/sun/star/uno/Any.h"
19 : #include "com/sun/star/uno/Reference.h"
20 : #include "com/sun/star/uno/Sequence.h"
21 : #include "cppu/macros.hxx"
22 : #include "rtl/ustring.hxx"
23 : #include "sal/types.h"
24 :
25 : namespace com { namespace sun { namespace star { namespace uno { class Type; } } } }
26 :
27 : namespace com { namespace sun { namespace star { namespace sdb {
28 :
29 263 : class SAL_NO_VTABLE XColumn : public css::uno::XInterface
30 : {
31 : public:
32 :
33 : // Methods
34 : virtual ::sal_Bool SAL_CALL wasNull() /* throw (css::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) */ = 0;
35 : virtual ::rtl::OUString SAL_CALL getString() /* throw (css::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) */ = 0;
36 : virtual ::sal_Bool SAL_CALL getBoolean() /* throw (css::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) */ = 0;
37 : virtual ::sal_Int8 SAL_CALL getByte() /* throw (css::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) */ = 0;
38 : virtual ::sal_Int16 SAL_CALL getShort() /* throw (css::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) */ = 0;
39 : virtual ::sal_Int32 SAL_CALL getInt() /* throw (css::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) */ = 0;
40 : virtual ::sal_Int64 SAL_CALL getLong() /* throw (css::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) */ = 0;
41 : virtual float SAL_CALL getFloat() /* throw (css::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) */ = 0;
42 : virtual double SAL_CALL getDouble() /* throw (css::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) */ = 0;
43 : virtual ::com::sun::star::uno::Sequence< ::sal_Int8 > SAL_CALL getBytes() /* throw (css::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) */ = 0;
44 : virtual css::util::Date SAL_CALL getDate() /* throw (css::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) */ = 0;
45 : virtual css::util::Time SAL_CALL getTime() /* throw (css::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) */ = 0;
46 : virtual css::util::DateTime SAL_CALL getTimestamp() /* throw (css::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) */ = 0;
47 : virtual ::com::sun::star::uno::Reference< css::io::XInputStream > SAL_CALL getBinaryStream() /* throw (css::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) */ = 0;
48 : virtual ::com::sun::star::uno::Reference< css::io::XInputStream > SAL_CALL getCharacterStream() /* throw (css::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) */ = 0;
49 : virtual ::com::sun::star::uno::Any SAL_CALL getObject( const ::com::sun::star::uno::Reference< css::container::XNameAccess >& typeMap ) /* throw (css::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) */ = 0;
50 : virtual ::com::sun::star::uno::Reference< css::sdbc::XRef > SAL_CALL getRef() /* throw (css::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) */ = 0;
51 : virtual ::com::sun::star::uno::Reference< css::sdbc::XBlob > SAL_CALL getBlob() /* throw (css::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) */ = 0;
52 : virtual ::com::sun::star::uno::Reference< css::sdbc::XClob > SAL_CALL getClob() /* throw (css::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) */ = 0;
53 : virtual ::com::sun::star::uno::Reference< css::sdbc::XArray > SAL_CALL getArray() /* throw (css::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) */ = 0;
54 :
55 : static inline ::com::sun::star::uno::Type const & SAL_CALL static_type(void * = 0);
56 :
57 : protected:
58 263 : ~XColumn() throw () {} // avoid warnings about virtual members and non-virtual dtor
59 : };
60 :
61 :
62 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER css::sdb::XColumn const *);
63 : } } } }
64 :
65 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< css::sdb::XColumn > *) SAL_THROW(());
66 :
67 : #endif
|