Class Reference
IRIS for UNIX 2024.1.2
InterSystems: The power behind what matters   
Documentation  Search
  [USER] >  [%Library] >  [SmallInt]
Private  Storage   

datatype class %Library.SmallInt extends %Integer

ODBC Type: SMALLINT

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

Inventory

Parameters Properties Methods Queries Indices ForeignKeys Triggers
3 3


Summary

Methods
DisplayToLogical IsValid LogicalToDisplay Normalize
XSDToLogical


Parameters

• parameter MAXVAL = 32767;
The maximum allowed logical value for the data type.
• parameter MINVAL = -32768;
The minimum allowed logical value for the data type.
• parameter XSDTYPE = "short";
Declares the XSD type used when projecting XML Schemas.

Methods

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


Copyright (c) 2025 by InterSystems Corporation. Cambridge, Massachusetts, U.S.A. All rights reserved. Confidential property of InterSystems Corporation.