User: kz      
Date: 2006/07/06 07:17:49

Modified:
   dba/connectivity/source/drivers/kab/KPreparedStatement.hxx

Log:
 INTEGRATION: CWS kabparam (1.2.102); FILE MERGED
 2006/06/29 08:15:22 ebischoff 1.2.102.1: #i66691# Support for parametrized 
queries in KDE address book connector

File Changes:

Directory: /dba/connectivity/source/drivers/kab/
================================================

File [changed]: KPreparedStatement.hxx
Url: 
http://dba.openoffice.org/source/browse/dba/connectivity/source/drivers/kab/KPreparedStatement.hxx?r1=1.2&r2=1.3
Delta lines:  +15 -18
---------------------
--- KPreparedStatement.hxx      19 Dec 2005 16:50:16 -0000      1.2
+++ KPreparedStatement.hxx      6 Jul 2006 14:17:46 -0000       1.3
@@ -39,11 +39,13 @@
 #ifndef _CONNECTIVITY_KAB_STATEMENT_HXX_
 #include "KStatement.hxx"
 #endif
-
 #ifndef _CONNECTIVITY_KAB_RESULTSETMETADATA_HXX_
 #include "KResultSetMetaData.hxx"
 #endif
 
+#ifndef _CONNECTIVITY_FILE_VALUE_HXX_
+#include <connectivity/FValue.hxx>
+#endif
 #ifndef _COM_SUN_STAR_SDBC_XPARAMETERS_HPP_
 #include <com/sun/star/sdbc/XParameters.hpp>
 #endif
@@ -69,36 +71,31 @@
                class KabPreparedStatement : public  KabPreparedStatement_BASE
                {
                protected:
-                       struct Parameter
-                       {
-                               ::com::sun::star::uno::Any      aValue;
-                               sal_Int32                                       
nDataType;
-
-                               Parameter(const ::com::sun::star::uno::Any&     
rValue,
-                                                 sal_Int32                     
                                rDataType)
-                                       : aValue(rValue), nDataType(rDataType)
-                               { }
-                       };
-
-//                     ::std::vector< Parameter>               m_aParameters;
-// Not used so far
                        ::rtl::OUString                                 
m_sSqlStatement;
                        ::rtl::Reference< KabResultSetMetaData >
                                                                                
        m_xMetaData;
                        sal_Bool                                                
m_bPrepared;
+                       mutable sal_Int32                                       
m_nParameterIndex;
+                       OValueRow                                               
m_aParameterRow;
 
-                       void checkParameterIndex(sal_Int32 _parameterIndex);
+                       void checkAndResizeParameters(sal_Int32 nParams) 
throw(::com::sun::star::sdbc::SQLException);
                        void setKabFields() const 
throw(::com::sun::star::sdbc::SQLException);
 
                protected:
                        virtual void SAL_CALL setFastPropertyValue_NoBroadcast(
                                        sal_Int32 nHandle,
                                        const ::com::sun::star::uno::Any& 
rValue) throw (::com::sun::star::uno::Exception);
+
+                       virtual void resetParameters() const 
throw(::com::sun::star::sdbc::SQLException);
+                       virtual void getNextParameter(::rtl::OUString 
&rParameter) const throw(::com::sun::star::sdbc::SQLException);
                        virtual ~KabPreparedStatement();
 
                public:
                        DECLARE_SERVICE_INFO();
                        KabPreparedStatement(KabConnection* _pConnection, const 
::rtl::OUString& sql);
+
+                       // OComponentHelper
+                       virtual void SAL_CALL disposing();
 
                        // XPreparedStatement
                        virtual ::com::sun::star::uno::Reference< 
::com::sun::star::sdbc::XResultSet > SAL_CALL executeQuery(  ) 
throw(::com::sun::star::sdbc::SQLException, 
::com::sun::star::uno::RuntimeException);




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to