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
10*9b5730f6SAndrew Rist *
11*9b5730f6SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0
12*9b5730f6SAndrew Rist *
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.
19*9b5730f6SAndrew Rist *
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 <stdio.h>
28cdf0e10cSrcweir #include <osl/diagnose.h>
29cdf0e10cSrcweir #include "NPreparedStatement.hxx"
30cdf0e10cSrcweir #include <com/sun/star/sdbc/DataType.hpp>
31cdf0e10cSrcweir #include <cppuhelper/typeprovider.hxx>
32cdf0e10cSrcweir #include <com/sun/star/lang/DisposedException.hpp>
33cdf0e10cSrcweir #include "propertyids.hxx"
34cdf0e10cSrcweir #include <connectivity/dbexception.hxx>
35cdf0e10cSrcweir #include <connectivity/dbtools.hxx>
36cdf0e10cSrcweir #include <tools/diagnose_ex.h>
37cdf0e10cSrcweir
38cdf0e10cSrcweir #include "resource/common_res.hrc"
39cdf0e10cSrcweir
40cdf0e10cSrcweir using namespace connectivity::evoab;
41cdf0e10cSrcweir using namespace com::sun::star::uno;
42cdf0e10cSrcweir using namespace com::sun::star::lang;
43cdf0e10cSrcweir using namespace com::sun::star::beans;
44cdf0e10cSrcweir using namespace com::sun::star::sdbc;
45cdf0e10cSrcweir using namespace com::sun::star::container;
46cdf0e10cSrcweir using namespace com::sun::star::io;
47cdf0e10cSrcweir using namespace com::sun::star::util;
48cdf0e10cSrcweir
49cdf0e10cSrcweir IMPLEMENT_SERVICE_INFO(OEvoabPreparedStatement,"com.sun.star.sdbcx.evoab.PreparedStatement","com.sun.star.sdbc.PreparedStatement");
50cdf0e10cSrcweir
51cdf0e10cSrcweir
OEvoabPreparedStatement(OEvoabConnection * _pConnection)52cdf0e10cSrcweir OEvoabPreparedStatement::OEvoabPreparedStatement( OEvoabConnection* _pConnection )
53cdf0e10cSrcweir :OCommonStatement(_pConnection)
54cdf0e10cSrcweir ,m_sSqlStatement()
55cdf0e10cSrcweir ,m_xMetaData()
56cdf0e10cSrcweir {
57cdf0e10cSrcweir }
58cdf0e10cSrcweir
59cdf0e10cSrcweir // -----------------------------------------------------------------------------
construct(const::rtl::OUString & _sql)60cdf0e10cSrcweir void OEvoabPreparedStatement::construct( const ::rtl::OUString& _sql )
61cdf0e10cSrcweir {
62cdf0e10cSrcweir m_sSqlStatement = _sql;
63cdf0e10cSrcweir
64cdf0e10cSrcweir m_aQueryData = impl_getEBookQuery_throw( m_sSqlStatement );
65cdf0e10cSrcweir ENSURE_OR_THROW( m_aQueryData.getQuery(), "no EBookQuery" );
66cdf0e10cSrcweir ENSURE_OR_THROW( m_aQueryData.xSelectColumns.isValid(), "no SelectColumn" );
67cdf0e10cSrcweir
68cdf0e10cSrcweir // create our meta data
69cdf0e10cSrcweir OEvoabResultSetMetaData* pMeta = new OEvoabResultSetMetaData( m_aQueryData.sTable );
70cdf0e10cSrcweir m_xMetaData = pMeta;
71cdf0e10cSrcweir pMeta->setEvoabFields( m_aQueryData.xSelectColumns );
72cdf0e10cSrcweir }
73cdf0e10cSrcweir
74cdf0e10cSrcweir // -----------------------------------------------------------------------------
~OEvoabPreparedStatement()75cdf0e10cSrcweir OEvoabPreparedStatement::~OEvoabPreparedStatement()
76cdf0e10cSrcweir {
77cdf0e10cSrcweir }
78cdf0e10cSrcweir
79cdf0e10cSrcweir // -----------------------------------------------------------------------------
acquire()80cdf0e10cSrcweir void SAL_CALL OEvoabPreparedStatement::acquire() throw()
81cdf0e10cSrcweir {
82cdf0e10cSrcweir OCommonStatement::acquire();
83cdf0e10cSrcweir }
84cdf0e10cSrcweir
85cdf0e10cSrcweir // -----------------------------------------------------------------------------
release()86cdf0e10cSrcweir void SAL_CALL OEvoabPreparedStatement::release() throw()
87cdf0e10cSrcweir {
88cdf0e10cSrcweir OCommonStatement::release();
89cdf0e10cSrcweir }
90cdf0e10cSrcweir
91cdf0e10cSrcweir // -----------------------------------------------------------------------------
queryInterface(const Type & rType)92cdf0e10cSrcweir Any SAL_CALL OEvoabPreparedStatement::queryInterface( const Type & rType ) throw(RuntimeException)
93cdf0e10cSrcweir {
94cdf0e10cSrcweir Any aRet = OCommonStatement::queryInterface(rType);
95cdf0e10cSrcweir if(!aRet.hasValue())
96cdf0e10cSrcweir aRet = OPreparedStatement_BASE::queryInterface(rType);
97cdf0e10cSrcweir return aRet;
98cdf0e10cSrcweir }
99cdf0e10cSrcweir // -------------------------------------------------------------------------
getTypes()100cdf0e10cSrcweir Sequence< Type > SAL_CALL OEvoabPreparedStatement::getTypes( ) throw(RuntimeException)
101cdf0e10cSrcweir {
102cdf0e10cSrcweir return ::comphelper::concatSequences(OPreparedStatement_BASE::getTypes(),OCommonStatement::getTypes());
103cdf0e10cSrcweir }
104cdf0e10cSrcweir // -------------------------------------------------------------------------
105cdf0e10cSrcweir
getMetaData()106cdf0e10cSrcweir Reference< XResultSetMetaData > SAL_CALL OEvoabPreparedStatement::getMetaData( ) throw(SQLException, RuntimeException)
107cdf0e10cSrcweir {
108cdf0e10cSrcweir ::osl::MutexGuard aGuard( m_aMutex );
109cdf0e10cSrcweir checkDisposed(OCommonStatement_IBase::rBHelper.bDisposed);
110cdf0e10cSrcweir
111cdf0e10cSrcweir // the meta data should have been created at construction time
112cdf0e10cSrcweir ENSURE_OR_THROW( m_xMetaData.is(), "internal error: no meta data" );
113cdf0e10cSrcweir return m_xMetaData;
114cdf0e10cSrcweir }
115cdf0e10cSrcweir // -------------------------------------------------------------------------
116cdf0e10cSrcweir
close()117cdf0e10cSrcweir void SAL_CALL OEvoabPreparedStatement::close( ) throw(SQLException, RuntimeException)
118cdf0e10cSrcweir {
119cdf0e10cSrcweir ::osl::MutexGuard aGuard( m_aMutex );
120cdf0e10cSrcweir checkDisposed(OCommonStatement_IBase::rBHelper.bDisposed);
121cdf0e10cSrcweir
122cdf0e10cSrcweir free_column_resources();
123cdf0e10cSrcweir // Reset last warning message
124cdf0e10cSrcweir try {
125cdf0e10cSrcweir clearWarnings ();
126cdf0e10cSrcweir OCommonStatement::close();
127cdf0e10cSrcweir }
128cdf0e10cSrcweir catch (SQLException &) {
129cdf0e10cSrcweir // If we get an error, ignore
130cdf0e10cSrcweir }
131cdf0e10cSrcweir
132cdf0e10cSrcweir }
133cdf0e10cSrcweir // -------------------------------------------------------------------------
134cdf0e10cSrcweir
execute()135cdf0e10cSrcweir sal_Bool SAL_CALL OEvoabPreparedStatement::execute( ) throw(SQLException, RuntimeException)
136cdf0e10cSrcweir {
137cdf0e10cSrcweir ::osl::MutexGuard aGuard( m_aMutex );
138cdf0e10cSrcweir checkDisposed(OCommonStatement_IBase::rBHelper.bDisposed);
139cdf0e10cSrcweir
140cdf0e10cSrcweir Reference< XResultSet> xRS = impl_executeQuery_throw( m_aQueryData );
141cdf0e10cSrcweir return xRS.is();
142cdf0e10cSrcweir }
143cdf0e10cSrcweir // -------------------------------------------------------------------------
144cdf0e10cSrcweir
executeUpdate()145cdf0e10cSrcweir sal_Int32 SAL_CALL OEvoabPreparedStatement::executeUpdate( ) throw(SQLException, RuntimeException)
146cdf0e10cSrcweir {
147cdf0e10cSrcweir ::osl::MutexGuard aGuard( m_aMutex );
148cdf0e10cSrcweir checkDisposed(OCommonStatement_IBase::rBHelper.bDisposed);
149cdf0e10cSrcweir ::dbtools::throwFeatureNotImplementedException( "XStatement::executeUpdate", *this );
150cdf0e10cSrcweir return 0;
151cdf0e10cSrcweir }
152cdf0e10cSrcweir // -------------------------------------------------------------------------
153cdf0e10cSrcweir
setString(sal_Int32,const::rtl::OUString &)154cdf0e10cSrcweir void SAL_CALL OEvoabPreparedStatement::setString( sal_Int32 /*parameterIndex*/, const ::rtl::OUString& /*x*/ ) throw(SQLException, RuntimeException)
155cdf0e10cSrcweir {
156cdf0e10cSrcweir ::dbtools::throwFunctionNotSupportedException( "XParameters::setString", *this );
157cdf0e10cSrcweir }
158cdf0e10cSrcweir // -------------------------------------------------------------------------
159cdf0e10cSrcweir
getConnection()160cdf0e10cSrcweir Reference< XConnection > SAL_CALL OEvoabPreparedStatement::getConnection( ) throw(SQLException, RuntimeException)
161cdf0e10cSrcweir {
162cdf0e10cSrcweir ::osl::MutexGuard aGuard( m_aMutex );
163cdf0e10cSrcweir checkDisposed(OCommonStatement_IBase::rBHelper.bDisposed);
164cdf0e10cSrcweir
165cdf0e10cSrcweir return impl_getConnection();
166cdf0e10cSrcweir }
167cdf0e10cSrcweir // -------------------------------------------------------------------------
168cdf0e10cSrcweir
executeQuery()169cdf0e10cSrcweir Reference< XResultSet > SAL_CALL OEvoabPreparedStatement::executeQuery( ) throw(SQLException, RuntimeException)
170cdf0e10cSrcweir {
171cdf0e10cSrcweir ::osl::MutexGuard aGuard( m_aMutex );
172cdf0e10cSrcweir checkDisposed(OCommonStatement_IBase::rBHelper.bDisposed);
173cdf0e10cSrcweir
174cdf0e10cSrcweir return impl_executeQuery_throw( m_aQueryData );
175cdf0e10cSrcweir }
176cdf0e10cSrcweir // -------------------------------------------------------------------------
177cdf0e10cSrcweir
setBoolean(sal_Int32,sal_Bool)178cdf0e10cSrcweir void SAL_CALL OEvoabPreparedStatement::setBoolean( sal_Int32 /*parameterIndex*/, sal_Bool /*x*/ ) throw(SQLException, RuntimeException)
179cdf0e10cSrcweir {
180cdf0e10cSrcweir ::dbtools::throwFunctionNotSupportedException( "XParameters::setBoolean", *this );
181cdf0e10cSrcweir
182cdf0e10cSrcweir }
183cdf0e10cSrcweir // -------------------------------------------------------------------------
setByte(sal_Int32,sal_Int8)184cdf0e10cSrcweir void SAL_CALL OEvoabPreparedStatement::setByte( sal_Int32 /*parameterIndex*/, sal_Int8 /*x*/ ) throw(SQLException, RuntimeException)
185cdf0e10cSrcweir {
186cdf0e10cSrcweir ::dbtools::throwFunctionNotSupportedException( "XParameters::setByte", *this );
187cdf0e10cSrcweir }
188cdf0e10cSrcweir // -------------------------------------------------------------------------
189cdf0e10cSrcweir
setDate(sal_Int32,const Date &)190cdf0e10cSrcweir void SAL_CALL OEvoabPreparedStatement::setDate( sal_Int32 /*parameterIndex*/, const Date& /*aData*/ ) throw(SQLException, RuntimeException)
191cdf0e10cSrcweir {
192cdf0e10cSrcweir ::dbtools::throwFunctionNotSupportedException( "XParameters::setDate", *this );
193cdf0e10cSrcweir }
194cdf0e10cSrcweir // -------------------------------------------------------------------------
195cdf0e10cSrcweir
setTime(sal_Int32,const Time &)196cdf0e10cSrcweir void SAL_CALL OEvoabPreparedStatement::setTime( sal_Int32 /*parameterIndex*/, const Time& /*aVal*/ ) throw(SQLException, RuntimeException)
197cdf0e10cSrcweir {
198cdf0e10cSrcweir ::dbtools::throwFunctionNotSupportedException( "XParameters::setTime", *this );
199cdf0e10cSrcweir }
200cdf0e10cSrcweir // -------------------------------------------------------------------------
201cdf0e10cSrcweir
setTimestamp(sal_Int32,const DateTime &)202cdf0e10cSrcweir void SAL_CALL OEvoabPreparedStatement::setTimestamp( sal_Int32 /*parameterIndex*/, const DateTime& /*aVal*/ ) throw(SQLException, RuntimeException)
203cdf0e10cSrcweir {
204cdf0e10cSrcweir ::dbtools::throwFunctionNotSupportedException( "XParameters::setTimestamp", *this );
205cdf0e10cSrcweir }
206cdf0e10cSrcweir // -------------------------------------------------------------------------
207cdf0e10cSrcweir
setDouble(sal_Int32,double)208cdf0e10cSrcweir void SAL_CALL OEvoabPreparedStatement::setDouble( sal_Int32 /*parameterIndex*/, double /*x*/ ) throw(SQLException, RuntimeException)
209cdf0e10cSrcweir {
210cdf0e10cSrcweir ::dbtools::throwFunctionNotSupportedException( "XParameters::setDouble", *this );
211cdf0e10cSrcweir }
212cdf0e10cSrcweir
213cdf0e10cSrcweir // -------------------------------------------------------------------------
214cdf0e10cSrcweir
setFloat(sal_Int32,float)215cdf0e10cSrcweir void SAL_CALL OEvoabPreparedStatement::setFloat( sal_Int32 /*parameterIndex*/, float /*x*/ ) throw(SQLException, RuntimeException)
216cdf0e10cSrcweir {
217cdf0e10cSrcweir ::dbtools::throwFunctionNotSupportedException( "XParameters::setFloat", *this );
218cdf0e10cSrcweir }
219cdf0e10cSrcweir // -------------------------------------------------------------------------
220cdf0e10cSrcweir
setInt(sal_Int32,sal_Int32)221cdf0e10cSrcweir void SAL_CALL OEvoabPreparedStatement::setInt( sal_Int32 /*parameterIndex*/, sal_Int32 /*x*/ ) throw(SQLException, RuntimeException)
222cdf0e10cSrcweir {
223cdf0e10cSrcweir ::dbtools::throwFunctionNotSupportedException( "XParameters::setInt", *this );
224cdf0e10cSrcweir }
225cdf0e10cSrcweir // -------------------------------------------------------------------------
226cdf0e10cSrcweir
setLong(sal_Int32,sal_Int64)227cdf0e10cSrcweir void SAL_CALL OEvoabPreparedStatement::setLong( sal_Int32 /*parameterIndex*/, sal_Int64 /*aVal*/ ) throw(SQLException, RuntimeException)
228cdf0e10cSrcweir {
229cdf0e10cSrcweir ::dbtools::throwFunctionNotSupportedException( "XParameters::setLong", *this );
230cdf0e10cSrcweir }
231cdf0e10cSrcweir // -------------------------------------------------------------------------
232cdf0e10cSrcweir
setNull(sal_Int32,sal_Int32)233cdf0e10cSrcweir void SAL_CALL OEvoabPreparedStatement::setNull( sal_Int32 /*parameterIndex*/, sal_Int32 /*sqlType*/ ) throw(SQLException, RuntimeException)
234cdf0e10cSrcweir {
235cdf0e10cSrcweir ::dbtools::throwFunctionNotSupportedException( "XParameters::setNull", *this );
236cdf0e10cSrcweir }
237cdf0e10cSrcweir // -------------------------------------------------------------------------
238cdf0e10cSrcweir
setClob(sal_Int32,const Reference<XClob> &)239cdf0e10cSrcweir void SAL_CALL OEvoabPreparedStatement::setClob( sal_Int32 /*parameterIndex*/, const Reference< XClob >& /*x*/ ) throw(SQLException, RuntimeException)
240cdf0e10cSrcweir {
241cdf0e10cSrcweir ::dbtools::throwFunctionNotSupportedException( "XParameters::setClob", *this );
242cdf0e10cSrcweir }
243cdf0e10cSrcweir // -------------------------------------------------------------------------
244cdf0e10cSrcweir
setBlob(sal_Int32,const Reference<XBlob> &)245cdf0e10cSrcweir void SAL_CALL OEvoabPreparedStatement::setBlob( sal_Int32 /*parameterIndex*/, const Reference< XBlob >& /*x*/ ) throw(SQLException, RuntimeException)
246cdf0e10cSrcweir {
247cdf0e10cSrcweir ::dbtools::throwFunctionNotSupportedException( "XParameters::setBlob", *this );
248cdf0e10cSrcweir }
249cdf0e10cSrcweir // -------------------------------------------------------------------------
250cdf0e10cSrcweir
setArray(sal_Int32,const Reference<XArray> &)251cdf0e10cSrcweir void SAL_CALL OEvoabPreparedStatement::setArray( sal_Int32 /*parameterIndex*/, const Reference< XArray >& /*x*/ ) throw(SQLException, RuntimeException)
252cdf0e10cSrcweir {
253cdf0e10cSrcweir ::dbtools::throwFunctionNotSupportedException( "XParameters::setArray", *this );
254cdf0e10cSrcweir }
255cdf0e10cSrcweir // -------------------------------------------------------------------------
256cdf0e10cSrcweir
setRef(sal_Int32,const Reference<XRef> &)257cdf0e10cSrcweir void SAL_CALL OEvoabPreparedStatement::setRef( sal_Int32 /*parameterIndex*/, const Reference< XRef >& /*x*/ ) throw(SQLException, RuntimeException)
258cdf0e10cSrcweir {
259cdf0e10cSrcweir ::dbtools::throwFunctionNotSupportedException( "XParameters::setRef", *this );
260cdf0e10cSrcweir }
261cdf0e10cSrcweir // -------------------------------------------------------------------------
262cdf0e10cSrcweir
setObjectWithInfo(sal_Int32,const Any &,sal_Int32,sal_Int32)263cdf0e10cSrcweir void SAL_CALL OEvoabPreparedStatement::setObjectWithInfo( sal_Int32 /*parameterIndex*/, const Any& /*x*/, sal_Int32 /*sqlType*/, sal_Int32 /*scale*/ ) throw(SQLException, RuntimeException)
264cdf0e10cSrcweir {
265cdf0e10cSrcweir ::dbtools::throwFunctionNotSupportedException( "XParameters::setObjectWithInfo", *this );
266cdf0e10cSrcweir }
267cdf0e10cSrcweir // -------------------------------------------------------------------------
268cdf0e10cSrcweir
setObjectNull(sal_Int32,sal_Int32,const::rtl::OUString &)269cdf0e10cSrcweir void SAL_CALL OEvoabPreparedStatement::setObjectNull( sal_Int32 /*parameterIndex*/, sal_Int32 /*sqlType*/, const ::rtl::OUString& /*typeName*/ ) throw(SQLException, RuntimeException)
270cdf0e10cSrcweir {
271cdf0e10cSrcweir ::dbtools::throwFunctionNotSupportedException( "XParameters::setObjectNull", *this );
272cdf0e10cSrcweir }
273cdf0e10cSrcweir // -------------------------------------------------------------------------
274cdf0e10cSrcweir
setObject(sal_Int32 parameterIndex,const Any & x)275cdf0e10cSrcweir void SAL_CALL OEvoabPreparedStatement::setObject( sal_Int32 parameterIndex, const Any& x ) throw(SQLException, RuntimeException)
276cdf0e10cSrcweir {
277cdf0e10cSrcweir if(!::dbtools::implSetObject(this,parameterIndex,x))
278cdf0e10cSrcweir {
279cdf0e10cSrcweir const ::rtl::OUString sError( getOwnConnection()->getResources().getResourceStringWithSubstitution(
280cdf0e10cSrcweir STR_UNKNOWN_PARA_TYPE,
281cdf0e10cSrcweir "$position$", ::rtl::OUString::valueOf(parameterIndex)
282cdf0e10cSrcweir ) );
283cdf0e10cSrcweir ::dbtools::throwGenericSQLException(sError,*this);
284cdf0e10cSrcweir }
285cdf0e10cSrcweir }
286cdf0e10cSrcweir // -------------------------------------------------------------------------
287cdf0e10cSrcweir
setShort(sal_Int32,sal_Int16)288cdf0e10cSrcweir void SAL_CALL OEvoabPreparedStatement::setShort( sal_Int32 /*parameterIndex*/, sal_Int16 /*x*/ ) throw(SQLException, RuntimeException)
289cdf0e10cSrcweir {
290cdf0e10cSrcweir ::dbtools::throwFunctionNotSupportedException( "XParameters::setShort", *this );
291cdf0e10cSrcweir }
292cdf0e10cSrcweir // -------------------------------------------------------------------------
293cdf0e10cSrcweir
setBytes(sal_Int32,const Sequence<sal_Int8> &)294cdf0e10cSrcweir void SAL_CALL OEvoabPreparedStatement::setBytes( sal_Int32 /*parameterIndex*/, const Sequence< sal_Int8 >& /*x*/ ) throw(SQLException, RuntimeException)
295cdf0e10cSrcweir {
296cdf0e10cSrcweir ::dbtools::throwFunctionNotSupportedException( "XParameters::setBytes", *this );
297cdf0e10cSrcweir }
298cdf0e10cSrcweir // -------------------------------------------------------------------------
299cdf0e10cSrcweir
300cdf0e10cSrcweir
setCharacterStream(sal_Int32,const Reference<XInputStream> &,sal_Int32)301cdf0e10cSrcweir void SAL_CALL OEvoabPreparedStatement::setCharacterStream( sal_Int32 /*parameterIndex*/, const Reference< XInputStream >& /*x*/, sal_Int32 /*length*/ ) throw(SQLException, RuntimeException)
302cdf0e10cSrcweir {
303cdf0e10cSrcweir ::dbtools::throwFunctionNotSupportedException( "XParameters::setCharacterStream", *this );
304cdf0e10cSrcweir }
305cdf0e10cSrcweir // -------------------------------------------------------------------------
306cdf0e10cSrcweir
setBinaryStream(sal_Int32,const Reference<XInputStream> &,sal_Int32)307cdf0e10cSrcweir void SAL_CALL OEvoabPreparedStatement::setBinaryStream( sal_Int32 /*parameterIndex*/, const Reference< XInputStream >& /*x*/, sal_Int32 /*length*/ ) throw(SQLException, RuntimeException)
308cdf0e10cSrcweir {
309cdf0e10cSrcweir ::dbtools::throwFunctionNotSupportedException( "XParameters::setBinaryStream", *this );
310cdf0e10cSrcweir }
311cdf0e10cSrcweir // -------------------------------------------------------------------------
312cdf0e10cSrcweir
clearParameters()313cdf0e10cSrcweir void SAL_CALL OEvoabPreparedStatement::clearParameters( ) throw(SQLException, RuntimeException)
314cdf0e10cSrcweir {
315cdf0e10cSrcweir }
316cdf0e10cSrcweir // -----------------------------------------------------------------------------
getResultSet()317cdf0e10cSrcweir Reference< XResultSet > SAL_CALL OEvoabPreparedStatement::getResultSet( ) throw(SQLException, RuntimeException)
318cdf0e10cSrcweir {
319cdf0e10cSrcweir return NULL;
320cdf0e10cSrcweir }
321cdf0e10cSrcweir // -----------------------------------------------------------------------------
getUpdateCount()322cdf0e10cSrcweir sal_Int32 SAL_CALL OEvoabPreparedStatement::getUpdateCount( ) throw(SQLException, RuntimeException)
323cdf0e10cSrcweir {
324cdf0e10cSrcweir return 0;
325cdf0e10cSrcweir }
326cdf0e10cSrcweir // -----------------------------------------------------------------------------
getMoreResults()327cdf0e10cSrcweir sal_Bool SAL_CALL OEvoabPreparedStatement::getMoreResults( ) throw(SQLException, RuntimeException)
328cdf0e10cSrcweir {
329cdf0e10cSrcweir return sal_False;
330cdf0e10cSrcweir }
331cdf0e10cSrcweir // -----------------------------------------------------------------------------
332