public final class DataTypes
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
noNulls |
static int |
nullable |
static int |
nullableUnknown |
Constructor and Description |
---|
DataTypes() |
Modifier and Type | Method and Description |
---|---|
static int |
getDisplayLength(EClassifier type)
Returns the display length of the specified type.
|
static int |
getPrecision(EClassifier type)
Returns the maximum number of decimal digits of the specified type.
|
static int |
getScale(EClassifier type)
Returns the maximum number of digits to the right of the decimal
point of the specified type.
|
static int |
getType(EClassifier type)
Returns the data provider specific code of the specified type.
|
static java.lang.String |
getTypeName(EClassifier type)
Returns the data provider specific name of the specified type.
|
static int |
isNullable(EClassifier type)
Returns whether null values are allowed for the specified type.
|
public static final int nullableUnknown
public static final int noNulls
public static final int nullable
public static int getDisplayLength(EClassifier type)
type
- the typeorg.eclipse.datatools.connectivity.oda.IResultSetMetaData#getColumnDisplayLength(int)
public static int isNullable(EClassifier type)
type
- the typeorg.eclipse.datatools.connectivity.oda.IParameterMetaData#isNullable(int)
,
org.eclipse.datatools.connectivity.oda.IResultSetMetaData#isNullable(int)
public static int getPrecision(EClassifier type)
type
- the typeorg.eclipse.datatools.connectivity.oda.IParameterMetaData#getPrecision(int)
,
org.eclipse.datatools.connectivity.oda.IResultSetMetaData#getPrecision(int)
public static int getScale(EClassifier type)
type
- the typeorg.eclipse.datatools.connectivity.oda.IParameterMetaData#getScale(int)
,
org.eclipse.datatools.connectivity.oda.IResultSetMetaData#getScale(int)
public static int getType(EClassifier type) throws OdaException
type
- the typeOdaException
- if data source error occursorg.eclipse.datatools.connectivity.oda.IParameterMetaData#getParameterType(int)
,
org.eclipse.datatools.connectivity.oda.IResultSetMetaData#getColumnType(int)
public static java.lang.String getTypeName(EClassifier type) throws OdaException
type
- the typeOdaException
- if data source error occursorg.eclipse.datatools.connectivity.oda.IParameterMetaData#getParameterTypeName(int)
,
org.eclipse.datatools.connectivity.oda.IResultSetMetaData#getColumnTypeName(int)