Using Caché Objects - InterSystems Documentation
Using Caché Objects - InterSystems Documentation
Using Caché Objects - InterSystems Documentation
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Data Types<br />
• INDEXSUBSCRIPTS — If present, specifies the number of subscripts used by the<br />
property in indices, using a comma as a delimiter in the property value; the %CacheStorage<br />
class uses this number. A value of 2 specifies that the first comma piece of the property<br />
value is stored as the first subscript and the second comma piece of the property value is<br />
stored as the second subscript.<br />
• MAXLEN — Specifies the maximum number of characters the string can contain<br />
• MAXVAL — Specifies the maximum allowed logical value for the data type.<br />
• MINLEN — Specifies the minimum number of characters the string can contain.<br />
• MINVAL — Specifies the minimum allowed logical value for the data type.<br />
• ODBCDELIMITER — Specifies the delimiter character used to construct a %List value<br />
when it is projected via ODBC.<br />
• PATTERN — Specifies a pattern that the string must match. The value of PATTERN<br />
must be a valid <strong>Caché</strong> pattern-matching expression.<br />
• SCALE — Specifies the number of digits following the decimal point.<br />
• TRUNCATE — Specifies whether to truncate string to MAXLEN characters, where 1<br />
is TRUE and 0 is FALSE.<br />
• VALUELIST — Used for enumerated (multiple-choice) properties. VALUELIST is<br />
either a null string (“”) or a delimiter-separated list (where the delimiter is the first character)<br />
of logical values. If a non-null value is present, then the property is restricted to<br />
values in the list, and the validation code simply checks to see if the value is in the list.<br />
• XSDTYPE — Declares the XSD type used when projecting XML Schemas.<br />
The supported parameters for each of the system data types are:<br />
Supported Parameters for System Data Type Classes<br />
Data Type Class<br />
%Binary<br />
Supported Parameters<br />
MAXLEN, MINLEN<br />
%Boolean<br />
%Currency<br />
%Date<br />
%Float<br />
DISPLAYLIST, FORMAT, MAXVAL, MINVAL, VALUELIST<br />
DISPLAYLIST, FORMAT, MAXVAL, MINVAL, VALUELIST<br />
DISPLAYLIST, FORMAT, MAXVAL, MINVAL, SCALE,<br />
VALUELIST, XSDTYPE<br />
92 <strong>Using</strong> <strong>Caché</strong> <strong>Objects</strong>