LibreOffice Module connectivity (master) 1
Timestamp.hxx
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#pragma once
20
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>
25
26
27namespace connectivity
28{
29
30 //************ Class: java.sql.Date
31
32
34 {
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 );
44
45 operator css::util::Date();
46 static jclass st_getMyClass();
47 };
48
49
50 //************ Class: java.sql.Time
51
52
54 {
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();
66 };
67
68
69 //************ Class: java.sql.Timestamp
70
72 {
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();
83
84 static jclass st_getMyClass();
85 };
86}
87
88/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual jclass getMyClass() const override
Definition: Timestamp.cxx:61
java_sql_Date(JNIEnv *pEnv, jobject myObj)
Definition: Timestamp.hxx:42
virtual ~java_sql_Date() override
Definition: Timestamp.cxx:58
static jclass st_getMyClass()
Definition: Timestamp.cxx:65
static jclass st_getMyClass()
Definition: Timestamp.cxx:92
virtual ~java_sql_Time() override
Definition: Timestamp.cxx:85
virtual jclass getMyClass() const override
Definition: Timestamp.cxx:88
java_sql_Time(JNIEnv *pEnv, jobject myObj)
Definition: Timestamp.hxx:62
java_sql_Timestamp(JNIEnv *pEnv, jobject myObj)
Definition: Timestamp.hxx:80
virtual ~java_sql_Timestamp() override
Definition: Timestamp.cxx:137
virtual jclass getMyClass() const override
Definition: Timestamp.cxx:140