Using Caché Objects - InterSystems Documentation
Using Caché Objects - InterSystems Documentation
Using Caché Objects - InterSystems Documentation
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
11<br />
Data Types<br />
<strong>Caché</strong> supports a number of data types for variables, where each data type is itself a class.<br />
Each data type class represents a specific literal type, such as a string or integer. These data<br />
type classes determine the behavior of both object properties and fields in relational tables.<br />
<strong>Caché</strong> also allows you to create your own data types.<br />
Data type classes provide the following features:<br />
• They provide for SQL, ODBC, ActiveX, and Java interoperability by providing SQL<br />
logical operation, client data type, and translation information.<br />
• They provide validation for literal data values, which you can extend or customize by<br />
using data type class parameters.<br />
• They manage the translation of literal data for its stored (on disk), logical (in memory),<br />
and display formats.<br />
Data type classes differ from other classes in a number of ways:<br />
• They cannot be instantiated or stored independently.<br />
• They cannot contain properties.<br />
• They support a specific set of methods (called the data type interface), which is described<br />
below.<br />
<strong>Using</strong> <strong>Caché</strong> <strong>Objects</strong> 89