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