interface XRowUpdate in module com::sun::star::sdbc::

(Global Index)

Syntax

interface XRowUpdate : com::sun::star::uno::XInterface ;

Description

is used to update data which is collected in a row.

Method Summary

updateNull gives a nullable column a null value.

updateBoolean updates a column with a boolean value.

updateByte updates a column with a byte value.

updateShort updates a column with a short value.

updateInt updates a column with an long value.

updateLong updates a column with a hyper value.

updateFloat updates a column with a float value.

updateDouble updates a column with a double value.

updateString updates a column with a string value.

updateBytes updates a column with a byte array value.

updateDate updates a column with a date value.

updateTime updates a column with a time value.

updateTimestamp updates a column with a timestamp value.

updateBinaryStream updates a column with a stream value.

updateCharacterStream updates a column with a stream value.

updateObject updates a column with an object value.

updateNumericObject updates a column with an object value.

Known Services Which Export this Interface

com::sun::star::sdbc::ResultSet

Method Details



updateNull

Syntax

void updateNull (
long columnIndex )
raises ( com::sun::star::sdbc::SQLException );

Description

gives a nullable column a null value.

Parameter columnIndex

the position of the column

Throws

SQLException if a database access error occurs.

updateBoolean

Syntax

void updateBoolean (
long columnIndex,
boolean x )
raises ( com::sun::star::sdbc::SQLException );

Description

updates a column with a boolean value.

Parameter columnIndex

the position of the column

Parameter x

the new column value

Throws

SQLException if a database access error occurs.

updateByte

Syntax

void updateByte (
long columnIndex,
byte x )
raises ( com::sun::star::sdbc::SQLException );

Description

updates a column with a byte value.

Parameter columnIndex

the position of the column

Parameter x

the new column value

Throws

SQLException if a database access error occurs.

updateShort

Syntax

void updateShort (
long columnIndex,
short x )
raises ( com::sun::star::sdbc::SQLException );

Description

updates a column with a short value.

Parameter columnIndex

the position of the column

Parameter x

the new column value

Throws

SQLException if a database access error occurs.

updateInt

Syntax

void updateInt (
long columnIndex,
long x )
raises ( com::sun::star::sdbc::SQLException );

Description

updates a column with an long value.

Parameter columnIndex

the position of the column

Parameter x

the new column value

Throws

SQLException if a database access error occurs.

updateLong

Syntax

void updateLong (
long columnIndex,
hyper x )
raises ( com::sun::star::sdbc::SQLException );

Description

updates a column with a hyper value.

Parameter columnIndex

the position of the column

Parameter x

the new column value

Throws

SQLException if a database access error occurs.

updateFloat

Syntax

void updateFloat (
long columnIndex,
float x )
raises ( com::sun::star::sdbc::SQLException );

Description

updates a column with a float value.

Parameter columnIndex

the position of the column

Parameter x

the new column value

Throws

SQLException if a database access error occurs.

updateDouble

Syntax

void updateDouble (
long columnIndex,
double x )
raises ( com::sun::star::sdbc::SQLException );

Description

updates a column with a double value.

Parameter columnIndex

the position of the column

Parameter x

the new column value

Throws

SQLException if a database access error occurs.

updateString

Syntax

void updateString (
long columnIndex,
string x )
raises ( com::sun::star::sdbc::SQLException );

Description

updates a column with a string value.

Parameter columnIndex

the position of the column

Parameter x

the new column value

Throws

SQLException if a database access error occurs.

updateBytes

Syntax

void updateBytes (
long columnIndex,
sequence< byte > x )
raises ( com::sun::star::sdbc::SQLException );

Description

updates a column with a byte array value.

Parameter columnIndex

the position of the column

Parameter x

the new column value

Throws

SQLException if a database access error occurs.

updateDate

Syntax

void updateDate (
long columnIndex,
com::sun::star::util::Date x )
raises ( com::sun::star::sdbc::SQLException );

Description

updates a column with a date value.

Parameter columnIndex

the position of the column

Parameter x

the new column value

Throws

SQLException if a database access error occurs.

updateTime

Syntax

void updateTime (
long columnIndex,
com::sun::star::util::Time x )
raises ( com::sun::star::sdbc::SQLException );

Description

updates a column with a time value.

Parameter columnIndex

the position of the column

Parameter x

the new column value

Throws

SQLException if a database access error occurs.

updateTimestamp

Syntax

void updateTimestamp (
long columnIndex,
com::sun::star::util::DateTime x )
raises ( com::sun::star::sdbc::SQLException );

Description

updates a column with a timestamp value.

Parameter columnIndex

the position of the column

Parameter x

the new column value

Throws

SQLException if a database access error occurs.

updateBinaryStream

Syntax

void updateBinaryStream (
long columnIndex,
com::sun::star::io::XInputStream x,
long length )
raises ( com::sun::star::sdbc::SQLException );

Description

updates a column with a stream value.

Parameter columnIndex

the position of the column

Parameter x

the new column value

Parameter length

how much data should be read out of the stream

Throws

SQLException if a database access error occurs.

updateCharacterStream

Syntax

void updateCharacterStream (
long columnIndex,
com::sun::star::io::XInputStream x,
long length )
raises ( com::sun::star::sdbc::SQLException );

Description

updates a column with a stream value.

Parameter columnIndex

the position of the column

Parameter x

the new column value

Parameter length

how much data should be read out of the stream

Throws

SQLException if a database access error occurs.

updateObject

Syntax

void updateObject (
long columnIndex,
any x )
raises ( com::sun::star::sdbc::SQLException );

Description

updates a column with an object value.

Parameter columnIndex

the position of the column

Parameter x

the new column value

Throws

SQLException if a database access error occurs.

updateNumericObject

Syntax

void updateNumericObject (
long columnIndex,
any x,
long scale )
raises ( com::sun::star::sdbc::SQLException );

Description

updates a column with an object value.

Parameter columnIndex

the position of the column

Parameter x

the new column value

Parameter scale

defines the scale which should be used to write the numeric value

Throws

SQLException if a database access error occurs.
Top of Page