diff options
author | Ocke Janssen <oj@openoffice.org> | 2000-11-30 14:34:33 +0000 |
---|---|---|
committer | Ocke Janssen <oj@openoffice.org> | 2000-11-30 14:34:33 +0000 |
commit | 8eb6be599693ed4fd703343364530a383e49f7bb (patch) | |
tree | 51ca609da1a4a71eec0ca98bb3b5346221bfedde /connectivity | |
parent | 710287a1714718169ea8ef0cebe79f21c438beff (diff) |
#80934# standarddate is no longer public
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/inc/connectivity/dbconversion.hxx | 17 | ||||
-rw-r--r-- | connectivity/source/commontools/dbconversion.cxx | 12 |
2 files changed, 18 insertions, 11 deletions
diff --git a/connectivity/inc/connectivity/dbconversion.hxx b/connectivity/inc/connectivity/dbconversion.hxx index 3782914e6a64..3561752a55bc 100644 --- a/connectivity/inc/connectivity/dbconversion.hxx +++ b/connectivity/inc/connectivity/dbconversion.hxx @@ -2,9 +2,9 @@ * * $RCSfile: dbconversion.hxx,v $ * - * $Revision: 1.6 $ + * $Revision: 1.7 $ * - * last change: $Author: oj $ $Date: 2000-11-09 08:41:49 $ + * last change: $Author: oj $ $Date: 2000-11-30 15:26:01 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -129,10 +129,11 @@ namespace dbtools class DBTypeConversion { - public: + protected: static ::com::sun::star::util::Date STANDARD_DB_DATE; public: + static ::com::sun::star::util::Date getStandardDate(); static void setValue(const ::com::sun::star::uno::Reference< ::com::sun::star::sdb::XColumnUpdate>& xVariant, const ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatter>& xFormatter, const ::com::sun::star::util::Date& rNullDate, @@ -162,20 +163,20 @@ namespace dbtools sal_Int32 nKey, sal_Int16 nKeyType); - static ::com::sun::star::util::Date toDate(double dVal, const ::com::sun::star::util::Date& _rNullDate = STANDARD_DB_DATE); + static ::com::sun::star::util::Date toDate(double dVal, const ::com::sun::star::util::Date& _rNullDate = getStandardDate()); static ::com::sun::star::util::Time toTime(double dVal); - static ::com::sun::star::util::DateTime toDateTime(double dVal, const ::com::sun::star::util::Date& _rNullDate = STANDARD_DB_DATE); + static ::com::sun::star::util::DateTime toDateTime(double dVal, const ::com::sun::star::util::Date& _rNullDate = getStandardDate()); /** return the given DateTime as JDBC compliant 64 bit value */ static sal_Int64 toINT64(const ::com::sun::star::util::DateTime& rVal); static sal_Int32 getMsFromTime(const ::com::sun::star::util::Time& rVal); - static sal_Int32 toDays(const ::com::sun::star::util::Date& _rVal, const ::com::sun::star::util::Date& _rNullDate = STANDARD_DB_DATE); + static sal_Int32 toDays(const ::com::sun::star::util::Date& _rVal, const ::com::sun::star::util::Date& _rNullDate = getStandardDate()); - static double toDouble(const ::com::sun::star::util::Date& rVal, const ::com::sun::star::util::Date& _rNullDate = STANDARD_DB_DATE); + static double toDouble(const ::com::sun::star::util::Date& rVal, const ::com::sun::star::util::Date& _rNullDate = getStandardDate()); static double toDouble(const ::com::sun::star::util::Time& rVal); - static double toDouble(const ::com::sun::star::util::DateTime& rVal, const ::com::sun::star::util::Date& _rNullDate = STANDARD_DB_DATE); + static double toDouble(const ::com::sun::star::util::DateTime& rVal, const ::com::sun::star::util::Date& _rNullDate = getStandardDate()); static sal_Int32 toINT32(const ::com::sun::star::util::Date& rVal); static sal_Int32 toINT32(const ::com::sun::star::util::Time& rVal); diff --git a/connectivity/source/commontools/dbconversion.cxx b/connectivity/source/commontools/dbconversion.cxx index 3e57a783e038..de49e2456000 100644 --- a/connectivity/source/commontools/dbconversion.cxx +++ b/connectivity/source/commontools/dbconversion.cxx @@ -2,9 +2,9 @@ * * $RCSfile: dbconversion.cxx,v $ * - * $Revision: 1.7 $ + * $Revision: 1.8 $ * - * last change: $Author: oj $ $Date: 2000-11-09 08:46:09 $ + * last change: $Author: oj $ $Date: 2000-11-30 15:29:40 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -122,7 +122,10 @@ using namespace ::com::sun::star::script; //------------------------------------------------------------------------------ Date DBTypeConversion::STANDARD_DB_DATE(1, 1, 1900); - +::com::sun::star::util::Date DBTypeConversion::getStandardDate() +{ + return STANDARD_DB_DATE; +} //------------------------------------------------------------------------------ void DBTypeConversion::setValue(const Reference<XColumnUpdate>& xVariant, const Reference<XNumberFormatter>& xFormatter, @@ -787,6 +790,9 @@ Date DBTypeConversion::getNULLDate(const Reference< XNumberFormatsSupplier > &xS /************************************************************************* * history: * $Log: not supported by cvs2svn $ + * Revision 1.7 2000/11/09 08:46:09 oj + * some new methods for db's + * * Revision 1.6 2000/11/08 09:28:45 oj * forget assignment of return value * |