1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org. If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
26 ************************************************************************/
27 #ifndef __com_sun_star_sdbc_XRowUpdate_idl__
28 #define __com_sun_star_sdbc_XRowUpdate_idl__
30 #ifndef __com_sun_star_uno_XInterface_idl__
31 #include
<com
/sun
/star
/uno
/XInterface.idl
>
34 #ifndef __com_sun_star_util_Date_idl__
35 #include
<com
/sun
/star
/util
/Date.idl
>
38 #ifndef __com_sun_star_util_DateTime_idl__
39 #include
<com
/sun
/star
/util
/DateTime.idl
>
42 #ifndef __com_sun_star_util_Time_idl__
43 #include
<com
/sun
/star
/util
/Time.idl
>
46 module com
{ module sun
{ module star
{ module io
{
47 published
interface XInputStream
;
50 #ifndef __com_sun_star_sdbc_SQLException_idl__
51 #include
<com
/sun
/star
/sdbc
/SQLException.idl
>
54 module com
{ module sun
{ module star
{ module sdbc
{
57 /** is used to update data which is collected in a row.
59 published
interface XRowUpdate
: com
::sun
::star
::uno
::XInterface
62 /** gives a nullable column a null value.
64 the position of the column
66 if a database access error occurs.
68 void updateNull
([in]long columnIndex
) raises
(SQLException
);
69 //-------------------------------------------------------------------------
71 /** updates a column with a boolean value.
73 the position of the column
77 if a database access error occurs.
79 void updateBoolean
([in]long columnIndex
, [in]boolean x
) raises
(SQLException
);
80 //-------------------------------------------------------------------------
82 /** updates a column with a byte value.
84 the position of the column
88 if a database access error occurs.
90 void updateByte
([in]long columnIndex
, [in]byte x
) raises
(SQLException
);
91 //-------------------------------------------------------------------------
93 /** updates a column with a short value.
95 the position of the column
99 if a database access error occurs.
101 void updateShort
([in]long columnIndex
, [in]short x
) raises
(SQLException
);
102 //-------------------------------------------------------------------------
104 /** updates a column with an long value.
106 the position of the column
110 if a database access error occurs.
112 void updateInt
([in]long columnIndex
, [in]long x
) raises
(SQLException
);
113 //-------------------------------------------------------------------------
115 /** updates a column with a hyper value.
117 the position of the column
121 if a database access error occurs.
123 void updateLong
([in]long columnIndex
, [in]hyper x
) raises
(SQLException
);
124 //-------------------------------------------------------------------------
126 /** updates a column with a float value.
128 the position of the column
132 if a database access error occurs.
134 void updateFloat
([in]long columnIndex
, [in]float x
) raises
(SQLException
);
135 //-------------------------------------------------------------------------
137 /** updates a column with a double value.
139 the position of the column
143 if a database access error occurs.
145 void updateDouble
([in]long columnIndex
, [in]double x
) raises
(SQLException
);
146 //-------------------------------------------------------------------------
148 /** updates a column with a string value.
150 the position of the column
154 if a database access error occurs.
156 void updateString
([in]long columnIndex
, [in]string x
) raises
(SQLException
);
157 //-------------------------------------------------------------------------
159 /** updates a column with a byte array value.
161 the position of the column
165 if a database access error occurs.
167 void updateBytes
([in]long columnIndex
, [in]sequence
<byte> x
) raises
(SQLException
);
168 //-------------------------------------------------------------------------
170 /** updates a column with a date value.
172 the position of the column
176 if a database access error occurs.
178 void updateDate
([in]long columnIndex
, [in]com
::sun
::star
::util
::Date x
)
179 raises
(SQLException
);
180 //-------------------------------------------------------------------------
182 /** updates a column with a time value.
184 the position of the column
188 if a database access error occurs.
190 void updateTime
([in]long columnIndex
, [in]com
::sun
::star
::util
::Time x
)
191 raises
(SQLException
);
192 //-------------------------------------------------------------------------
194 /** updates a column with a timestamp value.
196 the position of the column
200 if a database access error occurs.
202 void updateTimestamp
([in]long columnIndex
,
203 [in]com
::sun
::star
::util
::DateTime x
)
204 raises
(SQLException
);
205 //-------------------------------------------------------------------------
207 /** updates a column with a stream value.
209 the position of the column
213 how much data should be read out of the stream
215 if a database access error occurs.
217 void updateBinaryStream
([in]long columnIndex
,
218 [in]com
::sun
::star
::io
::XInputStream x
,
219 [in]long length
) raises
(SQLException
);
220 //-------------------------------------------------------------------------
222 /** updates a column with a stream value.
224 the position of the column
228 how much data should be read out of the stream
230 if a database access error occurs.
232 void updateCharacterStream
([in]long columnIndex
,
233 [in]com
::sun
::star
::io
::XInputStream x
,
234 [in]long length
) raises
(SQLException
);
235 //-------------------------------------------------------------------------
237 /** updates a column with an object value.
239 the position of the column
243 if a database access error occurs.
245 void updateObject
([in]long columnIndex
, [in]any x
)
246 raises
(SQLException
);
247 //-------------------------------------------------------------------------
249 /** updates a column with an object value.
251 the position of the column
255 defines the scale which should be used to write the numeric value
257 if a database access error occurs.
259 void updateNumericObject
([in]long columnIndex
, [in]any x
, [in]long scale
)
260 raises
(SQLException
);
263 //=============================================================================
267 /*===========================================================================
268 ===========================================================================*/