InterSystems IRIS Data Platform 2020.4 > Class Reference > ENSLIB namespace > %Library.Collate

%Library.Collate

datatype class %Library.Collate extends %Library.Integer

ODBC Type: INTEGER

Datatype to handle validation/display of system collations

Method Inventory

Methods

classmethod DisplayToLogical(CollationName As %String, Flag As %Integer = 0) as %Integer [ Language = objectscript ]
Convert external collation name or abbreviation to internal number.
Flag = 0 - Name to number (default)
Flag = 1 - Abbreviation to number
Flag = 2 - Name or Abbreviation to number
classmethod GetLocalName() as %String [ Language = objectscript ]
Return the name of the collation used in local arrays by the current process
classmethod GetLocalNumber() as %Integer [ Language = objectscript ]
Return the number of the collation used in local arrays by the current process (e.g. 5)
classmethod GetSystemDefaultName() as %String [ Language = objectscript ]
Return the System default collation name.
classmethod GetSystemDefaultNumber() as %String [ Language = objectscript ]
Return the System default collation number.
classmethod LogicalToDisplay(CollationNumber As %Integer, Flag As %Integer = 0) as %String [ Language = objectscript ]
Convert internal collation number to external name or abbreviation.
Flag = 0 - Number to name (default)
Flag = 1 - Number to abbreviation
Flag = 2 - Show Old collations
classmethod SetLocalName(col As %String) as %Status [ Language = objectscript ]
Set the collation used by the current process in local arrays
col = collation name
classmethod SetLocalNumber(col As %Integer) as %Status [ Language = objectscript ]
Set the collation used by the current process in local arrays
col = collation number (e.g. 5)

Inherited Members

Inherited Methods

Feedback