This is documentation for Caché & Ensemble.

For information on converting to InterSystems IRIS, see the InterSystems IRIS Adoption Guide and the InterSystems IRIS In-Place Conversion Guide, both available on the WRC Distributions page (login required).

Home > Class Reference > %SYS namespace > %Library.SmallInt

%Library.SmallInt

datatype class %Library.SmallInt extends %Library.Integer

ODBC Type: SMALLINT

The %SmallInt represents a small integer value. This implements the SmallInt ODBC datatype

Method Inventory (Including Private)

Parameters

parameter XSDTYPE = short;
Declares the XSD type used when projecting XML Schemas.

Methods (Including Private)

classmethod IsValid(%val As %CacheString) as %Status
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.
classmethod Normalize(%val As %CacheString) as %Integer
Converts %val to a normalized value.
classmethod XSDToLogical(%val As %String) as %SmallInt
Converts the SOAP encoded input decimal value into a Cache %SmallInt value. Returns "" for error.

Inherited Members

Inherited Methods (Including Private)