| /AOO42X/main/connectivity/java/dbtools/src/org/apache/openoffice/comp/sdbc/dbtools/util/ |
| H A D | ORowSetValue.java | 489 bRet = DBTypeConversion.safeParseInt((String)value) != 0; in getBoolean() 539 aValue = DBTypeConversion.toDate(getString()); in getDate() 546 aValue = DBTypeConversion.toDate(getDouble()); in getDate() 566 aValue = DBTypeConversion.toDate((double)getLong()); in getDate() 580 aValue = DBTypeConversion.toDate(0.0); in getDate() 595 aValue = DBTypeConversion.toDateTime(getString()); in getDateTime() 602 aValue = DBTypeConversion.toDateTime(getDouble()); in getDateTime() 655 nRet = DBTypeConversion.safeParseDouble((String)value); in getDouble() 658 … nRet = isSigned() ? (long)value : DBTypeConversion.unsignedLongToDouble((long)value); in getDouble() 668 nRet = DBTypeConversion.toDouble((Date)value); in getDouble() [all …]
|
| /AOO42X/main/connectivity/source/commontools/ |
| H A D | dbconversion.cxx | 56 ::com::sun::star::util::Date DBTypeConversion::getStandardDate() in getStandardDate() 62 ::rtl::OUString DBTypeConversion::toDateString(const Date& rDate) in toDateString() 75 ::rtl::OUString DBTypeConversion::toTimeString(const Time& rTime) in toTimeString() 89 ::rtl::OUString DBTypeConversion::toDateTimeString(const DateTime& _rDateTime) in toDateTimeString() 101 Date DBTypeConversion::toDate(sal_Int32 _nVal) in toDate() 111 Time DBTypeConversion::toTime(sal_Int32 _nVal) in toTime() 123 sal_Int32 DBTypeConversion::toINT32(const Date& rVal) in toINT32() 131 sal_Int32 DBTypeConversion::toINT32(const Time& rVal) in toINT32() 146 sal_Int64 DBTypeConversion::toINT64(const DateTime& rVal) in toINT64() 169 sal_Int32 DBTypeConversion::getMsFromTime(const Time& rVal) in getMsFromTime() [all …]
|
| H A D | DateConversion.cxx | 58 ::rtl::OUString DBTypeConversion::toSQLString(sal_Int32 eType, const Any& _rVal, sal_Bool bQuote, in toSQLString() 131 aDateTime = DBTypeConversion::toDateTime(nValue); in toSQLString() 138 aDateTime = DBTypeConversion::toDateTime(sValue); in toSQLString() 150 aRet.append(DBTypeConversion::toDateTimeString(aDateTime)); in toSQLString() 165 aDate = DBTypeConversion::toDate(nValue); in toSQLString() 172 aDate = DBTypeConversion::toDate(sValue); in toSQLString() 180 aRet.append(DBTypeConversion::toDateString(aDate)); in toSQLString() 192 aTime = DBTypeConversion::toTime(nValue); in toSQLString() 199 aTime = DBTypeConversion::toTime(sValue); in toSQLString() 207 aRet.append(DBTypeConversion::toTimeString(aTime)); in toSQLString() [all …]
|
| H A D | FValue.cxx | 1344 … nRet = dbtools::DBTypeConversion::toDays(*(::com::sun::star::util::Date*)m_aValue.m_pValue); in getInt32() 1417 … nRet = dbtools::DBTypeConversion::toDays(*(::com::sun::star::util::Date*)m_aValue.m_pValue); in getLong() 1490 …nRet = (float)dbtools::DBTypeConversion::toDouble(*(::com::sun::star::util::Date*)m_aValue.m_pValu… in getFloat() 1493 …nRet = (float)dbtools::DBTypeConversion::toDouble(*(::com::sun::star::util::Time*)m_aValue.m_pValu… in getFloat() 1496 …nRet = (float)dbtools::DBTypeConversion::toDouble(*(::com::sun::star::util::DateTime*)m_aValue.m_p… in getFloat() 1569 … nRet = dbtools::DBTypeConversion::toDouble(*(::com::sun::star::util::Date*)m_aValue.m_pValue); in getDouble() 1572 … nRet = dbtools::DBTypeConversion::toDouble(*(::com::sun::star::util::Time*)m_aValue.m_pValue); in getDouble() 1575 … nRet = dbtools::DBTypeConversion::toDouble(*(::com::sun::star::util::DateTime*)m_aValue.m_pValue); in getDouble() 1659 m_aValue.m_pValue = new Date(dbtools::DBTypeConversion::toDate(_rVal)); in setFromDouble() 1663 m_aValue.m_pValue = new Time(dbtools::DBTypeConversion::toTime(_rVal)); in setFromDouble() [all …]
|
| H A D | formattedcolumnvalue.cxx | 94 ,m_aNullDate( DBTypeConversion::getStandardDate() ) in FormattedColumnValue_Data() 301 …::dbtools::DBTypeConversion::setValue( m_pData->m_xColumnUpdate, m_pData->m_xFormatter, m_pData->m… in setFormattedValue() 327 sStringValue = DBTypeConversion::getFormattedValue( in getFormattedValue()
|
| H A D | dbtools.cxx | 1148 Date aDate = DBTypeConversion::toDate(getDouble(aEffectiveDefault)); in TransferFormComponentProperties() 1154 Time aTime = DBTypeConversion::toTime(getDouble(aEffectiveDefault)); in TransferFormComponentProperties() 1243 aNewDefault <<= DBTypeConversion::toDouble(*(Date*)aDate.getValue()); in TransferFormComponentProperties() 1250 aNewDefault <<= DBTypeConversion::toDouble(*(Time*)aTime.getValue()); in TransferFormComponentProperties()
|
| /AOO42X/main/connectivity/source/drivers/jdbc/ |
| H A D | Timestamp.cxx | 46 sDateStr = ::dbtools::DBTypeConversion::toDateString(_rOut); in java_sql_Date() 80 return ::dbtools::DBTypeConversion::toDate(toString()); in operator ::com::sun::star::util::Date() 111 sDateStr = ::dbtools::DBTypeConversion::toTimeString(_rOut); in java_sql_Time() 130 return ::dbtools::DBTypeConversion::toTime(toString()); in operator ::com::sun::star::util::Time() 161 sDateStr = ::dbtools::DBTypeConversion::toDateTimeString(_rOut); in java_sql_Timestamp() 193 return ::dbtools::DBTypeConversion::toDateTime(toString()); in operator ::com::sun::star::util::DateTime()
|
| /AOO42X/main/connectivity/java/sdbc_jdbc/src/com/sun/star/comp/sdbc/ |
| H A D | JavaSQLCallableStatement.java | 23 import org.apache.openoffice.comp.sdbc.dbtools.util.DBTypeConversion; 122 return DBTypeConversion.toDate(jdbcDate.toString()); in getDate() 248 ret = DBTypeConversion.toDate(((java.sql.Date)object).toString()); in getObject() 250 ret = DBTypeConversion.toTime(((java.sql.Time)object).toString()); in getObject() 252 ret = DBTypeConversion.toDateTime(((java.sql.Timestamp)object).toString()); in getObject() 291 return DBTypeConversion.toTime(time.toString()); in getTime() 306 return DBTypeConversion.toDateTime(timestamp.toString()); in getTimestamp()
|
| H A D | JavaSQLResultSet.java | 31 import org.apache.openoffice.comp.sdbc.dbtools.util.DBTypeConversion; 318 return DBTypeConversion.toDate(jdbcDate.toString()); in getDate() 458 ret = DBTypeConversion.toDate(((java.sql.Date)object).toString()); in getObject() 460 ret = DBTypeConversion.toTime(((java.sql.Time)object).toString()); in getObject() 462 ret = DBTypeConversion.toDateTime(((java.sql.Timestamp)object).toString()); in getObject() 498 return DBTypeConversion.toTime(time.toString()); in getTime() 512 return DBTypeConversion.toDateTime(timestamp.toString()); in getTimestamp() 845 … jdbcResultSet.updateDate(columnIndex, java.sql.Date.valueOf(DBTypeConversion.toDateString(x))); in updateDate() 854 … jdbcResultSet.updateTime(columnIndex, java.sql.Time.valueOf(DBTypeConversion.toTimeString(x))); in updateTime() 864 java.sql.Timestamp.valueOf(DBTypeConversion.toDateTimeString(x))); in updateTimestamp()
|
| H A D | JavaSQLPreparedStatement.java | 28 import org.apache.openoffice.comp.sdbc.dbtools.util.DBTypeConversion; 247 index, java.sql.Date.valueOf(DBTypeConversion.toDateString(x))); in setDate() 391 index, java.sql.Time.valueOf(DBTypeConversion.toTimeString(x))); in setTime() 403 index, java.sql.Timestamp.valueOf(DBTypeConversion.toDateTimeString(x))); in setTimestamp()
|
| /AOO42X/main/forms/source/component/ |
| H A D | FormattedField.cxx | 354 m_aNullDate = DBTypeConversion::getStandardDate(); in DBG_NAME() 807 m_aNullDate = DBTypeConversion::getStandardDate(); in onDisconnectedDbColumn() 1044 …DBTypeConversion::setValue( m_xColumnUpdate, m_aNullDate, getDouble( aControlValue ), m_nKeyType ); in commitControlValueToDbColumn() 1096 aControlValue <<= DBTypeConversion::toDouble( aDate, m_aNullDate ); in translateExternalValueToControlValue() 1102 aControlValue <<= DBTypeConversion::toDouble( aTime ); in translateExternalValueToControlValue() 1108 aControlValue <<= DBTypeConversion::toDouble( aDateTime, m_aNullDate ); in translateExternalValueToControlValue() 1172 aExternalValue <<= DBTypeConversion::toDate( fValue, m_aNullDate ); in translateControlValueToExternalValue() 1176 aExternalValue <<= DBTypeConversion::toTime( fValue ); in translateControlValueToExternalValue() 1180 aExternalValue <<= DBTypeConversion::toDateTime( fValue, m_aNullDate ); in translateControlValueToExternalValue() 1198 m_aSaveValue <<= DBTypeConversion::getValue( m_xColumn, m_aNullDate ); // #100056# OJ in translateDbColumnToControlValue()
|
| H A D | Time.cxx | 256 aTime = DBTypeConversion::toTime(nAsInt); in commitControlValueToDbColumn() 293 _rUNOValue <<= DBTypeConversion::toTime( nTime ); in impl_translateControlValueToUNOTime() 313 aControlValue <<= DBTypeConversion::toINT32( aTime ); in translateExternalValueToControlValue() 334 m_aSaveValue <<= DBTypeConversion::toINT32( aTime ); in translateDbColumnToControlValue()
|
| H A D | Date.cxx | 259 aDate = DBTypeConversion::toDate(nAsInt); in commitControlValueToDbColumn() 291 _rUNOValue <<= DBTypeConversion::toDate( nDate ); in impl_translateControlValueToUNODate() 311 aControlValue <<= DBTypeConversion::toINT32( aDate ); in translateExternalValueToControlValue() 332 m_aSaveValue <<= DBTypeConversion::toINT32(aDate); in translateDbColumnToControlValue()
|
| /AOO42X/main/extensions/source/propctrlr/ |
| H A D | stringrepresentation.cxx | 441 _rStringRep = ::dbtools::DBTypeConversion::toDateString(aUnoDate); in convertGenericValueToString() 448 _rStringRep = ::dbtools::DBTypeConversion::toTimeString(aUnoTime); in convertGenericValueToString() 454 _rStringRep = ::dbtools::DBTypeConversion::toDateTimeString(aUnoDateTime); in convertGenericValueToString() 584 _rValue <<= ::dbtools::DBTypeConversion::toDate(_rStringRep); in convertStringToGenericValue() 589 _rValue <<= ::dbtools::DBTypeConversion::toTime(_rStringRep); in convertStringToGenericValue() 593 _rValue <<= ::dbtools::DBTypeConversion::toDateTime(_rStringRep); in convertStringToGenericValue()
|
| H A D | usercontrol.cxx | 137 …nValue = ::dbtools::DBTypeConversion::toDouble(::dbtools::DBTypeConversion::toDate(static_cast<sal… in getPreviewValue() 144 …nValue = ::dbtools::DBTypeConversion::toDouble(::dbtools::DBTypeConversion::toTime(aCurrentTime.Ge… in getPreviewValue()
|
| /AOO42X/main/connectivity/source/drivers/macab/ |
| H A D | MacabRecord.cxx | 244 DateTime aDateTime = DBTypeConversion::toDateTime(_newFieldString); in createMacabField() 252 … double nTime = DBTypeConversion::toDouble(aDateTime, DBTypeConversion::getStandardDate()); in createMacabField() 315 fieldString = DBTypeConversion::toDateTimeString(aTime); in fieldToString()
|
| /AOO42X/main/connectivity/source/simpledbt/ |
| H A D | staticdbtools_s.cxx | 56 return ::dbtools::DBTypeConversion::getStandardDate(); in getStandardDate() 62 return ::dbtools::DBTypeConversion::getValue( _rxVariant, rNullDate ); in getValue() 69 …return ::dbtools::DBTypeConversion::getFormattedValue(_rxColumn, _rxFormatter, _rNullDate, _nKey, … in getFormattedValue() 76 …return ::dbtools::DBTypeConversion::getFormattedValue( _rxColumn, _rxFormatter, _rLocale, _rNullDa… in getFormattedValue()
|
| /AOO42X/main/connectivity/source/drivers/ado/ |
| H A D | Aolevariant.cxx | 146 dblVal = ::dbtools::DBTypeConversion::toDouble(x,::com::sun::star::util::Date(30,12,1899)); in OLEVariant() 152 dblVal = ::dbtools::DBTypeConversion::toDouble(x); in OLEVariant() 158 dblVal = ::dbtools::DBTypeConversion::toDouble(x,::com::sun::star::util::Date(30,12,1899)); in OLEVariant() 372 …return isNull() ? ::com::sun::star::util::Date(30,12,1899) : ::dbtools::DBTypeConversion::toDate(g… in operator ::com::sun::star::util::Date() 376 … return isNull() ? ::com::sun::star::util::Time() : ::dbtools::DBTypeConversion::toTime(getDate()); in operator ::com::sun::star::util::Time() 380 …return isNull() ? ::com::sun::star::util::DateTime() : ::dbtools::DBTypeConversion::toDateTime(get… in operator ::com::sun::star::util::DateTime()
|
| /AOO42X/main/reportdesign/source/ui/dlg/ |
| H A D | DateTime.cxx | 216 …nValue = ::dbtools::DBTypeConversion::toDouble(::dbtools::DBTypeConversion::toTime(aCurrentTime.Ge… in getFormatStringByKey() 222 …nValue = ::dbtools::DBTypeConversion::toDouble(::dbtools::DBTypeConversion::toDate(static_cast<sal… in getFormatStringByKey()
|
| /AOO42X/main/connectivity/source/parse/ |
| H A D | sqlnode.cxx | 194 Date aDate = DBTypeConversion::toDate(rString); in convertDateString() 198 double fDate = DBTypeConversion::toDouble(aDate,DBTypeConversion::getNULLDate(xSupplier)); in convertDateString() 207 DateTime aDate = DBTypeConversion::toDateTime(rString); in convertDateTimeString() 211 double fDateTime = DBTypeConversion::toDouble(aDate,DBTypeConversion::getNULLDate(xSupplier)); in convertDateTimeString() 220 Time aTime = DBTypeConversion::toTime(rString); in convertTimeString() 225 double fTime = DBTypeConversion::toDouble(aTime); in convertTimeString() 1025 …Date aDate = DBTypeConversion::toDate(fValue,DBTypeConversion::getNULLDate(m_xFormatter->getNumber… in buildNode_Date() 1026 ::rtl::OUString aString = DBTypeConversion::toDateString(aDate); in buildNode_Date() 1033 Time aTime = DBTypeConversion::toTime(fValue); in buildNode_Date() 1034 ::rtl::OUString aString = DBTypeConversion::toTimeString(aTime); in buildNode_Date() [all …]
|
| /AOO42X/main/connectivity/source/drivers/file/ |
| H A D | fcomp.cxx | 521 …pOperand->setValue(::dbtools::DBTypeConversion::toDouble(::dbtools::DBTypeConversion::toDate(sDate… in execute_Operand() 525 …pOperand->setValue(::dbtools::DBTypeConversion::toDouble(::dbtools::DBTypeConversion::toTime(sDate… in execute_Operand() 529 …pOperand->setValue(::dbtools::DBTypeConversion::toDouble(::dbtools::DBTypeConversion::toDateTime(s… in execute_Operand()
|
| H A D | FPreparedStatement.cxx | 245 setParameter(parameterIndex,DBTypeConversion::toDouble(aData)); in setDate() 251 setParameter(parameterIndex,DBTypeConversion::toDouble(aVal)); in setTime() 258 setParameter(parameterIndex,DBTypeConversion::toDouble(aVal)); in setTimestamp()
|
| /AOO42X/main/connectivity/source/drivers/flat/ |
| H A D | ETable.cxx | 661 …*(_rRow->get())[i] = ::dbtools::DBTypeConversion::toDouble(::dbtools::DBTypeConversion::toDate(nRe… in fetchRow() 664 …*(_rRow->get())[i] = ::dbtools::DBTypeConversion::toDouble(::dbtools::DBTypeConversion::toDateTime… in fetchRow() 667 …*(_rRow->get())[i] = ::dbtools::DBTypeConversion::toDouble(::dbtools::DBTypeConversion::toTime(nRe… in fetchRow()
|
| /AOO42X/main/dbaccess/source/ui/misc/ |
| H A D | DExport.cxx | 396 … m_pUpdateHelper->updateDate(nPos,::dbtools::DBTypeConversion::toDate(fOutNumber,m_aNullDate)); in insertValueIntoColumn() 399 …m_pUpdateHelper->updateTimestamp(nPos,::dbtools::DBTypeConversion::toDateTime(fOutNumber,m_aNullDa… in insertValueIntoColumn() 402 … m_pUpdateHelper->updateTime(nPos,::dbtools::DBTypeConversion::toTime(fOutNumber)); in insertValueIntoColumn()
|
| /AOO42X/main/dbaccess/source/ui/control/ |
| H A D | FieldDescControl.cxx | 107 …nValue = DBTypeConversion::toStandardDbDate(DBTypeConversion::getNULLDate(_xNumberFormatter->getNu… in checkDoubleForDateFormat() 1889 …nValue = DBTypeConversion::toNullDate(DBTypeConversion::getNULLDate(xNumberFormatter->getNumberFor… in getControlDefault()
|