org.eclipse.datatools.connectivity.oda.util.manifest
Class DataTypeMapping

java.lang.Object
  extended byorg.eclipse.datatools.connectivity.oda.util.manifest.DataTypeMapping

public class DataTypeMapping
extends java.lang.Object

A single mapping from a data provider's native data type to one or more ODA data types. A single native data type must be mapped to a primary ODA scalar data type. The driver can optionally provide a list of alternate ODA data types to which it is capable of converting the native data type.


Method Summary
 java.lang.String[] getAlternativeOdaDataTypes()
          Returns the alternative ODA data types of the data type mapping, or an empty array if no alternative ODA data types exist.
 java.lang.String getNativeType()
          Returns the native type name of the data type mapping.
 int getNativeTypeCode()
          Returns the native type code of the data type mapping.
 java.lang.String getOdaScalarDataType()
          Returns the primary ODA scalar data type which the native type maps to
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getNativeType

public java.lang.String getNativeType()
Returns the native type name of the data type mapping.

Returns:
the native type name.

getNativeTypeCode

public int getNativeTypeCode()
Returns the native type code of the data type mapping. Its value must match one of the data type codes returned in the driver's ODA interface implementation.

Returns:
the native type code.

getOdaScalarDataType

public java.lang.String getOdaScalarDataType()
Returns the primary ODA scalar data type which the native type maps to

Returns:
the primary ODA scalar data type.

getAlternativeOdaDataTypes

public java.lang.String[] getAlternativeOdaDataTypes()
Returns the alternative ODA data types of the data type mapping, or an empty array if no alternative ODA data types exist.

Returns:
the alternative ODA data types, or an empty array if no alternative ODA data types exist.


Copyright © 2006 Actuate, IBM Corporation, Sybase, Inc. and others. All rights reserved.