(incubating) | The Free and Open Productivity Suite
Announcing Apache OpenOffice 3.4

Developer's Guide

API

SDK

Tips 'n' Tricks

Miscellaneous

Content for OpenOffice.org version 3.3.

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

interface XStruct
Description
is used for the standard mapping for a SQL structured type.

A Struct object contains a value for each attribute of the SQL structured type that it represents. By default, an instance of Struct is valid as long as the application has a reference to it.


Methods' Summary
getSQLTypeName retrieves the SQL type name of the SQL structured type that this Struct object represents.  
getAttributes produces the ordered values of the attributes of the SQL structured type that this Struct object represents.  
Methods' Details
getSQLTypeName
string
getSQLTypeName()
raises( SQLException );

Description
retrieves the SQL type name of the SQL structured type that this Struct object represents.
Returns
the name of the SQL type.
Throws
SQLException if a database access error occurs.
getAttributes
sequence< any >
getAttributes( [in] ::com::sun::star::container::XNameAccess  typeMap )
raises( SQLException );

Description
produces the ordered values of the attributes of the SQL structured type that this Struct object represents.

This method uses the given type map for customizations of the type mappings. If there is no entry in the given type map that matches or the given type map is NULL , the structured type that this Struct object represents, the driver uses the connection type mapping.

Parameter typeMap
is a map object that contains mappings of SQL type names to services. If the typeMapis NULL , the type-map associated with the connection for customizations of the type-mappings is used.
Returns
an array containing the ordered attribute values.
Throws
SQLException if a database access error occurs.
Top of Page

Apache Feather

Copyright & License | Privacy | Contact Us

Apache and the Apache feather logos are trademarks of The Apache Software Foundation. OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.

Apache OpenOffice is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.