25.01.2015 Views

Using Caché Objects - InterSystems Documentation

Using Caché Objects - InterSystems Documentation

Using Caché Objects - InterSystems Documentation

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Data Types<br />

CLIENTDATATYPE Values<br />

Value<br />

BINARY<br />

CURRENCY<br />

DATE<br />

DOUBLE<br />

INTEGER<br />

LIST<br />

NUMERIC<br />

VARCHAR<br />

TIME<br />

TIMESTAMP<br />

Used for<br />

%Binary (or any property requiring that there is no Unicode<br />

conversion of data)<br />

%Currency<br />

%Date<br />

%Float<br />

%Boolean, %Integer<br />

%List<br />

%Numeric<br />

%Name, %String<br />

%Time<br />

%TimeStamp<br />

11.2.3.2 SQL and ODBC Methods<br />

Data type classes include a number of methods and class keywords designed to support<br />

interoperability with the <strong>Caché</strong> SQL relational database, as well as other relational databases.<br />

The OdbcToLogical and LogicalToOdbc methods translate logical data values to and from<br />

values used by the <strong>Caché</strong> SQL ODBC Interface. The ODBC value must match the ODBC<br />

type specified by the data type class' ODBCTYPE class keyword.<br />

The ODBCTYPE class keyword specifies the ODBC data type used when a property is projected<br />

to ODBC. The definition of the data type class specifies this value. Overriding it prevents<br />

a class from working properly with ODBC.<br />

The following ODBCTYPE values are used for the <strong>Caché</strong> system data types:<br />

94 <strong>Using</strong> <strong>Caché</strong> <strong>Objects</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!