xref: /trunk/main/offapi/com/sun/star/sdbc/XRowUpdate.idl (revision ffd38472365e95f6a578737bc9a5eb0fac624a86)
1*d1766043SAndrew Rist/**************************************************************
2cdf0e10cSrcweir *
3*d1766043SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4*d1766043SAndrew Rist * or more contributor license agreements.  See the NOTICE file
5*d1766043SAndrew Rist * distributed with this work for additional information
6*d1766043SAndrew Rist * regarding copyright ownership.  The ASF licenses this file
7*d1766043SAndrew Rist * to you under the Apache License, Version 2.0 (the
8*d1766043SAndrew Rist * "License"); you may not use this file except in compliance
9*d1766043SAndrew Rist * with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir *
11*d1766043SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir *
13*d1766043SAndrew Rist * Unless required by applicable law or agreed to in writing,
14*d1766043SAndrew Rist * software distributed under the License is distributed on an
15*d1766043SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*d1766043SAndrew Rist * KIND, either express or implied.  See the License for the
17*d1766043SAndrew Rist * specific language governing permissions and limitations
18*d1766043SAndrew Rist * under the License.
19cdf0e10cSrcweir *
20*d1766043SAndrew Rist *************************************************************/
21*d1766043SAndrew Rist
22*d1766043SAndrew Rist
23cdf0e10cSrcweir#ifndef __com_sun_star_sdbc_XRowUpdate_idl__
24cdf0e10cSrcweir#define __com_sun_star_sdbc_XRowUpdate_idl__
25cdf0e10cSrcweir
26cdf0e10cSrcweir#ifndef __com_sun_star_uno_XInterface_idl__
27cdf0e10cSrcweir#include <com/sun/star/uno/XInterface.idl>
28cdf0e10cSrcweir#endif
29cdf0e10cSrcweir
30cdf0e10cSrcweir#ifndef __com_sun_star_util_Date_idl__
31cdf0e10cSrcweir#include <com/sun/star/util/Date.idl>
32cdf0e10cSrcweir#endif
33cdf0e10cSrcweir
34cdf0e10cSrcweir#ifndef __com_sun_star_util_DateTime_idl__
35cdf0e10cSrcweir#include <com/sun/star/util/DateTime.idl>
36cdf0e10cSrcweir#endif
37cdf0e10cSrcweir
38cdf0e10cSrcweir#ifndef __com_sun_star_util_Time_idl__
39cdf0e10cSrcweir#include <com/sun/star/util/Time.idl>
40cdf0e10cSrcweir#endif
41cdf0e10cSrcweir
42cdf0e10cSrcweir module com {  module sun {  module star {  module io {
43cdf0e10cSrcweir published interface XInputStream;
44cdf0e10cSrcweir};};};};
45cdf0e10cSrcweir
46cdf0e10cSrcweir#ifndef __com_sun_star_sdbc_SQLException_idl__
47cdf0e10cSrcweir#include <com/sun/star/sdbc/SQLException.idl>
48cdf0e10cSrcweir#endif
49cdf0e10cSrcweir
50cdf0e10cSrcweir module com {  module sun {  module star {  module sdbc {
51cdf0e10cSrcweir
52cdf0e10cSrcweir
53cdf0e10cSrcweir/** is used to update data which is collected in a row.
54cdf0e10cSrcweir */
55cdf0e10cSrcweirpublished interface XRowUpdate: com::sun::star::uno::XInterface
56cdf0e10cSrcweir{
57cdf0e10cSrcweir
58cdf0e10cSrcweir    /** gives a nullable column a null value.
59cdf0e10cSrcweir        @param columnIndex
60cdf0e10cSrcweir            the position of the column
61cdf0e10cSrcweir        @throws SQLException
62cdf0e10cSrcweir            if a database access error occurs.
63cdf0e10cSrcweir     */
64cdf0e10cSrcweir    void updateNull([in]long columnIndex) raises (SQLException);
65cdf0e10cSrcweir    //-------------------------------------------------------------------------
66cdf0e10cSrcweir
67cdf0e10cSrcweir    /** updates a column with a boolean value.
68cdf0e10cSrcweir        @param columnIndex
69cdf0e10cSrcweir            the position of the column
70cdf0e10cSrcweir        @param x
71cdf0e10cSrcweir            the new column value
72cdf0e10cSrcweir        @throws SQLException
73cdf0e10cSrcweir            if a database access error occurs.
74cdf0e10cSrcweir     */
75cdf0e10cSrcweir    void updateBoolean([in]long columnIndex, [in]boolean x) raises (SQLException);
76cdf0e10cSrcweir    //-------------------------------------------------------------------------
77cdf0e10cSrcweir
78cdf0e10cSrcweir    /** updates a column with a byte value.
79cdf0e10cSrcweir        @param columnIndex
80cdf0e10cSrcweir            the position of the column
81cdf0e10cSrcweir        @param x
82cdf0e10cSrcweir            the new column value
83cdf0e10cSrcweir        @throws SQLException
84cdf0e10cSrcweir            if a database access error occurs.
85cdf0e10cSrcweir     */
86cdf0e10cSrcweir    void updateByte([in]long columnIndex, [in]byte x) raises (SQLException);
87cdf0e10cSrcweir    //-------------------------------------------------------------------------
88cdf0e10cSrcweir
89cdf0e10cSrcweir    /** updates a column with a short value.
90cdf0e10cSrcweir        @param columnIndex
91cdf0e10cSrcweir            the position of the column
92cdf0e10cSrcweir        @param x
93cdf0e10cSrcweir            the new column value
94cdf0e10cSrcweir        @throws SQLException
95cdf0e10cSrcweir            if a database access error occurs.
96cdf0e10cSrcweir     */
97cdf0e10cSrcweir    void updateShort([in]long columnIndex, [in]short x) raises (SQLException);
98cdf0e10cSrcweir    //-------------------------------------------------------------------------
99cdf0e10cSrcweir
100cdf0e10cSrcweir    /** updates a column with an long value.
101cdf0e10cSrcweir        @param columnIndex
102cdf0e10cSrcweir            the position of the column
103cdf0e10cSrcweir        @param x
104cdf0e10cSrcweir            the new column value
105cdf0e10cSrcweir        @throws SQLException
106cdf0e10cSrcweir            if a database access error occurs.
107cdf0e10cSrcweir     */
108cdf0e10cSrcweir    void updateInt([in]long columnIndex, [in]long x) raises (SQLException);
109cdf0e10cSrcweir    //-------------------------------------------------------------------------
110cdf0e10cSrcweir
111cdf0e10cSrcweir    /** updates a column with a hyper value.
112cdf0e10cSrcweir        @param columnIndex
113cdf0e10cSrcweir            the position of the column
114cdf0e10cSrcweir        @param x
115cdf0e10cSrcweir            the new column value
116cdf0e10cSrcweir        @throws SQLException
117cdf0e10cSrcweir            if a database access error occurs.
118cdf0e10cSrcweir     */
119cdf0e10cSrcweir    void updateLong([in]long columnIndex, [in]hyper x) raises (SQLException);
120cdf0e10cSrcweir    //-------------------------------------------------------------------------
121cdf0e10cSrcweir
122cdf0e10cSrcweir    /** updates a column with a float value.
123cdf0e10cSrcweir        @param columnIndex
124cdf0e10cSrcweir            the position of the column
125cdf0e10cSrcweir        @param x
126cdf0e10cSrcweir            the new column value
127cdf0e10cSrcweir        @throws SQLException
128cdf0e10cSrcweir            if a database access error occurs.
129cdf0e10cSrcweir     */
130cdf0e10cSrcweir    void updateFloat([in]long columnIndex, [in]float x) raises (SQLException);
131cdf0e10cSrcweir    //-------------------------------------------------------------------------
132cdf0e10cSrcweir
133cdf0e10cSrcweir    /** updates a column with a double value.
134cdf0e10cSrcweir        @param columnIndex
135cdf0e10cSrcweir            the position of the column
136cdf0e10cSrcweir        @param x
137cdf0e10cSrcweir            the new column value
138cdf0e10cSrcweir        @throws SQLException
139cdf0e10cSrcweir            if a database access error occurs.
140cdf0e10cSrcweir     */
141cdf0e10cSrcweir    void updateDouble([in]long columnIndex, [in]double x) raises (SQLException);
142cdf0e10cSrcweir    //-------------------------------------------------------------------------
143cdf0e10cSrcweir
144cdf0e10cSrcweir    /** updates a column with a string value.
145cdf0e10cSrcweir        @param columnIndex
146cdf0e10cSrcweir            the position of the column
147cdf0e10cSrcweir        @param x
148cdf0e10cSrcweir            the new column value
149cdf0e10cSrcweir        @throws SQLException
150cdf0e10cSrcweir            if a database access error occurs.
151cdf0e10cSrcweir     */
152cdf0e10cSrcweir    void updateString([in]long columnIndex, [in]string x) raises (SQLException);
153cdf0e10cSrcweir    //-------------------------------------------------------------------------
154cdf0e10cSrcweir
155cdf0e10cSrcweir    /** updates a column with a byte array value.
156cdf0e10cSrcweir        @param columnIndex
157cdf0e10cSrcweir            the position of the column
158cdf0e10cSrcweir        @param x
159cdf0e10cSrcweir            the new column value
160cdf0e10cSrcweir        @throws SQLException
161cdf0e10cSrcweir            if a database access error occurs.
162cdf0e10cSrcweir     */
163cdf0e10cSrcweir    void updateBytes([in]long columnIndex, [in]sequence<byte> x) raises (SQLException);
164cdf0e10cSrcweir    //-------------------------------------------------------------------------
165cdf0e10cSrcweir
166cdf0e10cSrcweir    /** updates a column with a date value.
167cdf0e10cSrcweir        @param columnIndex
168cdf0e10cSrcweir            the position of the column
169cdf0e10cSrcweir        @param x
170cdf0e10cSrcweir            the new column value
171cdf0e10cSrcweir        @throws SQLException
172cdf0e10cSrcweir            if a database access error occurs.
173cdf0e10cSrcweir     */
174cdf0e10cSrcweir    void updateDate([in]long columnIndex, [in]com::sun::star::util::Date x)
175cdf0e10cSrcweir        raises (SQLException);
176cdf0e10cSrcweir    //-------------------------------------------------------------------------
177cdf0e10cSrcweir
178cdf0e10cSrcweir    /** updates a column with a time value.
179cdf0e10cSrcweir        @param columnIndex
180cdf0e10cSrcweir            the position of the column
181cdf0e10cSrcweir        @param x
182cdf0e10cSrcweir            the new column value
183cdf0e10cSrcweir        @throws SQLException
184cdf0e10cSrcweir            if a database access error occurs.
185cdf0e10cSrcweir     */
186cdf0e10cSrcweir    void updateTime([in]long columnIndex, [in]com::sun::star::util::Time x)
187cdf0e10cSrcweir        raises (SQLException);
188cdf0e10cSrcweir    //-------------------------------------------------------------------------
189cdf0e10cSrcweir
190cdf0e10cSrcweir    /** updates a column with a timestamp value.
191cdf0e10cSrcweir        @param columnIndex
192cdf0e10cSrcweir            the position of the column
193cdf0e10cSrcweir        @param x
194cdf0e10cSrcweir            the new column value
195cdf0e10cSrcweir        @throws SQLException
196cdf0e10cSrcweir            if a database access error occurs.
197cdf0e10cSrcweir     */
198cdf0e10cSrcweir    void updateTimestamp([in]long columnIndex,
199cdf0e10cSrcweir                         [in]com::sun::star::util::DateTime x)
200cdf0e10cSrcweir      raises (SQLException);
201cdf0e10cSrcweir    //-------------------------------------------------------------------------
202cdf0e10cSrcweir
203cdf0e10cSrcweir    /** updates a column with a stream value.
204cdf0e10cSrcweir        @param columnIndex
205cdf0e10cSrcweir            the position of the column
206cdf0e10cSrcweir        @param x
207cdf0e10cSrcweir            the new column value
208cdf0e10cSrcweir        @param length
209cdf0e10cSrcweir            how much data should be read out of the stream
210cdf0e10cSrcweir        @throws SQLException
211cdf0e10cSrcweir            if a database access error occurs.
212cdf0e10cSrcweir     */
213cdf0e10cSrcweir    void updateBinaryStream([in]long columnIndex,
214cdf0e10cSrcweir                            [in]com::sun::star::io::XInputStream x,
215cdf0e10cSrcweir                            [in]long length) raises (SQLException);
216cdf0e10cSrcweir    //-------------------------------------------------------------------------
217cdf0e10cSrcweir
218cdf0e10cSrcweir    /** updates a column with a stream value.
219cdf0e10cSrcweir        @param columnIndex
220cdf0e10cSrcweir            the position of the column
221cdf0e10cSrcweir        @param x
222cdf0e10cSrcweir            the new column value
223cdf0e10cSrcweir        @param length
224cdf0e10cSrcweir            how much data should be read out of the stream
225cdf0e10cSrcweir        @throws SQLException
226cdf0e10cSrcweir            if a database access error occurs.
227cdf0e10cSrcweir     */
228cdf0e10cSrcweir    void updateCharacterStream([in]long columnIndex,
229cdf0e10cSrcweir                               [in]com::sun::star::io::XInputStream x,
230cdf0e10cSrcweir                               [in]long length) raises (SQLException);
231cdf0e10cSrcweir    //-------------------------------------------------------------------------
232cdf0e10cSrcweir
233cdf0e10cSrcweir    /** updates a column with an object value.
234cdf0e10cSrcweir        @param columnIndex
235cdf0e10cSrcweir            the position of the column
236cdf0e10cSrcweir        @param x
237cdf0e10cSrcweir            the new column value
238cdf0e10cSrcweir        @throws SQLException
239cdf0e10cSrcweir            if a database access error occurs.
240cdf0e10cSrcweir     */
241cdf0e10cSrcweir    void updateObject([in]long columnIndex, [in]any x)
242cdf0e10cSrcweir      raises (SQLException);
243cdf0e10cSrcweir    //-------------------------------------------------------------------------
244cdf0e10cSrcweir
245cdf0e10cSrcweir    /** updates a column with an object value.
246cdf0e10cSrcweir        @param columnIndex
247cdf0e10cSrcweir            the position of the column
248cdf0e10cSrcweir        @param x
249cdf0e10cSrcweir            the new column value
250cdf0e10cSrcweir        @param scale
251cdf0e10cSrcweir            defines the scale which should be used to write the numeric value
252cdf0e10cSrcweir        @throws SQLException
253cdf0e10cSrcweir            if a database access error occurs.
254cdf0e10cSrcweir     */
255cdf0e10cSrcweir    void updateNumericObject([in]long columnIndex, [in]any x, [in]long scale)
256cdf0e10cSrcweir      raises (SQLException);
257cdf0e10cSrcweir};
258cdf0e10cSrcweir
259cdf0e10cSrcweir//=============================================================================
260cdf0e10cSrcweir
261cdf0e10cSrcweir}; }; }; };
262cdf0e10cSrcweir
263cdf0e10cSrcweir/*===========================================================================
264cdf0e10cSrcweir===========================================================================*/
265cdf0e10cSrcweir#endif
266