Changes between Version 1 and Version 2 of FdoDataValueTypeConversion


Ignore:
Timestamp:
10/17/07 15:10:06 (17 years ago)
Author:
gregboone
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • FdoDataValueTypeConversion

    v1 v2  
    2121
    2222This document looks at encapsulating data type conversions in new API functions on the !FdoDataValue class.
     23
     24
     25=== API Changes ===
     26
     27Direct conversion from a source to a destination type will be supported by adding Create functions to each destination type, which take a value of the source type as a parameter.
     28
     29==== Main Functions ====
     30
     31The following functions will be added:
     32
     33
     34{{{
     35FDO_API static FdoDataValue* FdoDataValue::Create(
     36     FdoDataType dataType,
     37     FdoDataValue* src,
     38     FdoBoolean shift = true,
     39     FdoBoolean truncate = false,
     40     FdoBoolean nullIfIncompatible = false
     41 );
     42
     43FDO_API static FdoBooleanValue* FdoBooleanValue::Create(
     44     FdoDataValue* src,
     45     FdoBoolean shift = true,
     46     FdoBoolean truncate = false,
     47     FdoBoolean nullIfIncompatible = false
     48 );
     49
     50FDO_API static FdoByteValue* FdoByteValue::Create(
     51     FdoDataValue* src,
     52     FdoBoolean shift = true,
     53     FdoBoolean truncate = false,
     54     FdoBoolean nullIfIncompatible = false
     55 );
     56
     57FDO_API static FdoDecimalValue* FdoDecimalValue::Create(
     58     FdoDataValue* src,
     59     FdoBoolean shift = true,
     60     FdoBoolean truncate = false,
     61     FdoBoolean nullIfIncompatible = false
     62 );
     63
     64FDO_API static FdoDoubleValue* FdoDoubleValue::Create(
     65     FdoDataValue* src,
     66     FdoBoolean shift = true,
     67     FdoBoolean truncate = false,
     68     FdoBoolean nullIfIncompatible = false
     69 );
     70
     71FDO_API static FdoInt16Value* FdoInt16Value::Create(
     72     FdoDataValue* src,
     73     FdoBoolean shift = true,
     74     FdoBoolean truncate = false,
     75     FdoBoolean nullIfIncompatible = false
     76 );
     77
     78FDO_API static FdoInt32Value* FdoInt32Value::Create(
     79     FdoDataValue* src,
     80     FdoBoolean shift = true,
     81     FdoBoolean truncate = false,
     82     FdoBoolean nullIfIncompatible = false
     83 );
     84
     85FDO_API static FdoInt64Value* FdoInt64Value::Create(
     86     FdoDataValue* src,
     87     FdoBoolean shift = true,
     88     FdoBoolean truncate = false,
     89     FdoBoolean nullIfIncompatible = false
     90 );
     91
     92FDO_API static FdoSingleValue* FdoSingleValue::Create(
     93     FdoDataValue* src,
     94     FdoBoolean shift = true,
     95     FdoBoolean truncate = false,
     96     FdoBoolean nullIfIncompatible = false
     97 );
     98
     99FDO_API static FdoSingleValue* FdoCLOBValue::Create(
     100     FdoDataValue* src,
     101     FdoBoolean shift = true,
     102     FdoBoolean truncate = false,
     103     FdoBoolean nullIfIncompatible = false
     104 );
     105}}}