1*9b5730f6SAndrew Rist /**************************************************************
2cdf0e10cSrcweir *
3*9b5730f6SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4*9b5730f6SAndrew Rist * or more contributor license agreements. See the NOTICE file
5*9b5730f6SAndrew Rist * distributed with this work for additional information
6*9b5730f6SAndrew Rist * regarding copyright ownership. The ASF licenses this file
7*9b5730f6SAndrew Rist * to you under the Apache License, Version 2.0 (the
8*9b5730f6SAndrew Rist * "License"); you may not use this file except in compliance
9*9b5730f6SAndrew Rist * with the License. You may obtain a copy of the License at
10cdf0e10cSrcweir *
11*9b5730f6SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir *
13*9b5730f6SAndrew Rist * Unless required by applicable law or agreed to in writing,
14*9b5730f6SAndrew Rist * software distributed under the License is distributed on an
15*9b5730f6SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*9b5730f6SAndrew Rist * KIND, either express or implied. See the License for the
17*9b5730f6SAndrew Rist * specific language governing permissions and limitations
18*9b5730f6SAndrew Rist * under the License.
19cdf0e10cSrcweir *
20*9b5730f6SAndrew Rist *************************************************************/
21*9b5730f6SAndrew Rist
22*9b5730f6SAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove
25cdf0e10cSrcweir #include "precompiled_connectivity.hxx"
26cdf0e10cSrcweir
27cdf0e10cSrcweir #include "KPreparedStatement.hxx"
28cdf0e10cSrcweir #include "propertyids.hxx"
29cdf0e10cSrcweir #include <connectivity/dbexception.hxx>
30cdf0e10cSrcweir #include <connectivity/dbtools.hxx>
31cdf0e10cSrcweir #include "resource/kab_res.hrc"
32cdf0e10cSrcweir #include "resource/sharedresources.hxx"
33cdf0e10cSrcweir
34cdf0e10cSrcweir using namespace connectivity::kab;
35cdf0e10cSrcweir using namespace com::sun::star::uno;
36cdf0e10cSrcweir using namespace com::sun::star::lang;
37cdf0e10cSrcweir using namespace com::sun::star::sdbc;
38cdf0e10cSrcweir using namespace com::sun::star::util;
39cdf0e10cSrcweir
40cdf0e10cSrcweir IMPLEMENT_SERVICE_INFO(KabPreparedStatement, "com.sun.star.sdbc.drivers.KabPreparedStatement", "com.sun.star.sdbc.PreparedStatement");
41cdf0e10cSrcweir // -------------------------------------------------------------------------
checkAndResizeParameters(sal_Int32 nParams)42cdf0e10cSrcweir void KabPreparedStatement::checkAndResizeParameters(sal_Int32 nParams) throw(SQLException)
43cdf0e10cSrcweir {
44cdf0e10cSrcweir if ( !m_aParameterRow.isValid() )
45cdf0e10cSrcweir m_aParameterRow = new OValueVector();
46cdf0e10cSrcweir
47cdf0e10cSrcweir if (nParams < 1)
48cdf0e10cSrcweir ::dbtools::throwInvalidIndexException(*(KabPreparedStatement *) this,Any());
49cdf0e10cSrcweir
50cdf0e10cSrcweir if (nParams >= (sal_Int32) (m_aParameterRow->get()).size())
51cdf0e10cSrcweir (m_aParameterRow->get()).resize(nParams);
52cdf0e10cSrcweir }
53cdf0e10cSrcweir // -------------------------------------------------------------------------
setKabFields() const54cdf0e10cSrcweir void KabPreparedStatement::setKabFields() const throw(SQLException)
55cdf0e10cSrcweir {
56cdf0e10cSrcweir ::vos::ORef<connectivity::OSQLColumns> xColumns; // selected columns
57cdf0e10cSrcweir
58cdf0e10cSrcweir xColumns = m_aSQLIterator.getSelectColumns();
59cdf0e10cSrcweir if (!xColumns.isValid())
60cdf0e10cSrcweir {
61cdf0e10cSrcweir ::connectivity::SharedResources aResources;
62cdf0e10cSrcweir const ::rtl::OUString sError( aResources.getResourceString(
63cdf0e10cSrcweir STR_INVALID_COLUMN_SELECTION
64cdf0e10cSrcweir ) );
65cdf0e10cSrcweir ::dbtools::throwGenericSQLException(sError,NULL);
66cdf0e10cSrcweir }
67cdf0e10cSrcweir m_xMetaData->setKabFields(xColumns);
68cdf0e10cSrcweir }
69cdf0e10cSrcweir // -------------------------------------------------------------------------
resetParameters() const70cdf0e10cSrcweir void KabPreparedStatement::resetParameters() const throw(SQLException)
71cdf0e10cSrcweir {
72cdf0e10cSrcweir m_nParameterIndex = 0;
73cdf0e10cSrcweir }
74cdf0e10cSrcweir // -------------------------------------------------------------------------
getNextParameter(::rtl::OUString & rParameter) const75cdf0e10cSrcweir void KabPreparedStatement::getNextParameter(::rtl::OUString &rParameter) const throw(SQLException)
76cdf0e10cSrcweir {
77cdf0e10cSrcweir if (m_nParameterIndex >= (sal_Int32) (m_aParameterRow->get()).size())
78cdf0e10cSrcweir {
79cdf0e10cSrcweir ::connectivity::SharedResources aResources;
80cdf0e10cSrcweir const ::rtl::OUString sError( aResources.getResourceString(
81cdf0e10cSrcweir STR_INVALID_PARA_COUNT
82cdf0e10cSrcweir ) );
83cdf0e10cSrcweir ::dbtools::throwGenericSQLException(sError,*(KabPreparedStatement *) this);
84cdf0e10cSrcweir } // if (m_nParameterIndex >= (sal_Int32) (*m_aParameterRow).size())
85cdf0e10cSrcweir
86cdf0e10cSrcweir rParameter = (m_aParameterRow->get())[m_nParameterIndex];
87cdf0e10cSrcweir
88cdf0e10cSrcweir m_nParameterIndex++;
89cdf0e10cSrcweir }
90cdf0e10cSrcweir // -------------------------------------------------------------------------
KabPreparedStatement(KabConnection * _pConnection,const::rtl::OUString & sql)91cdf0e10cSrcweir KabPreparedStatement::KabPreparedStatement(
92cdf0e10cSrcweir KabConnection* _pConnection,
93cdf0e10cSrcweir const ::rtl::OUString& sql)
94cdf0e10cSrcweir : KabPreparedStatement_BASE(_pConnection),
95cdf0e10cSrcweir m_sSqlStatement(sql),
96cdf0e10cSrcweir m_bPrepared(sal_False),
97cdf0e10cSrcweir m_nParameterIndex(0),
98cdf0e10cSrcweir m_aParameterRow()
99cdf0e10cSrcweir {
100cdf0e10cSrcweir }
101cdf0e10cSrcweir // -------------------------------------------------------------------------
~KabPreparedStatement()102cdf0e10cSrcweir KabPreparedStatement::~KabPreparedStatement()
103cdf0e10cSrcweir {
104cdf0e10cSrcweir }
105cdf0e10cSrcweir // -------------------------------------------------------------------------
disposing()106cdf0e10cSrcweir void KabPreparedStatement::disposing()
107cdf0e10cSrcweir {
108cdf0e10cSrcweir KabPreparedStatement_BASE::disposing();
109cdf0e10cSrcweir
110cdf0e10cSrcweir if (m_aParameterRow.isValid())
111cdf0e10cSrcweir {
112cdf0e10cSrcweir m_aParameterRow->get().clear();
113cdf0e10cSrcweir m_aParameterRow = NULL;
114cdf0e10cSrcweir }
115cdf0e10cSrcweir }
116cdf0e10cSrcweir // -------------------------------------------------------------------------
getMetaData()117cdf0e10cSrcweir Reference< XResultSetMetaData > SAL_CALL KabPreparedStatement::getMetaData() throw(SQLException, RuntimeException)
118cdf0e10cSrcweir {
119cdf0e10cSrcweir ::osl::MutexGuard aGuard( m_aMutex );
120cdf0e10cSrcweir checkDisposed(KabCommonStatement_BASE::rBHelper.bDisposed);
121cdf0e10cSrcweir
122cdf0e10cSrcweir if (!m_xMetaData.is())
123cdf0e10cSrcweir {
124cdf0e10cSrcweir m_xMetaData = new KabResultSetMetaData(getOwnConnection());
125cdf0e10cSrcweir setKabFields();
126cdf0e10cSrcweir }
127cdf0e10cSrcweir Reference< XResultSetMetaData > xMetaData = m_xMetaData.get();
128cdf0e10cSrcweir return xMetaData;
129cdf0e10cSrcweir }
130cdf0e10cSrcweir // -------------------------------------------------------------------------
close()131cdf0e10cSrcweir void SAL_CALL KabPreparedStatement::close() throw(SQLException, RuntimeException)
132cdf0e10cSrcweir {
133cdf0e10cSrcweir ::osl::MutexGuard aGuard( m_aMutex );
134cdf0e10cSrcweir checkDisposed(KabCommonStatement_BASE::rBHelper.bDisposed);
135cdf0e10cSrcweir
136cdf0e10cSrcweir // Reset last warning message
137cdf0e10cSrcweir try {
138cdf0e10cSrcweir clearWarnings ();
139cdf0e10cSrcweir KabCommonStatement::close();
140cdf0e10cSrcweir }
141cdf0e10cSrcweir catch (SQLException &) {
142cdf0e10cSrcweir // If we get an error, ignore
143cdf0e10cSrcweir }
144cdf0e10cSrcweir
145cdf0e10cSrcweir // Remove this Statement object from the Connection object's
146cdf0e10cSrcweir // list
147cdf0e10cSrcweir }
148cdf0e10cSrcweir // -------------------------------------------------------------------------
execute()149cdf0e10cSrcweir sal_Bool SAL_CALL KabPreparedStatement::execute() throw(SQLException, RuntimeException)
150cdf0e10cSrcweir {
151cdf0e10cSrcweir ::osl::MutexGuard aGuard( m_aMutex );
152cdf0e10cSrcweir checkDisposed(KabCommonStatement_BASE::rBHelper.bDisposed);
153cdf0e10cSrcweir
154cdf0e10cSrcweir Reference< XResultSet> xRS = KabCommonStatement::executeQuery(m_sSqlStatement);
155cdf0e10cSrcweir
156cdf0e10cSrcweir return xRS.is();
157cdf0e10cSrcweir }
158cdf0e10cSrcweir // -------------------------------------------------------------------------
executeUpdate()159cdf0e10cSrcweir sal_Int32 SAL_CALL KabPreparedStatement::executeUpdate() throw(SQLException, RuntimeException)
160cdf0e10cSrcweir {
161cdf0e10cSrcweir ::osl::MutexGuard aGuard( m_aMutex );
162cdf0e10cSrcweir checkDisposed(KabCommonStatement_BASE::rBHelper.bDisposed);
163cdf0e10cSrcweir
164cdf0e10cSrcweir // same as in statement with the difference that this statement also can contain parameter
165cdf0e10cSrcweir return 0;
166cdf0e10cSrcweir }
167cdf0e10cSrcweir // -------------------------------------------------------------------------
getConnection()168cdf0e10cSrcweir Reference< XConnection > SAL_CALL KabPreparedStatement::getConnection() throw(SQLException, RuntimeException)
169cdf0e10cSrcweir {
170cdf0e10cSrcweir ::osl::MutexGuard aGuard( m_aMutex );
171cdf0e10cSrcweir checkDisposed(KabCommonStatement_BASE::rBHelper.bDisposed);
172cdf0e10cSrcweir
173cdf0e10cSrcweir return (Reference< XConnection >) m_pConnection;
174cdf0e10cSrcweir }
175cdf0e10cSrcweir // -------------------------------------------------------------------------
executeQuery()176cdf0e10cSrcweir Reference< XResultSet > SAL_CALL KabPreparedStatement::executeQuery() throw(SQLException, RuntimeException)
177cdf0e10cSrcweir {
178cdf0e10cSrcweir ::osl::MutexGuard aGuard( m_aMutex );
179cdf0e10cSrcweir checkDisposed(KabCommonStatement_BASE::rBHelper.bDisposed);
180cdf0e10cSrcweir
181cdf0e10cSrcweir Reference< XResultSet > rs = KabCommonStatement::executeQuery(m_sSqlStatement);
182cdf0e10cSrcweir
183cdf0e10cSrcweir return rs;
184cdf0e10cSrcweir }
185cdf0e10cSrcweir // -------------------------------------------------------------------------
setNull(sal_Int32 parameterIndex,sal_Int32)186cdf0e10cSrcweir void SAL_CALL KabPreparedStatement::setNull(sal_Int32 parameterIndex, sal_Int32) throw(SQLException, RuntimeException)
187cdf0e10cSrcweir {
188cdf0e10cSrcweir ::osl::MutexGuard aGuard( m_aMutex );
189cdf0e10cSrcweir checkDisposed(KabCommonStatement_BASE::rBHelper.bDisposed);
190cdf0e10cSrcweir
191cdf0e10cSrcweir checkAndResizeParameters(parameterIndex);
192cdf0e10cSrcweir
193cdf0e10cSrcweir (m_aParameterRow->get())[parameterIndex - 1].setNull();
194cdf0e10cSrcweir }
195cdf0e10cSrcweir // -------------------------------------------------------------------------
setObjectNull(sal_Int32,sal_Int32,const::rtl::OUString &)196cdf0e10cSrcweir void SAL_CALL KabPreparedStatement::setObjectNull(sal_Int32, sal_Int32, const ::rtl::OUString&) throw(SQLException, RuntimeException)
197cdf0e10cSrcweir {
198cdf0e10cSrcweir
199cdf0e10cSrcweir
200cdf0e10cSrcweir
201cdf0e10cSrcweir ::dbtools::throwFunctionNotSupportedException("setObjectNull", NULL);
202cdf0e10cSrcweir }
203cdf0e10cSrcweir // -------------------------------------------------------------------------
setBoolean(sal_Int32,sal_Bool)204cdf0e10cSrcweir void SAL_CALL KabPreparedStatement::setBoolean(sal_Int32, sal_Bool) throw(SQLException, RuntimeException)
205cdf0e10cSrcweir {
206cdf0e10cSrcweir
207cdf0e10cSrcweir
208cdf0e10cSrcweir
209cdf0e10cSrcweir ::dbtools::throwFunctionNotSupportedException("setBoolean", NULL);
210cdf0e10cSrcweir }
211cdf0e10cSrcweir // -------------------------------------------------------------------------
setByte(sal_Int32,sal_Int8)212cdf0e10cSrcweir void SAL_CALL KabPreparedStatement::setByte(sal_Int32, sal_Int8) throw(SQLException, RuntimeException)
213cdf0e10cSrcweir {
214cdf0e10cSrcweir
215cdf0e10cSrcweir
216cdf0e10cSrcweir
217cdf0e10cSrcweir ::dbtools::throwFunctionNotSupportedException("setByte", NULL);
218cdf0e10cSrcweir }
219cdf0e10cSrcweir // -------------------------------------------------------------------------
setShort(sal_Int32,sal_Int16)220cdf0e10cSrcweir void SAL_CALL KabPreparedStatement::setShort(sal_Int32, sal_Int16) throw(SQLException, RuntimeException)
221cdf0e10cSrcweir {
222cdf0e10cSrcweir
223cdf0e10cSrcweir
224cdf0e10cSrcweir
225cdf0e10cSrcweir ::dbtools::throwFunctionNotSupportedException("setShort", NULL);
226cdf0e10cSrcweir }
227cdf0e10cSrcweir // -------------------------------------------------------------------------
setInt(sal_Int32,sal_Int32)228cdf0e10cSrcweir void SAL_CALL KabPreparedStatement::setInt(sal_Int32, sal_Int32) throw(SQLException, RuntimeException)
229cdf0e10cSrcweir {
230cdf0e10cSrcweir
231cdf0e10cSrcweir
232cdf0e10cSrcweir
233cdf0e10cSrcweir ::dbtools::throwFunctionNotSupportedException("setInt", NULL);
234cdf0e10cSrcweir }
235cdf0e10cSrcweir // -------------------------------------------------------------------------
setLong(sal_Int32,sal_Int64)236cdf0e10cSrcweir void SAL_CALL KabPreparedStatement::setLong(sal_Int32, sal_Int64) throw(SQLException, RuntimeException)
237cdf0e10cSrcweir {
238cdf0e10cSrcweir
239cdf0e10cSrcweir
240cdf0e10cSrcweir
241cdf0e10cSrcweir ::dbtools::throwFunctionNotSupportedException("", NULL);
242cdf0e10cSrcweir }
243cdf0e10cSrcweir // -------------------------------------------------------------------------
setFloat(sal_Int32,float)244cdf0e10cSrcweir void SAL_CALL KabPreparedStatement::setFloat(sal_Int32, float) throw(SQLException, RuntimeException)
245cdf0e10cSrcweir {
246cdf0e10cSrcweir
247cdf0e10cSrcweir
248cdf0e10cSrcweir
249cdf0e10cSrcweir ::dbtools::throwFunctionNotSupportedException("setFloat", NULL);
250cdf0e10cSrcweir }
251cdf0e10cSrcweir // -------------------------------------------------------------------------
setDouble(sal_Int32,double)252cdf0e10cSrcweir void SAL_CALL KabPreparedStatement::setDouble(sal_Int32, double) throw(SQLException, RuntimeException)
253cdf0e10cSrcweir {
254cdf0e10cSrcweir
255cdf0e10cSrcweir
256cdf0e10cSrcweir
257cdf0e10cSrcweir ::dbtools::throwFunctionNotSupportedException("setDouble", NULL);
258cdf0e10cSrcweir }
259cdf0e10cSrcweir // -------------------------------------------------------------------------
setString(sal_Int32 parameterIndex,const::rtl::OUString & x)260cdf0e10cSrcweir void SAL_CALL KabPreparedStatement::setString(sal_Int32 parameterIndex, const ::rtl::OUString &x) throw(SQLException, RuntimeException)
261cdf0e10cSrcweir {
262cdf0e10cSrcweir ::osl::MutexGuard aGuard( m_aMutex );
263cdf0e10cSrcweir checkDisposed(KabCommonStatement_BASE::rBHelper.bDisposed);
264cdf0e10cSrcweir
265cdf0e10cSrcweir checkAndResizeParameters(parameterIndex);
266cdf0e10cSrcweir
267cdf0e10cSrcweir (m_aParameterRow->get())[parameterIndex - 1] = x;
268cdf0e10cSrcweir }
269cdf0e10cSrcweir // -------------------------------------------------------------------------
setBytes(sal_Int32,const Sequence<sal_Int8> &)270cdf0e10cSrcweir void SAL_CALL KabPreparedStatement::setBytes(sal_Int32, const Sequence< sal_Int8 >&) throw(SQLException, RuntimeException)
271cdf0e10cSrcweir {
272cdf0e10cSrcweir
273cdf0e10cSrcweir
274cdf0e10cSrcweir
275cdf0e10cSrcweir ::dbtools::throwFunctionNotSupportedException("setBytes", NULL);
276cdf0e10cSrcweir }
277cdf0e10cSrcweir // -------------------------------------------------------------------------
setDate(sal_Int32,const Date &)278cdf0e10cSrcweir void SAL_CALL KabPreparedStatement::setDate(sal_Int32, const Date&) throw(SQLException, RuntimeException)
279cdf0e10cSrcweir {
280cdf0e10cSrcweir
281cdf0e10cSrcweir
282cdf0e10cSrcweir
283cdf0e10cSrcweir ::dbtools::throwFunctionNotSupportedException("setDate", NULL);
284cdf0e10cSrcweir }
285cdf0e10cSrcweir // -------------------------------------------------------------------------
setTime(sal_Int32,const Time &)286cdf0e10cSrcweir void SAL_CALL KabPreparedStatement::setTime(sal_Int32, const Time&) throw(SQLException, RuntimeException)
287cdf0e10cSrcweir {
288cdf0e10cSrcweir
289cdf0e10cSrcweir
290cdf0e10cSrcweir
291cdf0e10cSrcweir ::dbtools::throwFunctionNotSupportedException("setTime", NULL);
292cdf0e10cSrcweir }
293cdf0e10cSrcweir // -------------------------------------------------------------------------
setTimestamp(sal_Int32,const DateTime &)294cdf0e10cSrcweir void SAL_CALL KabPreparedStatement::setTimestamp(sal_Int32, const DateTime&) throw(SQLException, RuntimeException)
295cdf0e10cSrcweir {
296cdf0e10cSrcweir
297cdf0e10cSrcweir
298cdf0e10cSrcweir
299cdf0e10cSrcweir ::dbtools::throwFunctionNotSupportedException("setTimestamp", NULL);
300cdf0e10cSrcweir }
301cdf0e10cSrcweir // -------------------------------------------------------------------------
setBinaryStream(sal_Int32,const Reference<::com::sun::star::io::XInputStream> &,sal_Int32)302cdf0e10cSrcweir void SAL_CALL KabPreparedStatement::setBinaryStream(sal_Int32, const Reference< ::com::sun::star::io::XInputStream >&, sal_Int32) throw(SQLException, RuntimeException)
303cdf0e10cSrcweir {
304cdf0e10cSrcweir
305cdf0e10cSrcweir
306cdf0e10cSrcweir
307cdf0e10cSrcweir ::dbtools::throwFunctionNotSupportedException("setBinaryStream", NULL);
308cdf0e10cSrcweir }
309cdf0e10cSrcweir // -------------------------------------------------------------------------
setCharacterStream(sal_Int32,const Reference<::com::sun::star::io::XInputStream> &,sal_Int32)310cdf0e10cSrcweir void SAL_CALL KabPreparedStatement::setCharacterStream(sal_Int32, const Reference< ::com::sun::star::io::XInputStream >&, sal_Int32) throw(SQLException, RuntimeException)
311cdf0e10cSrcweir {
312cdf0e10cSrcweir
313cdf0e10cSrcweir
314cdf0e10cSrcweir
315cdf0e10cSrcweir ::dbtools::throwFunctionNotSupportedException("setCharacterStream", NULL);
316cdf0e10cSrcweir }
317cdf0e10cSrcweir // -------------------------------------------------------------------------
setObject(sal_Int32 parameterIndex,const Any & x)318cdf0e10cSrcweir void SAL_CALL KabPreparedStatement::setObject(sal_Int32 parameterIndex, const Any& x) throw(SQLException, RuntimeException)
319cdf0e10cSrcweir {
320cdf0e10cSrcweir if(!::dbtools::implSetObject(this,parameterIndex,x))
321cdf0e10cSrcweir {
322cdf0e10cSrcweir throw SQLException();
323cdf0e10cSrcweir }
324cdf0e10cSrcweir }
325cdf0e10cSrcweir // -------------------------------------------------------------------------
setObjectWithInfo(sal_Int32,const Any &,sal_Int32,sal_Int32)326cdf0e10cSrcweir void SAL_CALL KabPreparedStatement::setObjectWithInfo(sal_Int32, const Any&, sal_Int32, sal_Int32) throw(SQLException, RuntimeException)
327cdf0e10cSrcweir {
328cdf0e10cSrcweir
329cdf0e10cSrcweir
330cdf0e10cSrcweir
331cdf0e10cSrcweir ::dbtools::throwFunctionNotSupportedException("setObjectWithInfo", NULL);
332cdf0e10cSrcweir }
333cdf0e10cSrcweir // -------------------------------------------------------------------------
setRef(sal_Int32,const Reference<XRef> &)334cdf0e10cSrcweir void SAL_CALL KabPreparedStatement::setRef(sal_Int32, const Reference< XRef >&) throw(SQLException, RuntimeException)
335cdf0e10cSrcweir {
336cdf0e10cSrcweir
337cdf0e10cSrcweir
338cdf0e10cSrcweir
339cdf0e10cSrcweir ::dbtools::throwFunctionNotSupportedException("setRef", NULL);
340cdf0e10cSrcweir }
341cdf0e10cSrcweir // -------------------------------------------------------------------------
setBlob(sal_Int32,const Reference<XBlob> &)342cdf0e10cSrcweir void SAL_CALL KabPreparedStatement::setBlob(sal_Int32, const Reference< XBlob >&) throw(SQLException, RuntimeException)
343cdf0e10cSrcweir {
344cdf0e10cSrcweir
345cdf0e10cSrcweir
346cdf0e10cSrcweir
347cdf0e10cSrcweir ::dbtools::throwFunctionNotSupportedException("setBlob", NULL);
348cdf0e10cSrcweir }
349cdf0e10cSrcweir // -------------------------------------------------------------------------
setClob(sal_Int32,const Reference<XClob> &)350cdf0e10cSrcweir void SAL_CALL KabPreparedStatement::setClob(sal_Int32, const Reference< XClob >&) throw(SQLException, RuntimeException)
351cdf0e10cSrcweir {
352cdf0e10cSrcweir
353cdf0e10cSrcweir
354cdf0e10cSrcweir
355cdf0e10cSrcweir ::dbtools::throwFunctionNotSupportedException("setClob", NULL);
356cdf0e10cSrcweir }
357cdf0e10cSrcweir // -------------------------------------------------------------------------
setArray(sal_Int32,const Reference<XArray> &)358cdf0e10cSrcweir void SAL_CALL KabPreparedStatement::setArray(sal_Int32, const Reference< XArray >&) throw(SQLException, RuntimeException)
359cdf0e10cSrcweir {
360cdf0e10cSrcweir
361cdf0e10cSrcweir
362cdf0e10cSrcweir
363cdf0e10cSrcweir ::dbtools::throwFunctionNotSupportedException("setArray", NULL);
364cdf0e10cSrcweir }
365cdf0e10cSrcweir // -------------------------------------------------------------------------
clearParameters()366cdf0e10cSrcweir void SAL_CALL KabPreparedStatement::clearParameters() throw(SQLException, RuntimeException)
367cdf0e10cSrcweir {
368cdf0e10cSrcweir ::dbtools::throwFunctionNotSupportedException("clearParameters", NULL);
369cdf0e10cSrcweir }
370cdf0e10cSrcweir // -------------------------------------------------------------------------
setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,const Any & rValue)371cdf0e10cSrcweir void KabPreparedStatement::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,const Any& rValue) throw (Exception)
372cdf0e10cSrcweir {
373cdf0e10cSrcweir switch (nHandle)
374cdf0e10cSrcweir {
375cdf0e10cSrcweir case PROPERTY_ID_RESULTSETCONCURRENCY:
376cdf0e10cSrcweir break;
377cdf0e10cSrcweir case PROPERTY_ID_RESULTSETTYPE:
378cdf0e10cSrcweir break;
379cdf0e10cSrcweir case PROPERTY_ID_FETCHDIRECTION:
380cdf0e10cSrcweir break;
381cdf0e10cSrcweir case PROPERTY_ID_USEBOOKMARKS:
382cdf0e10cSrcweir break;
383cdf0e10cSrcweir default:
384cdf0e10cSrcweir KabCommonStatement::setFastPropertyValue_NoBroadcast(nHandle,rValue);
385cdf0e10cSrcweir }
386cdf0e10cSrcweir }
387