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

interface XColumnLocate

Methods' Summary
findColumn maps the given ResultSet column name to its ResultSet column index.  
Methods' Details
findColumn
long
findColumn( [in] string  columnName )
raises( SQLException );

Description
maps the given ResultSet column name to its ResultSet column index.

The specification before LibreOffice 4.2 left unspecified what should happen for an invalid column name. As a result some drivers written against the older specification may return a special invalid value, such as a negative number, zero, or a number greater than the number of columns.

Parameter columnName
the name of the column
Returns
the position of the column
Throws
SQLException if the column named columnName does not exist, or a database access error occurs.
Top of Page