1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: Timestamp.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef _CONNECTIVITY_JAVA_SQL_TIMESTAMP_HXX_
31 #define _CONNECTIVITY_JAVA_SQL_TIMESTAMP_HXX_
33 #include "java/util/Date.hxx"
34 #include <com/sun/star/util/Time.hpp>
35 #include <com/sun/star/util/DateTime.hpp>
38 namespace connectivity
40 //**************************************************************
41 //************ Class: java.sql.Date
42 //**************************************************************
44 class java_sql_Date
: public java_util_Date
47 // statische Daten fuer die Klasse
48 static jclass theClass
;
50 virtual jclass
getMyClass() const;
51 virtual ~java_sql_Date();
52 // ein Konstruktor, der fuer das Returnen des Objektes benoetigt wird:
53 java_sql_Date( JNIEnv
* pEnv
, jobject myObj
) : java_util_Date(pEnv
,myObj
){}
54 java_sql_Date( const ::com::sun::star::util::Date
& _rOut
);
56 operator ::com::sun::star::util::Date();
60 //**************************************************************
61 //************ Class: java.sql.Time
62 //**************************************************************
64 class java_sql_Time
: public java_util_Date
67 // statische Daten fuer die Klasse
68 static jclass theClass
;
70 virtual jclass
getMyClass() const;
71 virtual ~java_sql_Time();
72 // ein Konstruktor, der fuer das Returnen des Objektes benoetigt wird:
73 java_sql_Time( JNIEnv
* pEnv
, jobject myObj
) : java_util_Date( pEnv
, myObj
){}
74 java_sql_Time( const ::com::sun::star::util::Time
& _rOut
);
75 operator ::com::sun::star::util::Time();
78 //**************************************************************
79 //************ Class: java.sql.Timestamp
80 //**************************************************************
81 class java_sql_Timestamp
: public java_util_Date
84 // statische Daten fuer die Klasse
85 static jclass theClass
;
87 virtual jclass
getMyClass() const;
88 virtual ~java_sql_Timestamp();
89 // ein Konstruktor, der fuer das Returnen des Objektes benoetigt wird:
90 java_sql_Timestamp( JNIEnv
* pEnv
, jobject myObj
) : java_util_Date( pEnv
, myObj
){}
91 java_sql_Timestamp( const ::com::sun::star::util::DateTime
& _rOut
);
92 operator ::com::sun::star::util::DateTime();
95 void setNanos(sal_Int32 n
);
98 #endif // _CONNECTIVITY_JAVA_SQL_TIMESTAMP_HXX_