1*d1766043SAndrew Rist/************************************************************** 2cdf0e10cSrcweir * 3*d1766043SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*d1766043SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*d1766043SAndrew Rist * distributed with this work for additional information 6*d1766043SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*d1766043SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*d1766043SAndrew Rist * "License"); you may not use this file except in compliance 9*d1766043SAndrew Rist * with the License. You may obtain a copy of the License at 10*d1766043SAndrew Rist * 11*d1766043SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*d1766043SAndrew Rist * 13*d1766043SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*d1766043SAndrew Rist * software distributed under the License is distributed on an 15*d1766043SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*d1766043SAndrew Rist * KIND, either express or implied. See the License for the 17*d1766043SAndrew Rist * specific language governing permissions and limitations 18*d1766043SAndrew Rist * under the License. 19*d1766043SAndrew Rist * 20*d1766043SAndrew Rist *************************************************************/ 21*d1766043SAndrew Rist 22*d1766043SAndrew Rist 23cdf0e10cSrcweir#ifndef __com_sun_star_sdb_XColumnUpdate_idl__ 24cdf0e10cSrcweir#define __com_sun_star_sdb_XColumnUpdate_idl__ 25cdf0e10cSrcweir 26cdf0e10cSrcweir#ifndef __com_sun_star_uno_XInterface_idl__ 27cdf0e10cSrcweir#include <com/sun/star/uno/XInterface.idl> 28cdf0e10cSrcweir#endif 29cdf0e10cSrcweir 30cdf0e10cSrcweir#ifndef __com_sun_star_sdbc_SQLException_idl__ 31cdf0e10cSrcweir#include <com/sun/star/sdbc/SQLException.idl> 32cdf0e10cSrcweir#endif 33cdf0e10cSrcweir 34cdf0e10cSrcweir#ifndef __com_sun_star_util_Date_idl__ 35cdf0e10cSrcweir#include <com/sun/star/util/Date.idl> 36cdf0e10cSrcweir#endif 37cdf0e10cSrcweir 38cdf0e10cSrcweir#ifndef __com_sun_star_util_DateTime_idl__ 39cdf0e10cSrcweir#include <com/sun/star/util/DateTime.idl> 40cdf0e10cSrcweir#endif 41cdf0e10cSrcweir 42cdf0e10cSrcweir#ifndef __com_sun_star_util_Time_idl__ 43cdf0e10cSrcweir#include <com/sun/star/util/Time.idl> 44cdf0e10cSrcweir#endif 45cdf0e10cSrcweir 46cdf0e10cSrcweir module com { module sun { module star { module io { 47cdf0e10cSrcweir published interface XInputStream; 48cdf0e10cSrcweir};};};}; 49cdf0e10cSrcweir 50cdf0e10cSrcweir module com { module sun { module star { module sdb { 51cdf0e10cSrcweir 52cdf0e10cSrcweir 53cdf0e10cSrcweir/** is used to update data which is collected in a row. 54cdf0e10cSrcweir */ 55cdf0e10cSrcweirpublished interface XColumnUpdate: com::sun::star::uno::XInterface 56cdf0e10cSrcweir{ 57cdf0e10cSrcweir 58cdf0e10cSrcweir /** gives a nullable column a null value. 59cdf0e10cSrcweir @throws com::sun::star::sdbc::SQLException 60cdf0e10cSrcweir if a database access error occurs. 61cdf0e10cSrcweir */ 62cdf0e10cSrcweir void updateNull() raises (com::sun::star::sdbc::SQLException); 63cdf0e10cSrcweir //------------------------------------------------------------------------- 64cdf0e10cSrcweir 65cdf0e10cSrcweir /** updates a column with a boolean value. 66cdf0e10cSrcweir @param x 67cdf0e10cSrcweir the new column value 68cdf0e10cSrcweir @throws com::sun::star::sdbc::SQLException 69cdf0e10cSrcweir if a database access error occurs. 70cdf0e10cSrcweir */ 71cdf0e10cSrcweir void updateBoolean([in]boolean x) raises (com::sun::star::sdbc::SQLException); 72cdf0e10cSrcweir //------------------------------------------------------------------------- 73cdf0e10cSrcweir 74cdf0e10cSrcweir /** updates a column with a byte value. 75cdf0e10cSrcweir @param x 76cdf0e10cSrcweir the new column value 77cdf0e10cSrcweir @throws com::sun::star::sdbc::SQLException 78cdf0e10cSrcweir if a database access error occurs. 79cdf0e10cSrcweir */ 80cdf0e10cSrcweir void updateByte([in]byte x) raises (com::sun::star::sdbc::SQLException); 81cdf0e10cSrcweir //------------------------------------------------------------------------- 82cdf0e10cSrcweir 83cdf0e10cSrcweir /** updates a column with a short value. 84cdf0e10cSrcweir @param x 85cdf0e10cSrcweir the new column value 86cdf0e10cSrcweir @throws com::sun::star::sdbc::SQLException 87cdf0e10cSrcweir if a database access error occurs. 88cdf0e10cSrcweir */ 89cdf0e10cSrcweir void updateShort([in]short x) raises (com::sun::star::sdbc::SQLException); 90cdf0e10cSrcweir //------------------------------------------------------------------------- 91cdf0e10cSrcweir 92cdf0e10cSrcweir /** updates a column with a long value. 93cdf0e10cSrcweir @param x 94cdf0e10cSrcweir the new column value 95cdf0e10cSrcweir @throws com::sun::star::sdbc::SQLException 96cdf0e10cSrcweir if a database access error occurs. 97cdf0e10cSrcweir */ 98cdf0e10cSrcweir void updateInt([in]long x) raises (com::sun::star::sdbc::SQLException); 99cdf0e10cSrcweir //------------------------------------------------------------------------- 100cdf0e10cSrcweir 101cdf0e10cSrcweir /** updates a column with a hyper value. 102cdf0e10cSrcweir @param x 103cdf0e10cSrcweir the new column value 104cdf0e10cSrcweir @throws com::sun::star::sdbc::SQLException 105cdf0e10cSrcweir if a database access error occurs. 106cdf0e10cSrcweir */ 107cdf0e10cSrcweir void updateLong([in]hyper x) raises (com::sun::star::sdbc::SQLException); 108cdf0e10cSrcweir //------------------------------------------------------------------------- 109cdf0e10cSrcweir 110cdf0e10cSrcweir /** updates a column with a float value. 111cdf0e10cSrcweir @param x 112cdf0e10cSrcweir the new column value 113cdf0e10cSrcweir @throws com::sun::star::sdbc::SQLException 114cdf0e10cSrcweir if a database access error occurs. 115cdf0e10cSrcweir */ 116cdf0e10cSrcweir void updateFloat([in]float x) raises (com::sun::star::sdbc::SQLException); 117cdf0e10cSrcweir //------------------------------------------------------------------------- 118cdf0e10cSrcweir 119cdf0e10cSrcweir /** updates a column with a double value. 120cdf0e10cSrcweir @param x 121cdf0e10cSrcweir the new column value 122cdf0e10cSrcweir @throws com::sun::star::sdbc::SQLException 123cdf0e10cSrcweir if a database access error occurs. 124cdf0e10cSrcweir */ 125cdf0e10cSrcweir void updateDouble([in]double x) raises (com::sun::star::sdbc::SQLException); 126cdf0e10cSrcweir //------------------------------------------------------------------------- 127cdf0e10cSrcweir 128cdf0e10cSrcweir /** updates a column with a string value. 129cdf0e10cSrcweir @param x 130cdf0e10cSrcweir the new column value 131cdf0e10cSrcweir @throws com::sun::star::sdbc::SQLException 132cdf0e10cSrcweir if a database access error occurs. 133cdf0e10cSrcweir */ 134cdf0e10cSrcweir void updateString([in]string x) raises (com::sun::star::sdbc::SQLException); 135cdf0e10cSrcweir //------------------------------------------------------------------------- 136cdf0e10cSrcweir 137cdf0e10cSrcweir /** updates a column with a byte array value. 138cdf0e10cSrcweir @param x 139cdf0e10cSrcweir the new column value 140cdf0e10cSrcweir @throws com::sun::star::sdbc::SQLException 141cdf0e10cSrcweir if a database access error occurs. 142cdf0e10cSrcweir */ 143cdf0e10cSrcweir void updateBytes([in]sequence<byte> x) raises (com::sun::star::sdbc::SQLException); 144cdf0e10cSrcweir //------------------------------------------------------------------------- 145cdf0e10cSrcweir 146cdf0e10cSrcweir /** updates a column with a Date value. 147cdf0e10cSrcweir @param x 148cdf0e10cSrcweir the new column value 149cdf0e10cSrcweir @throws com::sun::star::sdbc::SQLException 150cdf0e10cSrcweir if a database access error occurs. 151cdf0e10cSrcweir */ 152cdf0e10cSrcweir void updateDate([in]com::sun::star::util::Date x) 153cdf0e10cSrcweir raises (com::sun::star::sdbc::SQLException); 154cdf0e10cSrcweir //------------------------------------------------------------------------- 155cdf0e10cSrcweir 156cdf0e10cSrcweir /** updates a column with a Time value. 157cdf0e10cSrcweir @param x 158cdf0e10cSrcweir the new column value 159cdf0e10cSrcweir @throws com::sun::star::sdbc::SQLException 160cdf0e10cSrcweir if a database access error occurs. 161cdf0e10cSrcweir */ 162cdf0e10cSrcweir void updateTime([in]com::sun::star::util::Time x) 163cdf0e10cSrcweir raises (com::sun::star::sdbc::SQLException); 164cdf0e10cSrcweir //------------------------------------------------------------------------- 165cdf0e10cSrcweir 166cdf0e10cSrcweir /** updates a column with a Timestamp value. 167cdf0e10cSrcweir @param x 168cdf0e10cSrcweir the new column value 169cdf0e10cSrcweir @throws com::sun::star::sdbc::SQLException 170cdf0e10cSrcweir if a database access error occurs. 171cdf0e10cSrcweir */ 172cdf0e10cSrcweir void updateTimestamp([in]com::sun::star::util::DateTime x) 173cdf0e10cSrcweir raises (com::sun::star::sdbc::SQLException); 174cdf0e10cSrcweir //------------------------------------------------------------------------- 175cdf0e10cSrcweir 176cdf0e10cSrcweir /** updates a column with a stream value. 177cdf0e10cSrcweir @param x 178cdf0e10cSrcweir the new column value 179cdf0e10cSrcweir @throws com::sun::star::sdbc::SQLException 180cdf0e10cSrcweir if a database access error occurs. 181cdf0e10cSrcweir */ 182cdf0e10cSrcweir void updateBinaryStream([in]com::sun::star::io::XInputStream x, 183cdf0e10cSrcweir [in]long length) raises (com::sun::star::sdbc::SQLException); 184cdf0e10cSrcweir //------------------------------------------------------------------------- 185cdf0e10cSrcweir 186cdf0e10cSrcweir /** updates a column with a stream value. 187cdf0e10cSrcweir @param x 188cdf0e10cSrcweir the new column value 189cdf0e10cSrcweir @param length 190cdf0e10cSrcweir the length of the stream 191cdf0e10cSrcweir @throws com::sun::star::sdbc::SQLException 192cdf0e10cSrcweir if a database access error occurs. 193cdf0e10cSrcweir */ 194cdf0e10cSrcweir void updateCharacterStream([in]com::sun::star::io::XInputStream x, 195cdf0e10cSrcweir [in]long length) raises (com::sun::star::sdbc::SQLException); 196cdf0e10cSrcweir //------------------------------------------------------------------------- 197cdf0e10cSrcweir 198cdf0e10cSrcweir /** updates a column with an Object value. 199cdf0e10cSrcweir @param x 200cdf0e10cSrcweir the new column value 201cdf0e10cSrcweir @throws com::sun::star::sdbc::SQLException 202cdf0e10cSrcweir if a database access error occurs. 203cdf0e10cSrcweir */ 204cdf0e10cSrcweir void updateObject([in]any x) 205cdf0e10cSrcweir raises (com::sun::star::sdbc::SQLException); 206cdf0e10cSrcweir //------------------------------------------------------------------------- 207cdf0e10cSrcweir 208cdf0e10cSrcweir /** updates a column with an Object value. 209cdf0e10cSrcweir @param x 210cdf0e10cSrcweir the new column value 211cdf0e10cSrcweir @param scale 212cdf0e10cSrcweir the scale 213cdf0e10cSrcweir @throws com::sun::star::sdbc::SQLException 214cdf0e10cSrcweir if a database access error occurs. 215cdf0e10cSrcweir */ 216cdf0e10cSrcweir void updateNumericObject([in]any x, [in]long scale) 217cdf0e10cSrcweir raises (com::sun::star::sdbc::SQLException); 218cdf0e10cSrcweir}; 219cdf0e10cSrcweir 220cdf0e10cSrcweir//============================================================================= 221cdf0e10cSrcweir 222cdf0e10cSrcweir}; }; }; }; 223cdf0e10cSrcweir 224cdf0e10cSrcweir/*=========================================================================== 225cdf0e10cSrcweir===========================================================================*/ 226cdf0e10cSrcweir#endif 227