|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.emf.oda.ecore.impl.DataTypes
public final class DataTypes
Defines the data types that are supported by EMF ODA runtime driver.
Field Summary | |
---|---|
static int |
noNulls
|
static int |
nullable
|
static int |
nullableUnknown
|
Constructor Summary | |
---|---|
DataTypes()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int nullableUnknown
public static final int noNulls
public static final int nullable
Constructor Detail |
---|
public DataTypes()
Method Detail |
---|
public static int getDisplayLength(EClassifier type)
type
- the type
IResultSetMetaData.getColumnDisplayLength(int)
public static int isNullable(EClassifier type)
type
- the type
IParameterMetaData.isNullable(int)
,
IResultSetMetaData.isNullable(int)
public static int getPrecision(EClassifier type)
type
- the type
IParameterMetaData.getPrecision(int)
,
IResultSetMetaData.getPrecision(int)
public static int getScale(EClassifier type)
type
- the type
IParameterMetaData.getScale(int)
,
IResultSetMetaData.getScale(int)
public static int getType(EClassifier type) throws org.eclipse.datatools.connectivity.oda.OdaException
type
- the type
org.eclipse.datatools.connectivity.oda.OdaException
- if data source error occursIParameterMetaData.getParameterType(int)
,
IResultSetMetaData.getColumnType(int)
public static java.lang.String getTypeName(EClassifier type) throws org.eclipse.datatools.connectivity.oda.OdaException
type
- the type
org.eclipse.datatools.connectivity.oda.OdaException
- if data source error occursIParameterMetaData.getParameterTypeName(int)
,
IResultSetMetaData.getColumnTypeName(int)
|
Copyright 2001-2006 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |