1/************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 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. 14 * 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). 20 * 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. 25 * 26 ************************************************************************/ 27#ifndef __com_sun_star_sdb_XColumnUpdate_idl__ 28#define __com_sun_star_sdb_XColumnUpdate_idl__ 29 30#ifndef __com_sun_star_uno_XInterface_idl__ 31#include <com/sun/star/uno/XInterface.idl> 32#endif 33 34#ifndef __com_sun_star_sdbc_SQLException_idl__ 35#include <com/sun/star/sdbc/SQLException.idl> 36#endif 37 38#ifndef __com_sun_star_util_Date_idl__ 39#include <com/sun/star/util/Date.idl> 40#endif 41 42#ifndef __com_sun_star_util_DateTime_idl__ 43#include <com/sun/star/util/DateTime.idl> 44#endif 45 46#ifndef __com_sun_star_util_Time_idl__ 47#include <com/sun/star/util/Time.idl> 48#endif 49 50 module com { module sun { module star { module io { 51 published interface XInputStream; 52};};};}; 53 54 module com { module sun { module star { module sdb { 55 56 57/** is used to update data which is collected in a row. 58 */ 59published interface XColumnUpdate: com::sun::star::uno::XInterface 60{ 61 62 /** gives a nullable column a null value. 63 @throws com::sun::star::sdbc::SQLException 64 if a database access error occurs. 65 */ 66 void updateNull() raises (com::sun::star::sdbc::SQLException); 67 //------------------------------------------------------------------------- 68 69 /** updates a column with a boolean value. 70 @param x 71 the new column value 72 @throws com::sun::star::sdbc::SQLException 73 if a database access error occurs. 74 */ 75 void updateBoolean([in]boolean x) raises (com::sun::star::sdbc::SQLException); 76 //------------------------------------------------------------------------- 77 78 /** updates a column with a byte value. 79 @param x 80 the new column value 81 @throws com::sun::star::sdbc::SQLException 82 if a database access error occurs. 83 */ 84 void updateByte([in]byte x) raises (com::sun::star::sdbc::SQLException); 85 //------------------------------------------------------------------------- 86 87 /** updates a column with a short value. 88 @param x 89 the new column value 90 @throws com::sun::star::sdbc::SQLException 91 if a database access error occurs. 92 */ 93 void updateShort([in]short x) raises (com::sun::star::sdbc::SQLException); 94 //------------------------------------------------------------------------- 95 96 /** updates a column with a long value. 97 @param x 98 the new column value 99 @throws com::sun::star::sdbc::SQLException 100 if a database access error occurs. 101 */ 102 void updateInt([in]long x) raises (com::sun::star::sdbc::SQLException); 103 //------------------------------------------------------------------------- 104 105 /** updates a column with a hyper value. 106 @param x 107 the new column value 108 @throws com::sun::star::sdbc::SQLException 109 if a database access error occurs. 110 */ 111 void updateLong([in]hyper x) raises (com::sun::star::sdbc::SQLException); 112 //------------------------------------------------------------------------- 113 114 /** updates a column with a float value. 115 @param x 116 the new column value 117 @throws com::sun::star::sdbc::SQLException 118 if a database access error occurs. 119 */ 120 void updateFloat([in]float x) raises (com::sun::star::sdbc::SQLException); 121 //------------------------------------------------------------------------- 122 123 /** updates a column with a double value. 124 @param x 125 the new column value 126 @throws com::sun::star::sdbc::SQLException 127 if a database access error occurs. 128 */ 129 void updateDouble([in]double x) raises (com::sun::star::sdbc::SQLException); 130 //------------------------------------------------------------------------- 131 132 /** updates a column with a string value. 133 @param x 134 the new column value 135 @throws com::sun::star::sdbc::SQLException 136 if a database access error occurs. 137 */ 138 void updateString([in]string x) raises (com::sun::star::sdbc::SQLException); 139 //------------------------------------------------------------------------- 140 141 /** updates a column with a byte array value. 142 @param x 143 the new column value 144 @throws com::sun::star::sdbc::SQLException 145 if a database access error occurs. 146 */ 147 void updateBytes([in]sequence<byte> x) raises (com::sun::star::sdbc::SQLException); 148 //------------------------------------------------------------------------- 149 150 /** updates a column with a Date value. 151 @param x 152 the new column value 153 @throws com::sun::star::sdbc::SQLException 154 if a database access error occurs. 155 */ 156 void updateDate([in]com::sun::star::util::Date x) 157 raises (com::sun::star::sdbc::SQLException); 158 //------------------------------------------------------------------------- 159 160 /** updates a column with a Time value. 161 @param x 162 the new column value 163 @throws com::sun::star::sdbc::SQLException 164 if a database access error occurs. 165 */ 166 void updateTime([in]com::sun::star::util::Time x) 167 raises (com::sun::star::sdbc::SQLException); 168 //------------------------------------------------------------------------- 169 170 /** updates a column with a Timestamp value. 171 @param x 172 the new column value 173 @throws com::sun::star::sdbc::SQLException 174 if a database access error occurs. 175 */ 176 void updateTimestamp([in]com::sun::star::util::DateTime x) 177 raises (com::sun::star::sdbc::SQLException); 178 //------------------------------------------------------------------------- 179 180 /** updates a column with a stream value. 181 @param x 182 the new column value 183 @throws com::sun::star::sdbc::SQLException 184 if a database access error occurs. 185 */ 186 void updateBinaryStream([in]com::sun::star::io::XInputStream x, 187 [in]long length) raises (com::sun::star::sdbc::SQLException); 188 //------------------------------------------------------------------------- 189 190 /** updates a column with a stream value. 191 @param x 192 the new column value 193 @param length 194 the length of the stream 195 @throws com::sun::star::sdbc::SQLException 196 if a database access error occurs. 197 */ 198 void updateCharacterStream([in]com::sun::star::io::XInputStream x, 199 [in]long length) raises (com::sun::star::sdbc::SQLException); 200 //------------------------------------------------------------------------- 201 202 /** updates a column with an Object value. 203 @param x 204 the new column value 205 @throws com::sun::star::sdbc::SQLException 206 if a database access error occurs. 207 */ 208 void updateObject([in]any x) 209 raises (com::sun::star::sdbc::SQLException); 210 //------------------------------------------------------------------------- 211 212 /** updates a column with an Object value. 213 @param x 214 the new column value 215 @param scale 216 the scale 217 @throws com::sun::star::sdbc::SQLException 218 if a database access error occurs. 219 */ 220 void updateNumericObject([in]any x, [in]long scale) 221 raises (com::sun::star::sdbc::SQLException); 222}; 223 224//============================================================================= 225 226}; }; }; }; 227 228/*=========================================================================== 229===========================================================================*/ 230#endif 231