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: XRowUpdate.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_XRowUpdate_idl__
31 #define __com_sun_star_sdbc_XRowUpdate_idl__
33 #ifndef __com_sun_star_uno_XInterface_idl__
34 #include
<com
/sun
/star
/uno
/XInterface.idl
>
37 #ifndef __com_sun_star_util_Date_idl__
38 #include
<com
/sun
/star
/util
/Date.idl
>
41 #ifndef __com_sun_star_util_DateTime_idl__
42 #include
<com
/sun
/star
/util
/DateTime.idl
>
45 #ifndef __com_sun_star_util_Time_idl__
46 #include
<com
/sun
/star
/util
/Time.idl
>
49 module com
{ module sun
{ module star
{ module io
{
50 published
interface XInputStream
;
53 #ifndef __com_sun_star_sdbc_SQLException_idl__
54 #include
<com
/sun
/star
/sdbc
/SQLException.idl
>
57 module com
{ module sun
{ module star
{ module sdbc
{
60 /** is used to update data which is collected in a row.
62 published
interface XRowUpdate
: com
::sun
::star
::uno
::XInterface
65 /** gives a nullable column a null value.
67 the position of the column
69 if a database access error occurs.
71 void updateNull
([in]long columnIndex
) raises
(SQLException
);
72 //-------------------------------------------------------------------------
74 /** updates a column with a boolean value.
76 the position of the column
80 if a database access error occurs.
82 void updateBoolean
([in]long columnIndex
, [in]boolean x
) raises
(SQLException
);
83 //-------------------------------------------------------------------------
85 /** updates a column with a byte value.
87 the position of the column
91 if a database access error occurs.
93 void updateByte
([in]long columnIndex
, [in]byte x
) raises
(SQLException
);
94 //-------------------------------------------------------------------------
96 /** updates a column with a short value.
98 the position of the column
102 if a database access error occurs.
104 void updateShort
([in]long columnIndex
, [in]short x
) raises
(SQLException
);
105 //-------------------------------------------------------------------------
107 /** updates a column with an long value.
109 the position of the column
113 if a database access error occurs.
115 void updateInt
([in]long columnIndex
, [in]long x
) raises
(SQLException
);
116 //-------------------------------------------------------------------------
118 /** updates a column with a hyper value.
120 the position of the column
124 if a database access error occurs.
126 void updateLong
([in]long columnIndex
, [in]hyper x
) raises
(SQLException
);
127 //-------------------------------------------------------------------------
129 /** updates a column with a float value.
131 the position of the column
135 if a database access error occurs.
137 void updateFloat
([in]long columnIndex
, [in]float x
) raises
(SQLException
);
138 //-------------------------------------------------------------------------
140 /** updates a column with a double value.
142 the position of the column
146 if a database access error occurs.
148 void updateDouble
([in]long columnIndex
, [in]double x
) raises
(SQLException
);
149 //-------------------------------------------------------------------------
151 /** updates a column with a string value.
153 the position of the column
157 if a database access error occurs.
159 void updateString
([in]long columnIndex
, [in]string x
) raises
(SQLException
);
160 //-------------------------------------------------------------------------
162 /** updates a column with a byte array value.
164 the position of the column
168 if a database access error occurs.
170 void updateBytes
([in]long columnIndex
, [in]sequence
<byte> x
) raises
(SQLException
);
171 //-------------------------------------------------------------------------
173 /** updates a column with a date value.
175 the position of the column
179 if a database access error occurs.
181 void updateDate
([in]long columnIndex
, [in]com
::sun
::star
::util
::Date x
)
182 raises
(SQLException
);
183 //-------------------------------------------------------------------------
185 /** updates a column with a time value.
187 the position of the column
191 if a database access error occurs.
193 void updateTime
([in]long columnIndex
, [in]com
::sun
::star
::util
::Time x
)
194 raises
(SQLException
);
195 //-------------------------------------------------------------------------
197 /** updates a column with a timestamp value.
199 the position of the column
203 if a database access error occurs.
205 void updateTimestamp
([in]long columnIndex
,
206 [in]com
::sun
::star
::util
::DateTime x
)
207 raises
(SQLException
);
208 //-------------------------------------------------------------------------
210 /** updates a column with a stream value.
212 the position of the column
216 how much data should be read out of the stream
218 if a database access error occurs.
220 void updateBinaryStream
([in]long columnIndex
,
221 [in]com
::sun
::star
::io
::XInputStream x
,
222 [in]long length
) raises
(SQLException
);
223 //-------------------------------------------------------------------------
225 /** updates a column with a stream value.
227 the position of the column
231 how much data should be read out of the stream
233 if a database access error occurs.
235 void updateCharacterStream
([in]long columnIndex
,
236 [in]com
::sun
::star
::io
::XInputStream x
,
237 [in]long length
) raises
(SQLException
);
238 //-------------------------------------------------------------------------
240 /** updates a column with an object value.
242 the position of the column
246 if a database access error occurs.
248 void updateObject
([in]long columnIndex
, [in]any x
)
249 raises
(SQLException
);
250 //-------------------------------------------------------------------------
252 /** updates a column with an object value.
254 the position of the column
258 defines the scale which should be used to write the numeric value
260 if a database access error occurs.
262 void updateNumericObject
([in]long columnIndex
, [in]any x
, [in]long scale
)
263 raises
(SQLException
);
266 //=============================================================================
270 /*===========================================================================
271 ===========================================================================*/