bump product version to 5.0.4.1
[LibreOffice.git] / connectivity / source / inc / java / sql / Timestamp.hxx
blobaf5eaa2dfd3ff54d62e00e26d4ac6bc14170cc22
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 #ifndef INCLUDED_CONNECTIVITY_SOURCE_INC_JAVA_SQL_TIMESTAMP_HXX
20 #define INCLUDED_CONNECTIVITY_SOURCE_INC_JAVA_SQL_TIMESTAMP_HXX
22 #include "java/util/Date.hxx"
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 SAL_OVERRIDE;
40 virtual ~java_sql_Date();
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 ::com::sun::star::util::Date& _rOut );
45 operator ::com::sun::star::util::Date();
46 static jclass st_getMyClass();
51 //************ Class: java.sql.Time
54 class java_sql_Time : public java_util_Date
56 protected:
57 // static data for the class
58 static jclass theClass;
59 public:
60 virtual jclass getMyClass() const SAL_OVERRIDE;
61 virtual ~java_sql_Time();
62 // A ctor that is needed for returning the object
63 java_sql_Time( JNIEnv * pEnv, jobject myObj ) : java_util_Date( pEnv, myObj ){}
64 java_sql_Time( const ::com::sun::star::util::Time& _rOut );
65 operator ::com::sun::star::util::Time();
66 static jclass st_getMyClass();
70 //************ Class: java.sql.Timestamp
72 class java_sql_Timestamp : public java_util_Date
74 protected:
75 // static data for the class
76 static jclass theClass;
77 public:
78 virtual jclass getMyClass() const SAL_OVERRIDE;
79 virtual ~java_sql_Timestamp();
80 // A ctor that is needed for returning the object
81 java_sql_Timestamp( JNIEnv * pEnv, jobject myObj ) : java_util_Date( pEnv, myObj ){}
82 java_sql_Timestamp( const ::com::sun::star::util::DateTime& _rOut);
83 operator ::com::sun::star::util::DateTime();
85 static jclass st_getMyClass();
88 #endif // INCLUDED_CONNECTIVITY_SOURCE_INC_JAVA_SQL_TIMESTAMP_HXX
90 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */