1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef __com_sun_star_sdbc_XRowUpdate_idl__
20 #define __com_sun_star_sdbc_XRowUpdate_idl__
22 #include
<com
/sun
/star
/uno
/XInterface.idl
>
24 #include
<com
/sun
/star
/util
/Date.idl
>
26 #include
<com
/sun
/star
/util
/DateTime.idl
>
28 #include
<com
/sun
/star
/util
/Time.idl
>
30 module com
{ module sun
{ module star
{ module io
{
31 published
interface XInputStream
;
34 #include
<com
/sun
/star
/sdbc
/SQLException.idl
>
36 module com
{ module sun
{ module star
{ module sdbc
{
39 /** is used to update data which is collected in a row.
41 published
interface XRowUpdate
: com
::sun
::star
::uno
::XInterface
44 /** gives a nullable column a null value.
46 the position of the column
48 if a database access error occurs.
50 void updateNull
([in]long columnIndex
) raises
(SQLException
);
52 /** updates a column with a boolean value.
54 the position of the column
58 if a database access error occurs.
60 void updateBoolean
([in]long columnIndex
, [in]boolean x
) raises
(SQLException
);
62 /** updates a column with a byte value.
64 the position of the column
68 if a database access error occurs.
70 void updateByte
([in]long columnIndex
, [in]byte x
) raises
(SQLException
);
72 /** updates a column with a short value.
74 the position of the column
78 if a database access error occurs.
80 void updateShort
([in]long columnIndex
, [in]short x
) raises
(SQLException
);
82 /** updates a column with an long value.
84 the position of the column
88 if a database access error occurs.
90 void updateInt
([in]long columnIndex
, [in]long x
) raises
(SQLException
);
92 /** updates a column with a hyper value.
94 the position of the column
98 if a database access error occurs.
100 void updateLong
([in]long columnIndex
, [in]hyper x
) raises
(SQLException
);
102 /** updates a column with a float value.
104 the position of the column
108 if a database access error occurs.
110 void updateFloat
([in]long columnIndex
, [in]float x
) raises
(SQLException
);
112 /** updates a column with a double value.
114 the position of the column
118 if a database access error occurs.
120 void updateDouble
([in]long columnIndex
, [in]double x
) raises
(SQLException
);
122 /** updates a column with a string value.
124 the position of the column
128 if a database access error occurs.
130 void updateString
([in]long columnIndex
, [in]string x
) raises
(SQLException
);
132 /** updates a column with a byte array value.
134 the position of the column
138 if a database access error occurs.
140 void updateBytes
([in]long columnIndex
, [in]sequence
<byte> x
) raises
(SQLException
);
142 /** updates a column with a date value.
144 the position of the column
148 if a database access error occurs.
150 void updateDate
([in]long columnIndex
, [in]com
::sun
::star
::util
::Date x
)
151 raises
(SQLException
);
153 /** updates a column with a time value.
155 the position of the column
159 if a database access error occurs.
161 void updateTime
([in]long columnIndex
, [in]com
::sun
::star
::util
::Time x
)
162 raises
(SQLException
);
164 /** updates a column with a timestamp value.
166 the position of the column
170 if a database access error occurs.
172 void updateTimestamp
([in]long columnIndex
,
173 [in]com
::sun
::star
::util
::DateTime x
)
174 raises
(SQLException
);
176 /** updates a column with a stream value.
178 the position of the column
182 how much data should be read out of the stream
184 if a database access error occurs.
186 void updateBinaryStream
([in]long columnIndex
,
187 [in]com
::sun
::star
::io
::XInputStream x
,
188 [in]long length
) raises
(SQLException
);
190 /** updates a column with a stream value.
192 the position of the column
196 how much data should be read out of the stream
198 if a database access error occurs.
200 void updateCharacterStream
([in]long columnIndex
,
201 [in]com
::sun
::star
::io
::XInputStream x
,
202 [in]long length
) raises
(SQLException
);
204 /** updates a column with an object value.
206 the position of the column
210 if a database access error occurs.
212 void updateObject
([in]long columnIndex
, [in]any x
)
213 raises
(SQLException
);
215 /** updates a column with an object value.
217 the position of the column
221 defines the scale which should be used to write the numeric value
223 if a database access error occurs.
225 void updateNumericObject
([in]long columnIndex
, [in]any x
, [in]long scale
)
226 raises
(SQLException
);
232 /*===========================================================================
233 ===========================================================================*/
236 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */