WebSphere Message Broker, Versão 8.0.0.5 Sistemas operacionais: AIX, HP-Itanium, Linux, Solaris, Windows, z/OS

Consulte as informações sobre a versão mais recente do produto em IBM Integration Bus, Versão 9.0

Tabelas de Mapeamento de Tipos de Dados ESQL a .NET

Tabelas que resumem os mapeamentos de ESQL para .NET.

As tabelas a seguir resumem os mapeamentos de ESQL para uma seleção de linguagens .NET, incluindo os tipos de base CLR .NET.
Tabela 1. Mapeamento de Tipos de Dados Nativos Common Language Runtime (CLR)
Broker Tipo 1 CLR Tipo 1 Broker Tipo 2 CLR Tipo 2
Número Inteiro não Nulo Int64 Data não Nula DateTimeOffset
Número Inteiro Nullable<Int64> Data Nullable<DateTimeOffset>
Int não Nulo Int32 Horário não Nulo TimeSpan
Int Nullable<Int32> Hora Nullable<TimeSpan>
Decimal não Nulo Decimal Registro de Data e Hora não Nulo DateTimeOffset
Decimal Nullable<Decimal> Registro de Data e Hora Nullable<DateTimeOffset>
Flutuação não Nula Double Gmttime não Nulo TimeSpan
Flutuação Nullable<Double> Gmttime Nullable<TimeSpan>
Bit não Nulo BitArray Gmttimestamp não Nulo DataHora
Bit "" Gmttimestamp Nullable<DateTime>
Blob não Nulo Byte[] Intervalo não Nulo 1 TimeSpan
Blob "" Intervalo 1 Nullable<TimeSpan>
Caractere não Nulo Seqüência de caracteres Intervalo ANO – MÊS Não Suportado
Caractere ""    
Caractere não Nulo Char Referência não Nula NBElement
Caractere Nullable<Char> Referência ""
Booleano não Nulo Booleana    
Booleana Nullable<Boolean>    
  1. Dia - Hora - Minuto - Segundo

Tabela 2. Mapeamento de Tipo de Dados C#
Tipo de Broker Tipo C# (In) Tipo C# (Out) Tipo C# (Inout)
Número Inteiro não Nulo long out long ref long
Número Inteiro long? out long? ref long?
Int não Nulo int out int ref int
Int int? out int? ref int?
Decimal não Nulo decimal out decimal ref decimal
Decimal decimal? out decimal? ref decimal?
Flutuação não Nula double out double ref double
Flutuação double? out double? ref double?
Bit não Nulo BitArray out BitArray ref BitArray
Bit "" "" ""
Blob não Nulo Byte[] out Byte[] ref Byte[]
Blob "" "" ""
Caractere não Nulo cadeia out string ref string
Caractere "" "" ""
Caractere não Nulo char out char ref char
Caractere char? out char? ref char?
Booleano não Nulo bool out bool ref bool
Booleana bool? out bool? ref bool?
Data não Nula DateTimeOffset out DateTimeOffset ref DateTimeOffset
Data DateTimeOffset? out DateTimeOffset? ref DateTimeOffset?
Horário não Nulo TimeSpan out TimeSpan ref TimeSpan
Hora TimeSpan? out TimeSpan? ref TimeSpan?
Registro de Data e Hora não Nulo DateTimeOffset out DateTimeOffset ref DateTimeOffset
Registro de Data e Hora DateTimeOffset? out DateTimeOffset? ref DateTimeOffset?
Gmttime não Nulo TimeSpan out TimeSpan ref TimeSpan
Gmttime TimeSpan? out TimeSpan? ref TimeSpan?
Gmttimestamp não Nulo DataHora out DateTime ref DateTime
Gmttimestamp DateTime? out DateTime? ref DateTime?
Intervalo não Nulo 1 TimeSpan out TimeSpan ref TimeSpan
Intervalo 1 TimeSpan? out TimeSpan? ref TimeSpan?
Intervalo ANO - MÊS Não Suportado Não Suportado Não Suportado
Referência não Nula NBElement Não Suportado ref NBElement
Referência "" "" ""
  1. Dia - Hora - Minuto - Segundo

