The first two methods provide conversion between database native data type and DSS internal data type in both directions. The remaining two methods are used to change the mapping between database native data type and DSS internal data type. It should be noted that when for mapping from native data type into DSS data type, the native data type may be in string or long integer format, depending on databases. This is because we use system catalog to retrieve appropriate data types. For details, refer to the design documentation of DSSDataType. In this interface, we use variant to support for multiple data type for the same interface method.
Public Member Functions | |
HRESULT | ConvertDSSToNative ([in] IDSSDataType *pDataType,[in] Int32 DbType,[in, defaultvalue(0)] Int32 DbVersion,[out, retval] BSTR *pNativeType) |
Convert DSS data type to native type Given a DSS data type, return database native data type (in string format). | |
HRESULT | ConvertNativeToDSS ([in] VARIANT NativeType,[in] Int32 Precision,[in] Int32 Scale,[in] IDSSDataType *pDataType,[in] Int32 DbType,[in, defaultvalue(0)] Int32 DbVersion) |
Convert native type to DSS data type Given a database native data type, return its corresponding DSS data type (by setting its values through IDSSDataType interface). | |
HRESULT | SetDSSToNative ([in] IDSSDataType *pDataType,[in] BSTR NativeType,[in] Int32 DbType,[in, defaultvalue(0)] Int32 DbVersion) |
Change mapping from DSS data type to native type Given a DSS type and its corresponding database native data type, change internal mapping. | |
HRESULT | SetNativeToDSS ([in] VARIANT NativeType,[in] Int32 Precision,[in] Int32 Scale,[in] IDSSDataType *pDataType,[in] Int32 DbType,[in, defaultvalue(0)] Int32 DbVersion) |
Change mapping from native type to DSS data type Given a database native data type and its corresponding DSS type, change the internal mapping. |
|
Convert DSS data type to native type Given a DSS data type, return database native data type (in string format).
|
|
Convert native type to DSS data type Given a database native data type, return its corresponding DSS data type (by setting its values through IDSSDataType interface).
|
|
Change mapping from DSS data type to native type Given a DSS type and its corresponding database native data type, change internal mapping.
|
|
Change mapping from native type to DSS data type Given a database native data type and its corresponding DSS type, change the internal mapping.
|