org.eclipse.emf.oda.ecore.impl
Class ResultSetMetaData
java.lang.Object
org.eclipse.emf.oda.ecore.impl.ResultSetMetaData
- All Implemented Interfaces:
- org.eclipse.datatools.connectivity.oda.IResultSetMetaData
- Direct Known Subclasses:
- ResultSetMetaData.EClass, ResultSetMetaData.EDataType
public abstract class ResultSetMetaData
- extends java.lang.Object
- implements org.eclipse.datatools.connectivity.oda.IResultSetMetaData
Implementation of IResultSetMetaData for EMF ODA runtime driver.
Fields inherited from interface org.eclipse.datatools.connectivity.oda.IResultSetMetaData |
columnNoNulls, columnNullable, columnNullableUnknown |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.datatools.connectivity.oda.IResultSetMetaData |
getColumnCount, getColumnName |
ResultSetMetaData
protected ResultSetMetaData()
create
public static org.eclipse.datatools.connectivity.oda.IResultSetMetaData create(EClassifier type)
- Creates result set metadata of the appropriate kind, depending on whether the specified
type is a class or a data type.
- Parameters:
type
- the type of objects result set described by the new metadata
- Returns:
- result set metadata of the appropriate kind
checkBounds
protected int checkBounds(int index)
throws org.eclipse.datatools.connectivity.oda.OdaException
- Checks that the specified index is within the appropriate bounds.
- Parameters:
index
- the 1-based index
- Returns:
- the index
- Throws:
org.eclipse.datatools.connectivity.oda.OdaException
- if index is not within the bounds
getColumnLabel
public java.lang.String getColumnLabel(int index)
throws org.eclipse.datatools.connectivity.oda.OdaException
- Specified by:
getColumnLabel
in interface org.eclipse.datatools.connectivity.oda.IResultSetMetaData
- Throws:
org.eclipse.datatools.connectivity.oda.OdaException
getColumnClassifier
protected abstract EClassifier getColumnClassifier(int index)
throws org.eclipse.datatools.connectivity.oda.OdaException
- Throws:
org.eclipse.datatools.connectivity.oda.OdaException
getColumnType
public int getColumnType(int index)
throws org.eclipse.datatools.connectivity.oda.OdaException
- Specified by:
getColumnType
in interface org.eclipse.datatools.connectivity.oda.IResultSetMetaData
- Throws:
org.eclipse.datatools.connectivity.oda.OdaException
getColumnTypeName
public java.lang.String getColumnTypeName(int index)
throws org.eclipse.datatools.connectivity.oda.OdaException
- Specified by:
getColumnTypeName
in interface org.eclipse.datatools.connectivity.oda.IResultSetMetaData
- Throws:
org.eclipse.datatools.connectivity.oda.OdaException
getColumnDisplayLength
public int getColumnDisplayLength(int index)
throws org.eclipse.datatools.connectivity.oda.OdaException
- Specified by:
getColumnDisplayLength
in interface org.eclipse.datatools.connectivity.oda.IResultSetMetaData
- Throws:
org.eclipse.datatools.connectivity.oda.OdaException
getPrecision
public int getPrecision(int index)
throws org.eclipse.datatools.connectivity.oda.OdaException
- Specified by:
getPrecision
in interface org.eclipse.datatools.connectivity.oda.IResultSetMetaData
- Throws:
org.eclipse.datatools.connectivity.oda.OdaException
getScale
public int getScale(int index)
throws org.eclipse.datatools.connectivity.oda.OdaException
- Specified by:
getScale
in interface org.eclipse.datatools.connectivity.oda.IResultSetMetaData
- Throws:
org.eclipse.datatools.connectivity.oda.OdaException
isNullable
public int isNullable(int index)
throws org.eclipse.datatools.connectivity.oda.OdaException
- Specified by:
isNullable
in interface org.eclipse.datatools.connectivity.oda.IResultSetMetaData
- Throws:
org.eclipse.datatools.connectivity.oda.OdaException