Tabela 3. Mapeamento de Tipo de Dados VB
Tipo de Broker Tipo VB (In) Tipo VB (Out) Tipo VB (Inout)
Número Inteiro não Nulo ByVal Long <Out()> ByRef Long ByRef Long
Número Inteiro ByVal Long? <Out()> ByRef Long? ByRef Long?
Int não Nulo ByVal Integer <Out()> ByRef Integer ByRef Integer
Int ByVal Integer? <Out()> ByRef Integer? ByRef Integer?
Decimal não Nulo ByVal Decimal <Out()> ByRef Decimal ByRef Decimal
Decimal ByVal Decimal? <Out()> ByRef Decimal? ByRef Decimal?
Flutuação não Nula ByVal Double <Out()> ByRef Double ByRef Double
Flutuação ByVal Double? <Out()> ByRef Double? ByRef Double?
Bit não Nulo ByVal BitArray <Out()> ByRef BitArray ByRef BitArray
Bit "" "" ""
Blob não Nulo ByVal Byte() <Out()> ByRef Byte() ByRef Byte()
Blob "" "" ""
Caractere não Nulo ByVal String <Out()> ByRef String ByRef String
Caractere "" "" ""
Caractere não Nulo ByVal Char <Out()> ByRef Char ByRef Char
Caractere ByVal Char? <Out()> ByRef Char? ByRef Char?
Booleano não Nulo ByVal Boolean <Out()> ByRef Boolean ByRef Boolean
Booleana ByVal Boolean? <Out()> ByRef Boolean? ByRef Boolean?
Data não Nula ByVal DateTimeOffset <Out()> ByRef DateTimeOffset ByRef DateTimeOffset
Data ByVal DateTimeOffset? <Out()> ByRef DateTimeOffset? ByRef DateTimeOffset?
Horário não Nulo ByVal TimeSpan <Out()> ByRef TimeSpan ByRef TimeSpan
Hora ByVal TimeSpan? <Out()> ByRef TimeSpan? ByRef TimeSpan?
Registro de Data e Hora não Nulo ByVal DateTimeOffset <Out()> ByRef DateTimeOffset ByRef DateTimeOffset
Registro de Data e Hora ByVal DateTimeOffset? <Out()> ByRef DateTimeOffset? ByRef DateTimeOffset?
Gmttime não Nulo ByVal TimeSpan <Out()> ByRef TimeSpan ByRef TimeSpan
Gmttime ByVal TimeSpan? <Out()> ByRef TimeSpan? ByRef TimeSpan?
Gmttimestamp não Nulo ByVal DateTime <Out()> ByRef DateTime ByRef DateTime
Gmttimestamp ByVal DateTime? <Out()> ByRef DateTime? ByRef DateTime?
Intervalo não Nulo 1 ByVal TimeSpan <Out()> ByRef TimeSpan ByRef TimeSpan
Intervalo 1 ByVal TimeSpan? <Out()> ByRef TimeSpan? ByRef TimeSpan?
Intervalo ANO - MÊS Não Suportado Não Suportado Não Suportado
Referência não Nula ByVal NBElement Não Suportado ByRef NBElement
Referência      
  1. Dia - Hora - Minuto - Segundo

Tabela 4. Mapeamento de Tipo de Dados F#
Tipo de Broker Tipo F# (In) Tipo F# (Out) Tipo F# (Inout)
Número Inteiro não Nulo int64 [<Out>] byref<int64> byref<int64>
Número Inteiro Nullable<int64> [<Out>] byref<Nullable<int64>> byref<Nullable<int64>>
Int não Nulo int [<Out>] byref<int> byref<int>
Int Nullable<int> [<Out>] byref<Nullable<int>> byref<Nullable<int>>
Decimal não Nulo decimal [<Out>] byref<decimal> byref<decimal>
Decimal Nullable<decimal> [<Out>] byref<Nullable<decimal>> byref<Nullable<decimal>>
Flutuação não Nula double [<Out>] byref<double> byref<double>
Flutuação Nullable<double> [<Out>] byref<Nullable<double>> byref<Nullable<double>>
Bit não Nulo BitArray [<Out>] byref<BitArray> byref<BitArray>
Bit "" "" ""
Blob não Nulo byte[] [<Out>] byref<byte[]> byref<byte[]>
Blob "" "" ""
Caractere não Nulo char [<Out>] byref<char> byref<char>
Caractere "" "" ""
Caractere não Nulo cadeia [<Out>] byref<string> byref<string>
Caractere Nullable<char> [<Out>] byref<Nullable<char>> byref<Nullable<char>>
Booleano não Nulo bool [<Out>] byref<bool> byref<bool>
Booleana Nullable<bool> [<Out>] byref<Nullable<bool>> byref<Nullable<bool>>
Data não Nula DateTimeOffset [<Out>] byref<DateTimeOffset> byref<DateTimeOffset>
Data Nullable<DateTimeOffset> [<Out>] byref<Nullable<DateTimeOffset>> byref<Nullable<DateTimeOffset>>
Horário não Nulo TimeSpan [<Out>] byref<TimeSpan> byref<TimeSpan>
Hora Nullable<TimeSpan> [<Out>] byref <Nullable<TimeSpan>> byref<Nullable<TimeSpan>>
Registro de Data e Hora não Nulo DateTimeOffset [<Out>] byref<DateTimeOffset> byref<DateTimeOffset>
Registro de Data e Hora Nullable<DateTimeOffset> [<Out>] byref<Nullable<DateTimeOffset>> byref<Nullable<DateTimeOffset>>
Gmttime não Nulo TimeSpan [<Out>] byref<TimeSpan> byref<TimeSpan>
Gmttime Nullable<TimeSpan> [<Out>] byref<Nullable<TimeSpan>> byref<Nullable<TimeSpan>>
Gmttimestamp não Nulo DataHora [<Out>] byref<DateTime> byref<DateTime>
Gmttimestamp Nullable<DateTime> [<Out>] byref<Nullable<DateTime>> byref<Nullable<DateTime>>
Intervalo não Nulo 1 TimeSpan [<Out>] byref<TimeSpan> byref<TimeSpan>
Intervalo 1 Nullable<TimeSpan> [<Out>] byref<Nullable<TimeSpan>> byref<Nullable<TimeSpan>>
Intervalo ANO - MÊS Não Suportado Não Suportado Não Suportado
Referência não Nula NBElement Não Suportado byref<NBElement>
Referência "" "" ""
  1. Dia - Hora - Minuto - Segundo

