Branch data Line data Source code
1 : : #ifndef INCLUDED_COM_SUN_STAR_SDBC_XRESULTSETMETADATA_HDL
2 : : #define INCLUDED_COM_SUN_STAR_SDBC_XRESULTSETMETADATA_HDL
3 : :
4 : : #include "sal/config.h"
5 : :
6 : : #include "com/sun/star/uno/XInterface.hdl"
7 : : #include "com/sun/star/sdbc/SQLException.hdl"
8 : : #include "com/sun/star/uno/RuntimeException.hdl"
9 : : #include "com/sun/star/uno/Reference.h"
10 : : #include "cppu/macros.hxx"
11 : : #include "rtl/ustring.hxx"
12 : : #include "sal/types.h"
13 : :
14 : : namespace com { namespace sun { namespace star { namespace uno { class Type; } } } }
15 : :
16 : : namespace com { namespace sun { namespace star { namespace sdbc {
17 : :
18 : 498 : class SAL_NO_VTABLE XResultSetMetaData : public ::com::sun::star::uno::XInterface
19 : : {
20 : : public:
21 : :
22 : : // Methods
23 : : virtual ::sal_Int32 SAL_CALL getColumnCount( ) throw (::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) = 0;
24 : : virtual ::sal_Bool SAL_CALL isAutoIncrement( ::sal_Int32 column ) throw (::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) = 0;
25 : : virtual ::sal_Bool SAL_CALL isCaseSensitive( ::sal_Int32 column ) throw (::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) = 0;
26 : : virtual ::sal_Bool SAL_CALL isSearchable( ::sal_Int32 column ) throw (::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) = 0;
27 : : virtual ::sal_Bool SAL_CALL isCurrency( ::sal_Int32 column ) throw (::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) = 0;
28 : : virtual ::sal_Int32 SAL_CALL isNullable( ::sal_Int32 column ) throw (::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) = 0;
29 : : virtual ::sal_Bool SAL_CALL isSigned( ::sal_Int32 column ) throw (::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) = 0;
30 : : virtual ::sal_Int32 SAL_CALL getColumnDisplaySize( ::sal_Int32 column ) throw (::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) = 0;
31 : : virtual ::rtl::OUString SAL_CALL getColumnLabel( ::sal_Int32 column ) throw (::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) = 0;
32 : : virtual ::rtl::OUString SAL_CALL getColumnName( ::sal_Int32 column ) throw (::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) = 0;
33 : : virtual ::rtl::OUString SAL_CALL getSchemaName( ::sal_Int32 column ) throw (::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) = 0;
34 : : virtual ::sal_Int32 SAL_CALL getPrecision( ::sal_Int32 column ) throw (::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) = 0;
35 : : virtual ::sal_Int32 SAL_CALL getScale( ::sal_Int32 column ) throw (::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) = 0;
36 : : virtual ::rtl::OUString SAL_CALL getTableName( ::sal_Int32 column ) throw (::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) = 0;
37 : : virtual ::rtl::OUString SAL_CALL getCatalogName( ::sal_Int32 column ) throw (::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) = 0;
38 : : virtual ::sal_Int32 SAL_CALL getColumnType( ::sal_Int32 column ) throw (::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) = 0;
39 : : virtual ::rtl::OUString SAL_CALL getColumnTypeName( ::sal_Int32 column ) throw (::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) = 0;
40 : : virtual ::sal_Bool SAL_CALL isReadOnly( ::sal_Int32 column ) throw (::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) = 0;
41 : : virtual ::sal_Bool SAL_CALL isWritable( ::sal_Int32 column ) throw (::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) = 0;
42 : : virtual ::sal_Bool SAL_CALL isDefinitelyWritable( ::sal_Int32 column ) throw (::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) = 0;
43 : : virtual ::rtl::OUString SAL_CALL getColumnServiceName( ::sal_Int32 column ) throw (::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) = 0;
44 : :
45 : : static inline ::com::sun::star::uno::Type const & SAL_CALL static_type(void * = 0);
46 : :
47 : : protected:
48 : 498 : ~XResultSetMetaData() throw () {} // avoid warnings about virtual members and non-virtual dtor
49 : : };
50 : :
51 : :
52 : : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::com::sun::star::sdbc::XResultSetMetaData const *);
53 : : } } } }
54 : :
55 : : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XResultSetMetaData > *) SAL_THROW(());
56 : :
57 : : #endif
|