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 sdb
{
27 /** is used to update data which is collected in a row.
29 published
interface XColumnUpdate
: com
::sun
::star
::uno
::XInterface
32 /** gives a nullable column a null value.
33 @throws com::sun::star::sdbc::SQLException
34 if a database access error occurs.
36 void updateNull
() raises
(com
::sun
::star
::sdbc
::SQLException
);
38 /** updates a column with a boolean value.
41 @throws com::sun::star::sdbc::SQLException
42 if a database access error occurs.
44 void updateBoolean
([in]boolean x
) raises
(com
::sun
::star
::sdbc
::SQLException
);
46 /** updates a column with a byte value.
49 @throws com::sun::star::sdbc::SQLException
50 if a database access error occurs.
52 void updateByte
([in]byte x
) raises
(com
::sun
::star
::sdbc
::SQLException
);
54 /** updates a column with a short value.
57 @throws com::sun::star::sdbc::SQLException
58 if a database access error occurs.
60 void updateShort
([in]short x
) raises
(com
::sun
::star
::sdbc
::SQLException
);
62 /** updates a column with a long value.
65 @throws com::sun::star::sdbc::SQLException
66 if a database access error occurs.
68 void updateInt
([in]long x
) raises
(com
::sun
::star
::sdbc
::SQLException
);
70 /** updates a column with a hyper value.
73 @throws com::sun::star::sdbc::SQLException
74 if a database access error occurs.
76 void updateLong
([in]hyper x
) raises
(com
::sun
::star
::sdbc
::SQLException
);
78 /** updates a column with a float value.
81 @throws com::sun::star::sdbc::SQLException
82 if a database access error occurs.
84 void updateFloat
([in]float x
) raises
(com
::sun
::star
::sdbc
::SQLException
);
86 /** updates a column with a double value.
89 @throws com::sun::star::sdbc::SQLException
90 if a database access error occurs.
92 void updateDouble
([in]double x
) raises
(com
::sun
::star
::sdbc
::SQLException
);
94 /** updates a column with a string value.
97 @throws com::sun::star::sdbc::SQLException
98 if a database access error occurs.
100 void updateString
([in]string x
) raises
(com
::sun
::star
::sdbc
::SQLException
);
102 /** updates a column with a byte array value.
105 @throws com::sun::star::sdbc::SQLException
106 if a database access error occurs.
108 void updateBytes
([in]sequence
<byte> x
) raises
(com
::sun
::star
::sdbc
::SQLException
);
110 /** updates a column with a Date value.
113 @throws com::sun::star::sdbc::SQLException
114 if a database access error occurs.
116 void updateDate
([in]com
::sun
::star
::util
::Date x
)
117 raises
(com
::sun
::star
::sdbc
::SQLException
);
119 /** updates a column with a Time value.
122 @throws com::sun::star::sdbc::SQLException
123 if a database access error occurs.
125 void updateTime
([in]com
::sun
::star
::util
::Time x
)
126 raises
(com
::sun
::star
::sdbc
::SQLException
);
128 /** updates a column with a Timestamp value.
131 @throws com::sun::star::sdbc::SQLException
132 if a database access error occurs.
134 void updateTimestamp
([in]com
::sun
::star
::util
::DateTime x
)
135 raises
(com
::sun
::star
::sdbc
::SQLException
);
137 /** updates a column with a stream value.
141 the length of the stream
142 @throws com::sun::star::sdbc::SQLException
143 if a database access error occurs.
145 void updateBinaryStream
([in]com
::sun
::star
::io
::XInputStream x
,
146 [in]long length
) raises
(com
::sun
::star
::sdbc
::SQLException
);
148 /** updates a column with a stream value.
152 the length of the stream
153 @throws com::sun::star::sdbc::SQLException
154 if a database access error occurs.
156 void updateCharacterStream
([in]com
::sun
::star
::io
::XInputStream x
,
157 [in]long length
) raises
(com
::sun
::star
::sdbc
::SQLException
);
159 /** updates a column with an Object value.
162 @throws com::sun::star::sdbc::SQLException
163 if a database access error occurs.
165 void updateObject
([in]any x
)
166 raises
(com
::sun
::star
::sdbc
::SQLException
);
168 /** updates a column with an Object value.
173 @throws com::sun::star::sdbc::SQLException
174 if a database access error occurs.
176 void updateNumericObject
([in]any x
, [in]long scale
)
177 raises
(com
::sun
::star
::sdbc
::SQLException
);
183 /*===========================================================================
184 ===========================================================================*/
186 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */