cid#1607171 Data race condition
[LibreOffice.git] / connectivity / source / inc / java / sql / Timestamp.hxx
blob599dfb78e4dd441593b24962a51bfacc6cd30eb8
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
19 #pragma once
21 #include <java/util/Date.hxx>
22 #include <com/sun/star/util/Date.hpp>
23 #include <com/sun/star/util/Time.hpp>
24 #include <com/sun/star/util/DateTime.hpp>
27 namespace connectivity
30 //************ Class: java.sql.Date
33 class java_sql_Date : public java_util_Date
35 protected:
36 // static data for the class
37 static jclass theClass;
38 public:
39 virtual jclass getMyClass() const override;
40 virtual ~java_sql_Date() override;
41 // A ctor that is needed for returning the object
42 java_sql_Date( JNIEnv * pEnv, jobject myObj ) : java_util_Date(pEnv,myObj){}
43 java_sql_Date( const css::util::Date& _rOut );
45 operator css::util::Date();
46 static jclass st_getMyClass();
50 //************ Class: java.sql.Time
53 class java_sql_Time : public java_util_Date
55 protected:
56 // static data for the class
57 static jclass theClass;
58 public:
59 virtual jclass getMyClass() const override;
60 virtual ~java_sql_Time() override;
61 // A ctor that is needed for returning the object
62 java_sql_Time( JNIEnv * pEnv, jobject myObj ) : java_util_Date( pEnv, myObj ){}
63 java_sql_Time( const css::util::Time& _rOut );
64 operator css::util::Time();
65 static jclass st_getMyClass();
69 //************ Class: java.sql.Timestamp
71 class java_sql_Timestamp : public java_util_Date
73 protected:
74 // static data for the class
75 static jclass theClass;
76 public:
77 virtual jclass getMyClass() const override;
78 virtual ~java_sql_Timestamp() override;
79 // A ctor that is needed for returning the object
80 java_sql_Timestamp( JNIEnv * pEnv, jobject myObj ) : java_util_Date( pEnv, myObj ){}
81 java_sql_Timestamp( const css::util::DateTime& _rOut);
82 operator css::util::DateTime();
84 static jclass st_getMyClass();
88 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */