Distinct data types
A distinct type can map to the underlying base type or to a user-defined Java™ object. For example, a distinct type of INT can map to int or to a Java object that encapsulates the data representation. This Java object must implement the java.sql.SQLData interface. You must provide a custom type map as described in Mapping data types, to map this Java object to the corresponding SQL type name.