|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FarragoTypeFactory
FarragoTypeFactory is a Farrago-specific refinement of the RelDataTypeFactory interface.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.eigenbase.reltype.RelDataTypeFactory |
---|
RelDataTypeFactory.FieldInfo, RelDataTypeFactory.ListFieldInfo |
Method Summary | |
---|---|
RelDataType |
createCwmElementType(FemAbstractTypedElement element)
Creates a type which represents the datatype of a FemAbstractTypedElement. |
RelDataType |
createCwmType(CwmSqldataType cwmType)
Creates a type which represents a CwmSqldataType. |
RelDataType |
createJdbcColumnType(ResultSet getColumnsResultSet,
boolean substitute)
Creates a type which represents column metadata returned by the DatabaseMetaData.getColumns(java.lang.String, java.lang.String, java.lang.String, java.lang.String) call. |
RelDataType |
createJdbcColumnType(ResultSet getColumnsResultSet,
boolean substitute,
Properties typeMapping)
Creates a type which represents column metadata returned by the DatabaseMetaData.getColumns(java.lang.String, java.lang.String, java.lang.String, java.lang.String) call. |
RelDataType |
createMofType(StructuralFeature feature)
Creates a type which represents a MOF feature. |
RelDataType |
createResultSetType(ResultSetMetaData metaData,
boolean substitute)
Creates a type which represents the row datatype of a JDBC ResultSet. |
RelDataType |
createResultSetType(ResultSetMetaData metaData,
boolean substitute,
Properties typeMapping)
Creates a type which represents the row datatype of a JDBC ResultSet. |
RelDataType |
createStructTypeFromClassifier(CwmClassifier classifier)
Creates a type which represents a structured row based on a classifier definition from the catalog. |
Class |
getClassForJavaParamStyle(RelDataType type)
Looks up the Class specified by the JAVA parameter
style for user-defined routines. |
Class |
getClassForPrimitive(RelDataType type)
Looks up the Class representing a primitive used to
hold a value of the given type. |
FarragoRepos |
getRepos()
|
Expression |
getValueAccessExpression(RelDataType type,
Expression expr)
Constructs an OpenJava expression to access a value of an atomic type. |
Methods inherited from interface org.eigenbase.oj.OJTypeFactory |
---|
toOJClass, toType |
Methods inherited from interface org.eigenbase.reltype.RelDataTypeFactory |
---|
copyType, createArrayType, createDecimalProduct, createDecimalQuotient, createJavaType, createJoinType, createMultisetType, createSqlIntervalType, createSqlType, createSqlType, createSqlType, createStructType, createStructType, createStructType, createTypeWithCharsetAndCollation, createTypeWithNullability, getDefaultCharset, leastRestrictive, useDoubleMultiplication |
Method Detail |
---|
FarragoRepos getRepos()
RelDataType createCwmElementType(FemAbstractTypedElement element)
element
- CWM typed element
RelDataType createCwmType(CwmSqldataType cwmType)
cwmType
- CWM type instance
RelDataType createStructTypeFromClassifier(CwmClassifier classifier)
classifier
- definition of classifier
RelDataType createResultSetType(ResultSetMetaData metaData, boolean substitute)
metaData
- metadata for JDBC ResultSetsubstitute
- if true, use substitutions; if false, throw exception
for unsupported types or type attributes
RelDataType createResultSetType(ResultSetMetaData metaData, boolean substitute, Properties typeMapping)
metaData
- metadata for JDBC ResultSetsubstitute
- if true, use substitutions; if false, throw exception
for unsupported types or type attributestypeMapping
- types to substitute
RelDataType createJdbcColumnType(ResultSet getColumnsResultSet, boolean substitute)
DatabaseMetaData.getColumns(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
call. See createResultSetType(java.sql.ResultSetMetaData, boolean)
for
details on type substitutions.
getColumnsResultSet
- ResultSet
positioned on a row
returned from the getColumns call; result set position is unchanged by
this methodsubstitute
- if true, use substitutions; if false, throw exception
for unsupported types or type attributes
RelDataType createJdbcColumnType(ResultSet getColumnsResultSet, boolean substitute, Properties typeMapping)
DatabaseMetaData.getColumns(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
call. See createResultSetType(java.sql.ResultSetMetaData, boolean)
for
details on type substitutions.
getColumnsResultSet
- ResultSet
positioned on a row
returned from the getColumns call; result set position is unchanged by
this methodsubstitute
- if true, use substitutions; if false, throw exception
for unsupported types or type attributestypeMapping
- types to substitute
RelDataType createMofType(StructuralFeature feature)
feature
- MOF feature
Expression getValueAccessExpression(RelDataType type, Expression expr)
type
- atomic typeexpr
- expression representing site to be accessed
Class getClassForPrimitive(RelDataType type)
Class
representing a primitive used to
hold a value of the given type.
type
- value type
Class getClassForJavaParamStyle(RelDataType type)
Class
specified by the JAVA parameter
style for user-defined routines.
type
- SQL type
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |