Skip to main content

%Library.BigInt

Class %Library.BigInt Extends %Integer [ ClientDataType = BIGINT, OdbcType = BIGINT, System = 2 ]

The %BigInt represents a 64 bit integer value.

This is identical to the %Integer data type with the exception that it has odbctype of BIGINT.

Parameters

MAXVAL

Parameter MAXVAL As INTEGER = 9223372036854775807;

The maximum allowed logical value for the data type.

MINVAL

Parameter MINVAL As INTEGER = -9223372036854775808;

The minimum allowed logical value for the data type.

XSDTYPE

Parameter XSDTYPE = "long";

Declares the XSD type used when projecting XML Schemas.

Methods

XSDToLogical

ClassMethod XSDToLogical(%val As %String) As %BigInt [ CodeMode = generator ]

Converts the SOAP encoded input decimal value into a %BiglInt value. Returns "" for error.

Normalize

ClassMethod Normalize(%val As %RawString) As %Integer [ ServerOnly = 1 ]

Converts %val to a normalized value.

IsValid

ClassMethod IsValid(%val As %RawString) As %Status [ CodeMode = generator, ServerOnly = 0 ]

Tests if the logical value %val, which is an integer value, is valid. The validation is based on the class parameter settings used for the class attribute this data type is associated with. In this case, MAXVAL and MINVAL.