1*96de5490SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*96de5490SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*96de5490SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*96de5490SAndrew Rist  * distributed with this work for additional information
6*96de5490SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*96de5490SAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*96de5490SAndrew Rist  * "License"); you may not use this file except in compliance
9*96de5490SAndrew Rist  * with the License.  You may obtain a copy of the License at
10*96de5490SAndrew Rist  *
11*96de5490SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*96de5490SAndrew Rist  *
13*96de5490SAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*96de5490SAndrew Rist  * software distributed under the License is distributed on an
15*96de5490SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*96de5490SAndrew Rist  * KIND, either express or implied.  See the License for the
17*96de5490SAndrew Rist  * specific language governing permissions and limitations
18*96de5490SAndrew Rist  * under the License.
19*96de5490SAndrew Rist  *
20*96de5490SAndrew Rist  *************************************************************/
21*96de5490SAndrew Rist 
22*96de5490SAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove
25cdf0e10cSrcweir #include "precompiled_dbaccess.hxx"
26cdf0e10cSrcweir #ifndef _DBA_COREAPI_CALLABLESTATEMENT_HXX_
27cdf0e10cSrcweir #include <callablestatement.hxx>
28cdf0e10cSrcweir #endif
29cdf0e10cSrcweir #ifndef _COM_SUN_STAR_LANG_DISPOSEDEXCEPTION_HPP_
30cdf0e10cSrcweir #include <com/sun/star/lang/DisposedException.hpp>
31cdf0e10cSrcweir #endif
32cdf0e10cSrcweir #ifndef _CPPUHELPER_TYPEPROVIDER_HXX_
33cdf0e10cSrcweir #include <cppuhelper/typeprovider.hxx>
34cdf0e10cSrcweir #endif
35cdf0e10cSrcweir #ifndef _COMPHELPER_PROPERTY_HXX_
36cdf0e10cSrcweir #include <comphelper/property.hxx>
37cdf0e10cSrcweir #endif
38cdf0e10cSrcweir #ifndef _TOOLS_DEBUG_HXX //autogen
39cdf0e10cSrcweir #include <tools/debug.hxx>
40cdf0e10cSrcweir #endif
41cdf0e10cSrcweir #ifndef DBACCESS_SHARED_DBASTRINGS_HRC
42cdf0e10cSrcweir #include "dbastrings.hrc"
43cdf0e10cSrcweir #endif
44cdf0e10cSrcweir #include <rtl/logfile.hxx>
45cdf0e10cSrcweir 
46cdf0e10cSrcweir using namespace dbaccess;
47cdf0e10cSrcweir using namespace ::com::sun::star::sdbc;
48cdf0e10cSrcweir using namespace ::com::sun::star::sdbcx;
49cdf0e10cSrcweir using namespace ::com::sun::star::beans;
50cdf0e10cSrcweir using namespace ::com::sun::star::uno;
51cdf0e10cSrcweir using namespace ::com::sun::star::lang;
52cdf0e10cSrcweir using namespace ::cppu;
53cdf0e10cSrcweir using namespace ::osl;
54cdf0e10cSrcweir 
55cdf0e10cSrcweir // com::sun::star::lang::XTypeProvider
56cdf0e10cSrcweir //--------------------------------------------------------------------------
getTypes()57cdf0e10cSrcweir Sequence< Type > OCallableStatement::getTypes() throw (RuntimeException)
58cdf0e10cSrcweir {
59cdf0e10cSrcweir     RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "dbaccess", "Ocke.Janssen@sun.com", "OCallableStatement::getTypes" );
60cdf0e10cSrcweir 	OTypeCollection aTypes(::getCppuType( (const Reference< XRow > *)0 ),
61cdf0e10cSrcweir 						   ::getCppuType( (const Reference< XOutParameters > *)0 ),
62cdf0e10cSrcweir 							OPreparedStatement::getTypes() );
63cdf0e10cSrcweir 
64cdf0e10cSrcweir 	return aTypes.getTypes();
65cdf0e10cSrcweir }
66cdf0e10cSrcweir 
67cdf0e10cSrcweir //--------------------------------------------------------------------------
getImplementationId()68cdf0e10cSrcweir Sequence< sal_Int8 > OCallableStatement::getImplementationId() throw (RuntimeException)
69cdf0e10cSrcweir {
70cdf0e10cSrcweir     RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "dbaccess", "Ocke.Janssen@sun.com", "OCallableStatement::getImplementationId" );
71cdf0e10cSrcweir 	static OImplementationId * pId = 0;
72cdf0e10cSrcweir 	if (! pId)
73cdf0e10cSrcweir 	{
74cdf0e10cSrcweir 		MutexGuard aGuard( Mutex::getGlobalMutex() );
75cdf0e10cSrcweir 		if (! pId)
76cdf0e10cSrcweir 		{
77cdf0e10cSrcweir 			static OImplementationId aId;
78cdf0e10cSrcweir 			pId = &aId;
79cdf0e10cSrcweir 		}
80cdf0e10cSrcweir 	}
81cdf0e10cSrcweir 	return pId->getImplementationId();
82cdf0e10cSrcweir }
83cdf0e10cSrcweir 
84cdf0e10cSrcweir // com::sun::star::uno::XInterface
85cdf0e10cSrcweir //--------------------------------------------------------------------------
queryInterface(const Type & rType)86cdf0e10cSrcweir Any OCallableStatement::queryInterface( const Type & rType ) throw (RuntimeException)
87cdf0e10cSrcweir {
88cdf0e10cSrcweir     //RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "dbaccess", "Ocke.Janssen@sun.com", "OCallableStatement::queryInterface" );
89cdf0e10cSrcweir 	Any aIface = OPreparedStatement::queryInterface( rType );
90cdf0e10cSrcweir 	if (!aIface.hasValue())
91cdf0e10cSrcweir 		aIface = ::cppu::queryInterface(
92cdf0e10cSrcweir 					rType,
93cdf0e10cSrcweir 					static_cast< XRow * >( this ),
94cdf0e10cSrcweir 					static_cast< XOutParameters * >( this ));
95cdf0e10cSrcweir 	return aIface;
96cdf0e10cSrcweir }
97cdf0e10cSrcweir 
98cdf0e10cSrcweir //--------------------------------------------------------------------------
acquire()99cdf0e10cSrcweir void OCallableStatement::acquire() throw ()
100cdf0e10cSrcweir {
101cdf0e10cSrcweir 	OPreparedStatement::acquire();
102cdf0e10cSrcweir }
103cdf0e10cSrcweir 
104cdf0e10cSrcweir //--------------------------------------------------------------------------
release()105cdf0e10cSrcweir void OCallableStatement::release() throw ()
106cdf0e10cSrcweir {
107cdf0e10cSrcweir 	OPreparedStatement::release();
108cdf0e10cSrcweir }
109cdf0e10cSrcweir 
110cdf0e10cSrcweir // XServiceInfo
111cdf0e10cSrcweir //------------------------------------------------------------------------------
getImplementationName()112cdf0e10cSrcweir rtl::OUString OCallableStatement::getImplementationName(  ) throw(RuntimeException)
113cdf0e10cSrcweir {
114cdf0e10cSrcweir     RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "dbaccess", "Ocke.Janssen@sun.com", "OCallableStatement::getImplementationName" );
115cdf0e10cSrcweir 	return rtl::OUString::createFromAscii("com.sun.star.sdb.OCallableStatement");
116cdf0e10cSrcweir }
117cdf0e10cSrcweir 
118cdf0e10cSrcweir //------------------------------------------------------------------------------
getSupportedServiceNames()119cdf0e10cSrcweir Sequence< ::rtl::OUString > OCallableStatement::getSupportedServiceNames(  ) throw (RuntimeException)
120cdf0e10cSrcweir {
121cdf0e10cSrcweir     RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "dbaccess", "Ocke.Janssen@sun.com", "OCallableStatement::getSupportedServiceNames" );
122cdf0e10cSrcweir 	Sequence< ::rtl::OUString > aSNS( 2 );
123cdf0e10cSrcweir 	aSNS.getArray()[0] = SERVICE_SDBC_CALLABLESTATEMENT;
124cdf0e10cSrcweir 	aSNS.getArray()[1] = SERVICE_SDB_CALLABLESTATEMENT;
125cdf0e10cSrcweir 	return aSNS;
126cdf0e10cSrcweir }
127cdf0e10cSrcweir 
128cdf0e10cSrcweir // XOutParameters
129cdf0e10cSrcweir //------------------------------------------------------------------------------
registerOutParameter(sal_Int32 parameterIndex,sal_Int32 sqlType,const::rtl::OUString & typeName)130cdf0e10cSrcweir void SAL_CALL OCallableStatement::registerOutParameter( sal_Int32 parameterIndex, sal_Int32 sqlType, const ::rtl::OUString& typeName ) throw(SQLException, RuntimeException)
131cdf0e10cSrcweir {
132cdf0e10cSrcweir     RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "dbaccess", "Ocke.Janssen@sun.com", "OCallableStatement::registerOutParameter" );
133cdf0e10cSrcweir 	MutexGuard aGuard(m_aMutex);
134cdf0e10cSrcweir 
135cdf0e10cSrcweir 	::connectivity::checkDisposed(OComponentHelper::rBHelper.bDisposed);
136cdf0e10cSrcweir 
137cdf0e10cSrcweir 
138cdf0e10cSrcweir 	Reference< XOutParameters >(m_xAggregateAsSet, UNO_QUERY)->registerOutParameter( parameterIndex, sqlType, typeName );
139cdf0e10cSrcweir }
140cdf0e10cSrcweir 
141cdf0e10cSrcweir //------------------------------------------------------------------------------
registerNumericOutParameter(sal_Int32 parameterIndex,sal_Int32 sqlType,sal_Int32 scale)142cdf0e10cSrcweir void SAL_CALL OCallableStatement::registerNumericOutParameter( sal_Int32 parameterIndex, sal_Int32 sqlType, sal_Int32 scale ) throw(SQLException, RuntimeException)
143cdf0e10cSrcweir {
144cdf0e10cSrcweir     RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "dbaccess", "Ocke.Janssen@sun.com", "OCallableStatement::registerNumericOutParameter" );
145cdf0e10cSrcweir 	MutexGuard aGuard(m_aMutex);
146cdf0e10cSrcweir 	::connectivity::checkDisposed(OComponentHelper::rBHelper.bDisposed);
147cdf0e10cSrcweir 
148cdf0e10cSrcweir 	Reference< XOutParameters >(m_xAggregateAsSet, UNO_QUERY)->registerNumericOutParameter( parameterIndex, sqlType, scale );
149cdf0e10cSrcweir }
150cdf0e10cSrcweir 
151cdf0e10cSrcweir // XRow
152cdf0e10cSrcweir //------------------------------------------------------------------------------
wasNull()153cdf0e10cSrcweir sal_Bool SAL_CALL OCallableStatement::wasNull(  ) throw(SQLException, RuntimeException)
154cdf0e10cSrcweir {
155cdf0e10cSrcweir     RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "dbaccess", "Ocke.Janssen@sun.com", "OCallableStatement::wasNull" );
156cdf0e10cSrcweir 	MutexGuard aGuard(m_aMutex);
157cdf0e10cSrcweir 	::connectivity::checkDisposed(OComponentHelper::rBHelper.bDisposed);
158cdf0e10cSrcweir 
159cdf0e10cSrcweir 	return Reference< XRow >(m_xAggregateAsSet, UNO_QUERY)->wasNull();
160cdf0e10cSrcweir }
161cdf0e10cSrcweir 
162cdf0e10cSrcweir //------------------------------------------------------------------------------
getString(sal_Int32 columnIndex)163cdf0e10cSrcweir ::rtl::OUString SAL_CALL OCallableStatement::getString( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
164cdf0e10cSrcweir {
165cdf0e10cSrcweir     RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "dbaccess", "Ocke.Janssen@sun.com", "OCallableStatement::getString" );
166cdf0e10cSrcweir 	MutexGuard aGuard(m_aMutex);
167cdf0e10cSrcweir 	::connectivity::checkDisposed(OComponentHelper::rBHelper.bDisposed);
168cdf0e10cSrcweir 
169cdf0e10cSrcweir 	return Reference< XRow >(m_xAggregateAsSet, UNO_QUERY)->getString( columnIndex );
170cdf0e10cSrcweir }
171cdf0e10cSrcweir 
172cdf0e10cSrcweir //------------------------------------------------------------------------------
getBoolean(sal_Int32 columnIndex)173cdf0e10cSrcweir sal_Bool SAL_CALL OCallableStatement::getBoolean( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
174cdf0e10cSrcweir {
175cdf0e10cSrcweir     RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "dbaccess", "Ocke.Janssen@sun.com", "OCallableStatement::getBoolean" );
176cdf0e10cSrcweir 	MutexGuard aGuard(m_aMutex);
177cdf0e10cSrcweir 	::connectivity::checkDisposed(OComponentHelper::rBHelper.bDisposed);
178cdf0e10cSrcweir 
179cdf0e10cSrcweir 	return Reference< XRow >(m_xAggregateAsSet, UNO_QUERY)->getBoolean( columnIndex );
180cdf0e10cSrcweir }
181cdf0e10cSrcweir 
182cdf0e10cSrcweir //------------------------------------------------------------------------------
getByte(sal_Int32 columnIndex)183cdf0e10cSrcweir sal_Int8 SAL_CALL OCallableStatement::getByte( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
184cdf0e10cSrcweir {
185cdf0e10cSrcweir     RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "dbaccess", "Ocke.Janssen@sun.com", "OCallableStatement::getByte" );
186cdf0e10cSrcweir 	MutexGuard aGuard(m_aMutex);
187cdf0e10cSrcweir 	::connectivity::checkDisposed(OComponentHelper::rBHelper.bDisposed);
188cdf0e10cSrcweir 
189cdf0e10cSrcweir 	return Reference< XRow >(m_xAggregateAsSet, UNO_QUERY)->getByte( columnIndex );
190cdf0e10cSrcweir }
191cdf0e10cSrcweir 
192cdf0e10cSrcweir //------------------------------------------------------------------------------
getShort(sal_Int32 columnIndex)193cdf0e10cSrcweir sal_Int16 SAL_CALL OCallableStatement::getShort( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
194cdf0e10cSrcweir {
195cdf0e10cSrcweir     RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "dbaccess", "Ocke.Janssen@sun.com", "OCallableStatement::getShort" );
196cdf0e10cSrcweir 	MutexGuard aGuard(m_aMutex);
197cdf0e10cSrcweir 	::connectivity::checkDisposed(OComponentHelper::rBHelper.bDisposed);
198cdf0e10cSrcweir 	return Reference< XRow >(m_xAggregateAsSet, UNO_QUERY)->getShort( columnIndex );
199cdf0e10cSrcweir }
200cdf0e10cSrcweir 
201cdf0e10cSrcweir //------------------------------------------------------------------------------
getInt(sal_Int32 columnIndex)202cdf0e10cSrcweir sal_Int32 SAL_CALL OCallableStatement::getInt( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
203cdf0e10cSrcweir {
204cdf0e10cSrcweir     RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "dbaccess", "Ocke.Janssen@sun.com", "OCallableStatement::getInt" );
205cdf0e10cSrcweir 	MutexGuard aGuard(m_aMutex);
206cdf0e10cSrcweir 	::connectivity::checkDisposed(OComponentHelper::rBHelper.bDisposed);
207cdf0e10cSrcweir 	return Reference< XRow >(m_xAggregateAsSet, UNO_QUERY)->getInt( columnIndex );
208cdf0e10cSrcweir }
209cdf0e10cSrcweir 
210cdf0e10cSrcweir //------------------------------------------------------------------------------
getLong(sal_Int32 columnIndex)211cdf0e10cSrcweir sal_Int64 SAL_CALL OCallableStatement::getLong( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
212cdf0e10cSrcweir {
213cdf0e10cSrcweir     RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "dbaccess", "Ocke.Janssen@sun.com", "OCallableStatement::getLong" );
214cdf0e10cSrcweir 	MutexGuard aGuard(m_aMutex);
215cdf0e10cSrcweir 	::connectivity::checkDisposed(OComponentHelper::rBHelper.bDisposed);
216cdf0e10cSrcweir 	return Reference< XRow >(m_xAggregateAsSet, UNO_QUERY)->getLong( columnIndex );
217cdf0e10cSrcweir }
218cdf0e10cSrcweir 
219cdf0e10cSrcweir //------------------------------------------------------------------------------
getFloat(sal_Int32 columnIndex)220cdf0e10cSrcweir float SAL_CALL OCallableStatement::getFloat( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
221cdf0e10cSrcweir {
222cdf0e10cSrcweir     RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "dbaccess", "Ocke.Janssen@sun.com", "OCallableStatement::getFloat" );
223cdf0e10cSrcweir 	MutexGuard aGuard(m_aMutex);
224cdf0e10cSrcweir 	::connectivity::checkDisposed(OComponentHelper::rBHelper.bDisposed);
225cdf0e10cSrcweir 	return Reference< XRow >(m_xAggregateAsSet, UNO_QUERY)->getFloat( columnIndex );
226cdf0e10cSrcweir }
227cdf0e10cSrcweir 
228cdf0e10cSrcweir //------------------------------------------------------------------------------
getDouble(sal_Int32 columnIndex)229cdf0e10cSrcweir double SAL_CALL OCallableStatement::getDouble( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
230cdf0e10cSrcweir {
231cdf0e10cSrcweir     RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "dbaccess", "Ocke.Janssen@sun.com", "OCallableStatement::getDouble" );
232cdf0e10cSrcweir 	MutexGuard aGuard(m_aMutex);
233cdf0e10cSrcweir 	::connectivity::checkDisposed(OComponentHelper::rBHelper.bDisposed);
234cdf0e10cSrcweir 	return Reference< XRow >(m_xAggregateAsSet, UNO_QUERY)->getDouble( columnIndex );
235cdf0e10cSrcweir }
236cdf0e10cSrcweir 
237cdf0e10cSrcweir //------------------------------------------------------------------------------
getBytes(sal_Int32 columnIndex)238cdf0e10cSrcweir Sequence< sal_Int8 > SAL_CALL OCallableStatement::getBytes( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
239cdf0e10cSrcweir {
240cdf0e10cSrcweir     RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "dbaccess", "Ocke.Janssen@sun.com", "OCallableStatement::getBytes" );
241cdf0e10cSrcweir 	MutexGuard aGuard(m_aMutex);
242cdf0e10cSrcweir 	::connectivity::checkDisposed(OComponentHelper::rBHelper.bDisposed);
243cdf0e10cSrcweir 	return Reference< XRow >(m_xAggregateAsSet, UNO_QUERY)->getBytes( columnIndex );
244cdf0e10cSrcweir }
245cdf0e10cSrcweir 
246cdf0e10cSrcweir //------------------------------------------------------------------------------
getDate(sal_Int32 columnIndex)247cdf0e10cSrcweir ::com::sun::star::util::Date SAL_CALL OCallableStatement::getDate( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
248cdf0e10cSrcweir {
249cdf0e10cSrcweir     RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "dbaccess", "Ocke.Janssen@sun.com", "OCallableStatement::getDate" );
250cdf0e10cSrcweir 	MutexGuard aGuard(m_aMutex);
251cdf0e10cSrcweir 	::connectivity::checkDisposed(OComponentHelper::rBHelper.bDisposed);
252cdf0e10cSrcweir 	return Reference< XRow >(m_xAggregateAsSet, UNO_QUERY)->getDate( columnIndex );
253cdf0e10cSrcweir }
254cdf0e10cSrcweir 
255cdf0e10cSrcweir //------------------------------------------------------------------------------
getTime(sal_Int32 columnIndex)256cdf0e10cSrcweir ::com::sun::star::util::Time SAL_CALL OCallableStatement::getTime( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
257cdf0e10cSrcweir {
258cdf0e10cSrcweir     RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "dbaccess", "Ocke.Janssen@sun.com", "OCallableStatement::getTime" );
259cdf0e10cSrcweir 	MutexGuard aGuard(m_aMutex);
260cdf0e10cSrcweir 	::connectivity::checkDisposed(OComponentHelper::rBHelper.bDisposed);
261cdf0e10cSrcweir 	return Reference< XRow >(m_xAggregateAsSet, UNO_QUERY)->getTime( columnIndex );
262cdf0e10cSrcweir }
263cdf0e10cSrcweir 
264cdf0e10cSrcweir //------------------------------------------------------------------------------
getTimestamp(sal_Int32 columnIndex)265cdf0e10cSrcweir ::com::sun::star::util::DateTime SAL_CALL OCallableStatement::getTimestamp( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
266cdf0e10cSrcweir {
267cdf0e10cSrcweir     RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "dbaccess", "Ocke.Janssen@sun.com", "OCallableStatement::getTimestamp" );
268cdf0e10cSrcweir 	MutexGuard aGuard(m_aMutex);
269cdf0e10cSrcweir 	::connectivity::checkDisposed(OComponentHelper::rBHelper.bDisposed);
270cdf0e10cSrcweir 
271cdf0e10cSrcweir 	return Reference< XRow >(m_xAggregateAsSet, UNO_QUERY)->getTimestamp( columnIndex );
272cdf0e10cSrcweir }
273cdf0e10cSrcweir 
274cdf0e10cSrcweir //------------------------------------------------------------------------------
getBinaryStream(sal_Int32 columnIndex)275cdf0e10cSrcweir Reference< ::com::sun::star::io::XInputStream > SAL_CALL OCallableStatement::getBinaryStream( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
276cdf0e10cSrcweir {
277cdf0e10cSrcweir     RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "dbaccess", "Ocke.Janssen@sun.com", "OCallableStatement::getBinaryStream" );
278cdf0e10cSrcweir 	MutexGuard aGuard(m_aMutex);
279cdf0e10cSrcweir 	::connectivity::checkDisposed(OComponentHelper::rBHelper.bDisposed);
280cdf0e10cSrcweir 
281cdf0e10cSrcweir 	return Reference< XRow >(m_xAggregateAsSet, UNO_QUERY)->getBinaryStream( columnIndex );
282cdf0e10cSrcweir }
283cdf0e10cSrcweir 
284cdf0e10cSrcweir //------------------------------------------------------------------------------
getCharacterStream(sal_Int32 columnIndex)285cdf0e10cSrcweir Reference< ::com::sun::star::io::XInputStream > SAL_CALL OCallableStatement::getCharacterStream( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
286cdf0e10cSrcweir {
287cdf0e10cSrcweir     RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "dbaccess", "Ocke.Janssen@sun.com", "OCallableStatement::getCharacterStream" );
288cdf0e10cSrcweir 	MutexGuard aGuard(m_aMutex);
289cdf0e10cSrcweir 	::connectivity::checkDisposed(OComponentHelper::rBHelper.bDisposed);
290cdf0e10cSrcweir 
291cdf0e10cSrcweir 	return Reference< XRow >(m_xAggregateAsSet, UNO_QUERY)->getCharacterStream( columnIndex );
292cdf0e10cSrcweir }
293cdf0e10cSrcweir 
294cdf0e10cSrcweir //------------------------------------------------------------------------------
getObject(sal_Int32 columnIndex,const Reference<::com::sun::star::container::XNameAccess> & typeMap)295cdf0e10cSrcweir Any SAL_CALL OCallableStatement::getObject( sal_Int32 columnIndex, const Reference< ::com::sun::star::container::XNameAccess >& typeMap ) throw(SQLException, RuntimeException)
296cdf0e10cSrcweir {
297cdf0e10cSrcweir     RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "dbaccess", "Ocke.Janssen@sun.com", "OCallableStatement::getObject" );
298cdf0e10cSrcweir 	MutexGuard aGuard(m_aMutex);
299cdf0e10cSrcweir 	::connectivity::checkDisposed(OComponentHelper::rBHelper.bDisposed);
300cdf0e10cSrcweir 
301cdf0e10cSrcweir 	return Reference< XRow >(m_xAggregateAsSet, UNO_QUERY)->getObject( columnIndex, typeMap );
302cdf0e10cSrcweir }
303cdf0e10cSrcweir 
304cdf0e10cSrcweir //------------------------------------------------------------------------------
getRef(sal_Int32 columnIndex)305cdf0e10cSrcweir Reference< XRef > SAL_CALL OCallableStatement::getRef( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
306cdf0e10cSrcweir {
307cdf0e10cSrcweir     RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "dbaccess", "Ocke.Janssen@sun.com", "OCallableStatement::getRef" );
308cdf0e10cSrcweir 	MutexGuard aGuard(m_aMutex);
309cdf0e10cSrcweir 	::connectivity::checkDisposed(OComponentHelper::rBHelper.bDisposed);
310cdf0e10cSrcweir 	return Reference< XRow >(m_xAggregateAsSet, UNO_QUERY)->getRef( columnIndex );
311cdf0e10cSrcweir }
312cdf0e10cSrcweir 
313cdf0e10cSrcweir //------------------------------------------------------------------------------
getBlob(sal_Int32 columnIndex)314cdf0e10cSrcweir Reference< XBlob > SAL_CALL OCallableStatement::getBlob( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
315cdf0e10cSrcweir {
316cdf0e10cSrcweir     RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "dbaccess", "Ocke.Janssen@sun.com", "OCallableStatement::getBlob" );
317cdf0e10cSrcweir 	MutexGuard aGuard(m_aMutex);
318cdf0e10cSrcweir 	::connectivity::checkDisposed(OComponentHelper::rBHelper.bDisposed);
319cdf0e10cSrcweir 	return Reference< XRow >(m_xAggregateAsSet, UNO_QUERY)->getBlob( columnIndex );
320cdf0e10cSrcweir }
321cdf0e10cSrcweir 
322cdf0e10cSrcweir //------------------------------------------------------------------------------
getClob(sal_Int32 columnIndex)323cdf0e10cSrcweir Reference< XClob > SAL_CALL OCallableStatement::getClob( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
324cdf0e10cSrcweir {
325cdf0e10cSrcweir     RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "dbaccess", "Ocke.Janssen@sun.com", "OCallableStatement::getClob" );
326cdf0e10cSrcweir 	MutexGuard aGuard(m_aMutex);
327cdf0e10cSrcweir 	::connectivity::checkDisposed(OComponentHelper::rBHelper.bDisposed);
328cdf0e10cSrcweir 	return Reference< XRow >(m_xAggregateAsSet, UNO_QUERY)->getClob( columnIndex );
329cdf0e10cSrcweir }
330cdf0e10cSrcweir 
331cdf0e10cSrcweir //------------------------------------------------------------------------------
getArray(sal_Int32 columnIndex)332cdf0e10cSrcweir Reference< XArray > SAL_CALL OCallableStatement::getArray( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
333cdf0e10cSrcweir {
334cdf0e10cSrcweir     RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "dbaccess", "Ocke.Janssen@sun.com", "OCallableStatement::getArray" );
335cdf0e10cSrcweir 	MutexGuard aGuard(m_aMutex);
336cdf0e10cSrcweir 	::connectivity::checkDisposed(OComponentHelper::rBHelper.bDisposed);
337cdf0e10cSrcweir 	return Reference< XRow >(m_xAggregateAsSet, UNO_QUERY)->getArray( columnIndex );
338cdf0e10cSrcweir }
339cdf0e10cSrcweir 
340cdf0e10cSrcweir 
341