Branch data 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 : : #include "com/sun/star/uno/RuntimeException.hdl"
7 : : namespace com { namespace sun { namespace star { namespace sdbc { class XArray; } } } }
8 : : namespace com { namespace sun { namespace star { namespace sdbc { class XClob; } } } }
9 : : namespace com { namespace sun { namespace star { namespace container { class XNameAccess; } } } }
10 : : #include "com/sun/star/sdbc/SQLException.hdl"
11 : : namespace com { namespace sun { namespace star { namespace sdbc { class XBlob; } } } }
12 : : namespace com { namespace sun { namespace star { namespace io { class XInputStream; } } } }
13 : : #include "com/sun/star/util/Time.hdl"
14 : : namespace com { namespace sun { namespace star { namespace sdbc { class XRef; } } } }
15 : : #include "com/sun/star/uno/XInterface.hdl"
16 : : #include "com/sun/star/util/Date.hdl"
17 : : #include "com/sun/star/util/DateTime.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 : 524 : class SAL_NO_VTABLE XColumn : public ::com::sun::star::uno::XInterface
30 : : {
31 : : public:
32 : :
33 : : // Methods
34 : : virtual ::sal_Bool SAL_CALL wasNull( ) throw (::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) = 0;
35 : : virtual ::rtl::OUString SAL_CALL getString( ) throw (::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) = 0;
36 : : virtual ::sal_Bool SAL_CALL getBoolean( ) throw (::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) = 0;
37 : : virtual ::sal_Int8 SAL_CALL getByte( ) throw (::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) = 0;
38 : : virtual ::sal_Int16 SAL_CALL getShort( ) throw (::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) = 0;
39 : : virtual ::sal_Int32 SAL_CALL getInt( ) throw (::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) = 0;
40 : : virtual ::sal_Int64 SAL_CALL getLong( ) throw (::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) = 0;
41 : : virtual float SAL_CALL getFloat( ) throw (::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) = 0;
42 : : virtual double SAL_CALL getDouble( ) throw (::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) = 0;
43 : : virtual ::com::sun::star::uno::Sequence< ::sal_Int8 > SAL_CALL getBytes( ) throw (::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) = 0;
44 : : virtual ::com::sun::star::util::Date SAL_CALL getDate( ) throw (::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) = 0;
45 : : virtual ::com::sun::star::util::Time SAL_CALL getTime( ) throw (::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) = 0;
46 : : virtual ::com::sun::star::util::DateTime SAL_CALL getTimestamp( ) throw (::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) = 0;
47 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > SAL_CALL getBinaryStream( ) throw (::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) = 0;
48 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > SAL_CALL getCharacterStream( ) throw (::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) = 0;
49 : : virtual ::com::sun::star::uno::Any SAL_CALL getObject( const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess >& typeMap ) throw (::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) = 0;
50 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XRef > SAL_CALL getRef( ) throw (::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) = 0;
51 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XBlob > SAL_CALL getBlob( ) throw (::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) = 0;
52 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XClob > SAL_CALL getClob( ) throw (::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) = 0;
53 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XArray > SAL_CALL getArray( ) throw (::com::sun::star::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 : 524 : ~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 ::com::sun::star::sdb::XColumn const *);
63 : : } } } }
64 : :
65 : : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< ::com::sun::star::sdb::XColumn > *) SAL_THROW(());
66 : :
67 : : #endif
|