1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: CallableStatement.idl,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef __com_sun_star_sdbc_CallableStatement_idl__
31 #define __com_sun_star_sdbc_CallableStatement_idl__
33 #ifndef __com_sun_star_sdbc_PreparedStatement_idl__
34 #include
<com
/sun
/star
/sdbc
/PreparedStatement.idl
>
37 module com
{ module sun
{ module star
{ module sdbc
{
39 published
interface XRow
;
40 published
interface XOutParameters
;
43 /** is used to execute SQL stored procedures.
47 SDBC provides a stored procedure SQL escape that allows stored procedures
48 to be called in a standard way for all RDBMSs. This escape syntax has one
49 form that includes a result parameter and one that does not. If used, the
50 result parameter must be registered as an OUT parameter. The other parameters
51 can be used for input, output, or both. Parameters are referred to sequentially,
52 by number. The first parameter is 1.
55 <code>{?=call&lt;procedure-name&gt;[&lt;arg1&gt;,&lt;arg2&gt;,...]}<br/>{call&lt;procedure-name&gt;[&lt;arg1&gt;,&lt;arg2&gt;,...]}
59 IN parameter values are set using the set methods inherited from
60 <type scope="com::sun::star::sdbc">PreparedStatement</type>
62 OUT parameters must be registered prior to executing the stored procedure;
63 their values are retrieved after execution via the
67 <type scope="com::sun::star::sdbc">XRow</type>
72 <code>CallableStatement</code>
74 <type scope="com::sun::star::sdbc">XResultSet</type>
76 <type scope="com::sun::star::sdbc">ResultSet</type>
78 <code>ResultSet</code>
80 handled using operations inherited from
81 <type scope="com::sun::star::sdbc">XPreparedStatement</type>
85 For maximum portability, a call's
86 <type scope="com::sun::star::sdbc">ResultSet</type>
88 update counts should be processed prior to getting the values of output
92 published service CallableStatement
94 service PreparedStatement
;
97 /** is used for retrieve the values of OUT parameters.
102 /** is used to declare parameters as OUT parameters.
104 interface XOutParameters
;
107 //=============================================================================
111 /*===========================================================================
112 ===========================================================================*/