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 .
20 module com
{ module sun
{ module star
{ module io
{
21 published
interface XInputStream
;
24 module com
{ module sun
{ module star
{ module sdbc
{
27 /** is used to update data which is collected in a row.
29 published
interface XRowUpdate
: com
::sun
::star
::uno
::XInterface
32 /** gives a nullable column a null value.
34 the position of the column
36 if a database access error occurs.
38 void updateNull
([in]long columnIndex
) raises
(SQLException
);
40 /** updates a column with a boolean value.
42 the position of the column
46 if a database access error occurs.
48 void updateBoolean
([in]long columnIndex
, [in]boolean x
) raises
(SQLException
);
50 /** updates a column with a byte value.
52 the position of the column
56 if a database access error occurs.
58 void updateByte
([in]long columnIndex
, [in]byte x
) raises
(SQLException
);
60 /** updates a column with a short value.
62 the position of the column
66 if a database access error occurs.
68 void updateShort
([in]long columnIndex
, [in]short x
) raises
(SQLException
);
70 /** updates a column with an long value.
72 the position of the column
76 if a database access error occurs.
78 void updateInt
([in]long columnIndex
, [in]long x
) raises
(SQLException
);
80 /** updates a column with a hyper value.
82 the position of the column
86 if a database access error occurs.
88 void updateLong
([in]long columnIndex
, [in]hyper x
) raises
(SQLException
);
90 /** updates a column with a float value.
92 the position of the column
96 if a database access error occurs.
98 void updateFloat
([in]long columnIndex
, [in]float x
) raises
(SQLException
);
100 /** updates a column with a double value.
102 the position of the column
106 if a database access error occurs.
108 void updateDouble
([in]long columnIndex
, [in]double x
) raises
(SQLException
);
110 /** updates a column with a string value.
112 the position of the column
116 if a database access error occurs.
118 void updateString
([in]long columnIndex
, [in]string x
) raises
(SQLException
);
120 /** updates a column with a byte array value.
122 the position of the column
126 if a database access error occurs.
128 void updateBytes
([in]long columnIndex
, [in]sequence
<byte> x
) raises
(SQLException
);
130 /** updates a column with a date value.
132 the position of the column
136 if a database access error occurs.
138 void updateDate
([in]long columnIndex
, [in]com
::sun
::star
::util
::Date x
)
139 raises
(SQLException
);
141 /** updates a column with a time value.
143 the position of the column
147 if a database access error occurs.
149 void updateTime
([in]long columnIndex
, [in]com
::sun
::star
::util
::Time x
)
150 raises
(SQLException
);
152 /** updates a column with a timestamp value.
154 the position of the column
158 if a database access error occurs.
160 void updateTimestamp
([in]long columnIndex
,
161 [in]com
::sun
::star
::util
::DateTime x
)
162 raises
(SQLException
);
164 /** updates a column with a stream value.
166 the position of the column
170 how much data should be read out of the stream
172 if a database access error occurs.
174 void updateBinaryStream
([in]long columnIndex
,
175 [in]com
::sun
::star
::io
::XInputStream x
,
176 [in]long length
) raises
(SQLException
);
178 /** updates a column with a stream value.
180 the position of the column
184 how much data should be read out of the stream
186 if a database access error occurs.
188 void updateCharacterStream
([in]long columnIndex
,
189 [in]com
::sun
::star
::io
::XInputStream x
,
190 [in]long length
) raises
(SQLException
);
192 /** updates a column with an object value.
194 the position of the column
198 if a database access error occurs.
200 void updateObject
([in]long columnIndex
, [in]any x
)
201 raises
(SQLException
);
203 /** updates a column with an object value.
205 the position of the column
209 defines the scale which should be used to write the numeric value
211 if a database access error occurs.
213 void updateNumericObject
([in]long columnIndex
, [in]any x
, [in]long scale
)
214 raises
(SQLException
);
220 /*===========================================================================
221 ===========================================================================*/
223 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */