Class Reference
IRIS for UNIX 2019.2
InterSystems: The power behind what matters   
Documentation  Search
  [%SYS] >  [%Library] >  [TinyInt]
Private  Storage   

datatype class %Library.TinyInt extends %Integer

ODBC Type: TINYINT

The %TinyInt represents a tiny integer value.

This is identical to the %Integer data type with the exception that it has odbctype of TINYINT, a default MAXVAL parameter value of 127, and a default MINVAL parameter value of -128.

Inventory

Parameters Properties Methods Queries Indices ForeignKeys Triggers
3 2


Summary

Methods
DisplayToLogical IsValid LogicalToDisplay Normalize
XSDToLogical


Parameters

• parameter MAXVAL = 127;
The maximum allowed logical value for the data type.
• parameter MINVAL = -128;
The minimum allowed logical value for the data type.
• parameter XSDTYPE = "byte";
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 XSDToLogical(%val As %String) as %TinyInt
Converts the SOAP encoded input decimal value into a %TinyInt value. Returns "" for error.


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