LibreOffice LibreOffice 5.3 SDK API Reference

XSingleSelectQueryComposer.idl
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19 #ifndef __com_sun_star_sdb_XSingleSelectQueryComposer_idl__
20 #define __com_sun_star_sdb_XSingleSelectQueryComposer_idl__
21
22 #include <com/sun/star/beans/XPropertySet.idl>
23 #include <com/sun/star/beans/PropertyValue.idl>
24 #include <com/sun/star/lang/WrappedTargetException.idl>
25 #include <com/sun/star/sdbc/SQLException.idl>
26 #include <com/sun/star/sdb/XSingleSelectQueryAnalyzer.idl>
27
28
29 module com { module sun { module star { module sdb {
30
31
41 interface XSingleSelectQueryComposer: XSingleSelectQueryAnalyzer
42 {
43 // FILTER
44
53 void setFilter([in] string filter)
54 raises (com::sun::star::sdbc::SQLException);
55
66 void setStructuredFilter([in] sequence< sequence<com::sun::star::beans::PropertyValue> > filter)
67 raises (com::sun::star::sdbc::SQLException,com::sun::star::lang::IllegalArgumentException);
68
84 void appendFilterByColumn([in] com::sun::star::beans::XPropertySet column,[in] boolean andCriteria,[in] long filterOperator)
85 raises (com::sun::star::sdbc::SQLException, com::sun::star::lang::WrappedTargetException);
86
87 // GROUP BY
88
89
98 void setGroup([in] string group)
99 raises (com::sun::star::sdbc::SQLException);
100
101
109 void appendGroupByColumn([in] com::sun::star::beans::XPropertySet column)
110 raises (com::sun::star::sdbc::SQLException);
111
112 // HAVING
113
122 void setHavingClause([in] string filter)
123 raises (com::sun::star::sdbc::SQLException);
124
125
136 void setStructuredHavingClause([in] sequence< sequence<com::sun::star::beans::PropertyValue> > filter)
137 raises (com::sun::star::sdbc::SQLException);
138
153 void appendHavingClauseByColumn([in] com::sun::star::beans::XPropertySet column,[in] boolean andCriteria,[in] long filterOperator)
154 raises (com::sun::star::sdbc::SQLException, com::sun::star::lang::WrappedTargetException);
155
156 // ORDER BY
157
166 void setOrder([in] string order)
167 raises (com::sun::star::sdbc::SQLException);
168
169
179 void appendOrderByColumn([in] com::sun::star::beans::XPropertySet column,
180 [in] boolean ascending)
181 raises (com::sun::star::sdbc::SQLException);
182
183 // cumulative composing
184
224 [attribute] string ElementaryQuery
225 {
226 set raises (com::sun::star::sdbc::SQLException);
227 };
228 };
229
230
231 }; }; }; };
232
233 #endif
234
235 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SQLException.idl
XSingleSelectQueryAnalyzer.idl
com::sun::star::sdb::XSingleSelectQueryAnalyzer
simplifies the analyzing of single select statements.
Definition: XSingleSelectQueryAnalyzer.idl:40
com
Definition: Ambiguous.idl:22
PropertyValue.idl
com::sun::star::sdb::XSingleSelectQueryComposer
simplifies the composing of single select statements.
Definition: XSingleSelectQueryComposer.idl:41
com::sun::star::lang::IllegalArgumentException
This exception is thrown to indicate that a method has passed an illegal or inappropriate argument...
Definition: IllegalArgumentException.idl:29
com::sun::star::lang::WrappedTargetException
This is a checked exception that wraps an exception thrown by the original target.
Definition: WrappedTargetException.idl:37
WrappedTargetException.idl
com::sun::star::sdbc::SQLException
is an exception that provides information on a database access error.
Definition: SQLException.idl:44
com::sun::star::beans::XPropertySet
provides information about and access to the properties from an implementation.
Definition: XPropertySet.idl:63
XPropertySet.idl