DocBook|Search
Class Reference
%Library.Integer
   
Server:basexml
Instance:SOAXML
User:UnknownUser
 
-
  [%SYS] >  [%Library] >  [Integer]
Private  Storage  

datatype class %Library.Integer extends %DataType

ODBC Type: INTEGER

The %Integer data type class represents an integer value.

The logical value of the %Integer data type is an integer. The %Integer datatype does not have built-in limits. It is a hybrid datatype the values of which is not exact outside of a certain range (currently it is the same range as that of the 64-bit integer value). The current range for xDBC projections can be seen under Cache configuration/advanced. Its default corresponds to the usual signed 32-bit integer limits.

Inventory

Parameters Properties Methods Queries Indices ForeignKeys Triggers
6 5


Summary

Methods
DisplayToLogical IsValid LogicalToDisplay Normalize
XSDToLogical

Subclasses
%Activate.Enum %Library.BigInt %Library.Collate
%Library.Counter %Library.JournalRecordType %Library.JournalState
%Library.ShadowState %Library.ShadowType %Library.SmallInt
%Library.TinyInt %Monitor.Integer %Net.LDAP.Client.Search.Scope
%xsd.byte %xsd.int %xsd.integer
%xsd.long %xsd.negativeInteger %xsd.nonNegativeInteger
%xsd.nonPositiveInteger %xsd.positiveInteger %xsd.short
%xsd.unsignedByte %xsd.unsignedInt %xsd.unsignedLong
%xsd.unsignedShort SYS.DataCheck.RangeState SYS.DataCheck.StateReason
Security.Datatype.ApplicationType Security.Datatype.Authentication Security.Datatype.Permission
Security.Datatype.PrivateKeyType Security.Datatype.Protocol Security.Datatype.ResourceType
Security.Datatype.ServiceCapabilities

Parameters

• parameter DISPLAYLIST;
Used for enumerated (multiple-choice) attributes. Used in conjunction with the VALUELIST parameter for enumerated (multiple-choice) attributes. DISPLAYLIST, if not null, represents the display values for the attribute corresponding with the logical values listed in VALUELIST.

The display values are returned by the LogicalToDisplay method.

• parameter FORMAT;
The format specification for the data type's display value.

The value of FORMAT corresponds to the formatting option of the $FNUMBER function, which is used to perform the formatting.

• parameter MAXVAL;
The maximum allowed logical value for the data type.
• parameter MINVAL;
The minimum allowed logical value for the data type.
• parameter VALUELIST;
Used for enumerated (multiple-choice) attributes. VALUELIST is either a null string ("") or a delimiter separated list (where the delimiter is the first character) of logical values. If a non-null value is present, then the attribute is restricted to values in the list, and the validation code simply checks to see if the value is in the list.
• parameter XSDTYPE = "long";
Declares the XSD type used when projecting XML Schemas.

Methods

• classmethod DisplayToLogical(%val As %String) as %Integer
Converts the input value %val, which is a string representing an integer, into a logical integer value.

Returns the logical integer value of the input string %val.

• 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 LogicalToDisplay(%val As %Integer) as %String
Converts the value of %val, which is in logical integer format, into a display string. The formatting is based on the value of the FORMAT parameter.

Returns the formatted value of %val.

• classmethod Normalize(%val As %CacheString) as %Integer
Converts %val to a normalized value.
• classmethod XSDToLogical(%val As %String) as %Integer
Converts the SOAP encoded input decimal value into a Cache numeric value. Returns "" for error.