interface XAlterTable in module com::sun::star::sdbcx::

(Global Index)

Syntax

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

Description

is used for creating and appending new objects to a specific container.

Method Summary

alterColumnByName is intended to alter an existing column identified by its name. This operation must be atomar. Atomar means that the operation must be done inone step. Note: Atomar is nower days the wrong word, because we know that there exists smaller elements than atoms.

alterColumnByIndex is intended to alter an existing column identified by its position. This operation must be atomar.

Known Services Which Export this Interface

com::sun::star::sdbcx::Table

Method Details



alterColumnByName

Syntax

void alterColumnByName (
string colName,
com::sun::star::beans::XPropertySet descriptor )
raises ( com::sun::star::sdbc::SQLException , com::sun::star::container::NoSuchElementException );

Description

is intended to alter an existing column identified by its name. This operation must be atomar. Atomar means that the operation must be done inone step. Note: Atomar is nower days the wrong word, because we know that there exists smaller elements than atoms.

Parameter colName

the column name which to alter

Parameter descriptor

the new descriptor for the new column

Throws

com::sun::star::sdbc::SQLException if a database access error occurs.

alterColumnByIndex

Syntax

void alterColumnByIndex (
long index,
com::sun::star::beans::XPropertySet descriptor )
raises ( com::sun::star::sdbc::SQLException , com::sun::star::lang::IndexOutOfBoundsException );

Description

is intended to alter an existing column identified by its position. This operation must be atomar.

Parameter index

the position of the column to alter

Parameter descriptor

the new descriptor for the new column

Throws

com::sun::star::sdbc::SQLException if a database access error occurs.
Top of Page