Skip to main content

This is documentation for Caché & Ensemble.

For information on converting to InterSystems IRIS, see the InterSystems IRIS Adoption Guide and the InterSystems IRIS In-Place Conversion Guide, both available on the WRC Distributions page (login required).

Previous sectionNext section

OdbcType

Specifies the type used when this data type is exposed via ODBC or JDBC. Every data type class must specify an ODBC type. This keyword applies only to data type classes.

Usage

To specify the type to use when this data type is projected via ODBC or JDBC, use the following syntax:

Class MyApp.MyString [ ClassType = DataType, OdbcType = odbctype ]  { //class members }

Where odbctype is one of the following:

  • BIGINT
  • BIT
  • DATE
  • DOUBLE
  • INTEGER
  • LONGVARBINARY
  • LONGVARCHAR
  • NUMERIC
  • RESULTSET
  • SMALLINT
  • STRUCT
  • TIME
  • TIMESTAMP
  • TINYINT
  • VARBINARY
  • VARCHAR (default)

Details

This keyword specifies the type used when exposed via ODBC or JDBC.

Every data type class must specify an ODBC type.

Effect on Subclasses

This keyword is inherited from the primary superclass. The subclass can override the value of the keyword.

Default

If you omit this keyword, the ODBC type is VARCHAR.

See Also