スケーラブルデータベースサーバ HiRDB Version 8 UAP開発ガイド

[目次][索引][前へ][次へ]

16.7.1 DbTypeプロパティとHiRDBTypeプロパティ

HiRDBParameterクラスのDbTypeプロパティを設定すると,自動的に同クラスのHiRDBTypeプロパティも設定されます。また,HiRDBTypeプロパティを設定すると,自動的にDbTypeプロパティも設定されます。DbTypeプロパティの設定時に自動設定されるHiRDBTypeプロパティの値を表16-3に,HiRDBTypeプロパティの設定時に自動設定されるDbTypeプロパティの値を表16-4に示します。

表16-3 DbTypeプロパティ設定時に自動設定されるHiRDBTypeプロパティの値

DbTypeプロパティ HiRDBTypeプロパティ
AnsiString VarChar
AnsiStringFixedLength Char
Binary Binary
Boolean [NotSupportedException例外]
Byte SmallInt
Currency [NotSupportedException例外]
Date Date
DateTime TimeStamp
Decimal Decimal
Double Float
Guid [NotSupportedException例外]
Int16 SmallInt
Int32 Integer
Int64 Decimal
Object Binary
SByte SmallInt
Single SmallFlt
String MvarChar
StringFixedLength Mchar
Time Time
UInt16 Integer
UInt32 Decimal
UInt64 Decimal
VarNumeric [NotSupportedException例外]

表16-4 HiRDBTypeプロパティ設定時に自動設定されるDbTypeプロパティの値

HiRDBTypeプロパティ DbTypeプロパティ
Binary Object
Blob Object
Char AnsiStringFixedLength
Date Date
Decimal Decimal
Float Double
Integer Int32
IntervalYearToDay String
IntervalHourToSecond String
MChar StringFixedLength
MVarChar String
NChar StringFixedLength
NVarChar String
SmallFlt Single
SmallInt Int16
Time Time
TimeStamp DateTime
VarChar AnsiString