represents a service for analyzing a single select statement. More...
import "SingleSelectQueryAnalyzer.idl";
 
  
| Exported Interfaces | |
| interface | XSingleSelectQueryAnalyzer | 
| interface | com::sun::star::sdbcx::XTablesSupplier | 
| access to the selected tables. | |
| interface | com::sun::star::sdbcx::XColumnsSupplier | 
| access the selected columns. | |
| interface | com::sun::star::sdb::XParametersSupplier | 
| access to the parameters which are used in the where clause. | |
| Additional Inherited Members | |
|  Public Member Functions inherited from XSingleSelectQueryAnalyzer | |
| string | getQuery () | 
| returns the query. | |
| void | setQuery ([in] string command) raises (com::sun::star::sdbc::SQLException) | 
| sets a new query for the composer, which may be expanded by filters, group by, having and sort criteria. | |
| string | getFilter () | 
| returns the used filter. | |
| sequence< sequence< com::sun::star::beans::PropertyValue > > | getStructuredFilter () | 
| returns the currently used filter. | |
| string | getGroup () | 
| returns the currently used GROUP BY. | |
| com::sun::star::container::XIndexAccess | getGroupColumns () | 
| returns the currently used group. | |
| string | getHavingClause () | 
| returns the used HAVING filter. | |
| sequence< sequence< com::sun::star::beans::PropertyValue > > | getStructuredHavingClause () | 
| returns the currently used HAVING filter. | |
| string | getOrder () | 
| returns the currently used sort order. | |
| com::sun::star::container::XIndexAccess | getOrderColumns () | 
| returns the currently used sort order. | |
| string | getQueryWithSubstitution () raises (com::sun::star::sdbc::SQLException) | 
| returns the query previously set at the analyzer, with all application-level features being substituted by their database-level counterparts. | |
| void | setCommand ([in] string Command, [in] long CommandType) raises (com::sun::star::sdbc::SQLException) | 
| sets a new query for the composer, which may be expanded by filters, group by, having and sort criteria. | |
|  Public Member Functions inherited from XInterface | |
| any | queryInterface ([in] type aType) | 
| queries for a new interface to an existing UNO object. | |
| void | acquire () | 
| increases the reference counter by one. | |
| void | release () | 
| decreases the reference counter by one. | |
|  Public Member Functions inherited from XTablesSupplier | |
| com::sun::star::container::XNameAccess | getTables () | 
| returns the container of tables. | |
|  Public Member Functions inherited from XColumnsSupplier | |
| com::sun::star::container::XNameAccess | getColumns () | 
| returns the container of columns. | |
|  Protected Member Functions inherited from XParametersSupplier | |
| com::sun::star::container::XIndexAccess | getParameters () | 
| returns the container of parameters. | |
represents a service for analyzing a single select statement.
It hides the complexity of parsing and evaluating a single select statement and provides sophisticated methods for accessing a statements filter, group by, having and order criteria, as well as the corresponding select columns and tables. If supported, it even gives access to the parameters.
| 
 | optional | 
access to the parameters which are used in the where clause.
| interface com::sun::star::sdbcx::XColumnsSupplier | 
access the selected columns.
| interface com::sun::star::sdbcx::XTablesSupplier | 
access to the selected tables.
The selected tables are those present in the FROM part of a SELECT statement.
Note that OpenOffice.org since version 2.0.4 also supports queries which are based on other queries. For example, given that you have a database containing a query named All Orders, the SQL statement SELECT * FROM "All Orders" is perfectly valid when used with a SingleSelectQueryAnalyzer.
In this case, the name container returned by com::sun::star::sdbcx::XTablesSupplier::getTables() will in fact not return a Table, but a Query object. Semantically, however, this object still acts as a table in the SQL statement.
| interface XSingleSelectQueryAnalyzer |