xref: /AOO41X/main/connectivity/source/inc/java/sql/SQLWarning.hxx (revision caf5cd79edad04a48dcaf209068b3b89eae4622e)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef _CONNECTIVITY_JAVA_SQL_SQLWARNING_HXX_
25 #define _CONNECTIVITY_JAVA_SQL_SQLWARNING_HXX_
26 
27 #include "java/sql/SQLException.hxx"
28 //#ifndef _COM_SUN_STAR_SDBC_SQLWARNING_HPP_
29 //#include <com/sun/star/sdbc/SQLWarning.hpp>
30 //#endif
31 
32 namespace connectivity
33 {
34     //  namespace starsdbc  = ::com::sun::star::sdbc;
35     //  namespace ::com::sun::star::uno = ::com::sun::star::uno;
36     //**************************************************************
37     //************ Class: java.sql.SQLWarning
38     //**************************************************************
39     class java_sql_SQLWarning_BASE : public java_sql_SQLException_BASE
40     {
41     protected:
42     // statische Daten fuer die Klasse
43         static jclass theClass;
44     public:
45         virtual jclass getMyClass() const;
46         virtual ~java_sql_SQLWarning_BASE();
47         // ein Konstruktor, der fuer das Returnen des Objektes benoetigt wird:
java_sql_SQLWarning_BASE(JNIEnv * pEnv,jobject myObj)48         java_sql_SQLWarning_BASE( JNIEnv * pEnv, jobject myObj ) : java_sql_SQLException_BASE( pEnv, myObj ){}
49 
50     };
51 
52     class java_sql_SQLWarning : public java_sql_SQLException
53     {
54     public:
java_sql_SQLWarning(const java_sql_SQLWarning_BASE & _rW,const::com::sun::star::uno::Reference<::com::sun::star::uno::XInterface> & _rContext)55         java_sql_SQLWarning(const java_sql_SQLWarning_BASE& _rW,const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface> & _rContext)
56             : java_sql_SQLException(_rW,_rContext) {}
57     };
58 }
59 #endif // _CONNECTIVITY_JAVA_SQL_SQLWARNING_HXX_
60 
61