Tabela 5. Mapeamento de Tipo de Dados C++ / CLI
Tipo de Broker Tipo CPP (In) Tipo CPP (Out) Tipo CPP (Inout)
Número Inteiro não Nulo long long [Out] long long% long long%
Número Inteiro Nullable<long long> [Out] Nullable<long long>% Nullable<long long>%
Int não Nulo int [Out] int% int%
Int Nullable<int> [Out] Nullable<int>% Nullable<int>%
Decimal não Nulo Decimal [Out] Decimal% Decimal%
Decimal Nullable<Decimal> [Out] Nullable<Decimal>% Nullable<Decimal>%
Flutuação não Nula double [Out] double% double%
Flutuação Nullable<double> [Out] Nullable<double>% Nullable<double>%
Bit não Nulo BitArray^ [Out] BitArray^% BitArray^%
Bit "" "" ""
Blob não Nulo array<unsigned char>^ [Out] array<unsigned char>^% array<unsigned char>^%
Blob "" "" ""
Caractere não Nulo String^ [Out] String^% String^%
Caractere "" "" ""
Caractere não Nulo wchar_t [Out] wchar_t% wchar_t%
Caractere Nullable<wchar_t> [Out] Nullable<wchar_t>% Nullable<wchar_t>%
Booleano não Nulo bool [Out] bool% bool%
Booleana Nullable<bool> [Out] Nullable<bool>% Nullable<bool>%
Data não Nula DateTimeOffset [Out] DateTimeOffset% DateTimeOffset%
Data Nullable<DateTimeOffset> [Out] Nullable<DateTimeOffset>% Nullable<DateTimeOffset>%
Horário não Nulo TimeSpan [Out] TimeSpan% TimeSpan%
Hora Nullable<TimeSpan> [Out] Nullable<TimeSpan>% Nullable<TimeSpan>%
Registro de Data e Hora não Nulo DateTimeOffset [Out] DateTimeOffset% DateTimeOffset%
Registro de Data e Hora Nullable<DateTimeOffset> [Out] Nullable<DateTimeOffset>% Nullable<DateTimeOffset>%
Gmttime não Nulo TimeSpan [Out] TimeSpan% TimeSpan%
Gmttime Nullable<TimeSpan> [Out] Nullable<TimeSpan>% Nullable<TimeSpan>%
Gmttimestamp não Nulo DataHora [Out] DateTime% DateTime%
Gmttimestamp Nullable<DateTime> [Out] Nullable<DateTime>% Nullable<DateTime>%
Intervalo não Nulo 1 TimeSpan [Out] TimeSpan% TimeSpan%
Intervalo 1 Nullable<TimeSpan> [Out] Nullable<TimeSpan>% Nullable<TimeSpan>%
Intervalo ANO - MÊS Não Suportado Não Suportado Não Suportado
Referência NBElement^ Não Suportado NBElement^%
  "" "" ""
  1. Dia - Hora - Minuto - Segundo

Tabela 6. Mapeamento de Tipo de Dados JScript V10.0
Broker Tipo 1 JScript Tipo 1 Broker Tipo 2 JScript Tipo 2
Número Inteiro não Nulo long Data não Nula DateTimeOffset
Int não Nulo int Horário não Nulo TimeSpan
Decimal não Nulo decimal Registro de Data e Hora não Nulo DateTimeOffset
Flutuação não Nula double Gmttime não Nulo TimeSpan
Bit não Nulo BitArray Gmttimestamp não Nulo DataHora
Blob não Nulo byte[] Intervalo não Nulo 1 TimeSpan
Caractere não Nulo Seqüência de caracteres Intervalo ANO - MÊS Não Suportado
Caractere não Nulo Char Referência não Nula NBElement
Booleano não Nulo Booleano    
  1. Dia - Hora - Minuto - Segundo
Nota: O JScript não pode suportar tipos anuláveis.

As variáveis que são declaradas como CONSTANT (ou referências a variáveis que são declaradas CONSTANT) não têm permissão para terem a direção INOUT ou OUT.

Se um valor for muito grande para o .NET de destino, o tipo de dados é passado como um parâmetro para uma rotina .NET, uma exceção é lançada. Essa exceção pode ocorrer no caso de um parâmetro INT ter passado um valor maior do que o valor int sinalizado no .NET (2^31-1) ou no caso de um parâmetro CHAR ter passado mais de um caractere.

Se um valor NULL for passado como um parâmetro para uma rotina .NET, em que o parâmetro é marcado como NOT NULL, uma exceção será lançada.

Uma REFERÊNCIA a uma variável escalar pode ser usada na CHAMADA de um método .NET, se o tipo de dados da variável à qual a referência se refere corresponder ao tipo de dados da assinatura do método .NET.

Avisos | Marcas Registradas | Downloads | Biblioteca | Suporte | Feedback

Copyright IBM Corporation 1999, 2014Copyright IBM Corporation 1999, 2014.

        
        Última atualização:
        
        Última atualização: 2015-02-28 18:31:32


Tópico de ReferênciaTópico de Referência | Versão 8.0.0.5 | bk58020_