|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eigenbase.reltype.RelDataTypeImpl
org.eigenbase.reltype.RelDataTypeFactoryImpl.JavaType
protected class RelDataTypeFactoryImpl.JavaType
Type which is based upon a Java class.
| Field Summary | |
|---|---|
private Charset |
charset
|
private Class |
clazz
|
private SqlCollation |
collation
|
private boolean |
isNullable
|
| Fields inherited from class org.eigenbase.reltype.RelDataTypeImpl |
|---|
digest, fieldList, fields |
| Constructor Summary | |
|---|---|
RelDataTypeFactoryImpl.JavaType(Class clazz)
|
|
RelDataTypeFactoryImpl.JavaType(Class clazz,
boolean nullable)
|
|
RelDataTypeFactoryImpl.JavaType(Class clazz,
boolean nullable,
Charset charset,
SqlCollation collation)
|
|
| Method Summary | |
|---|---|
protected void |
generateTypeString(StringBuilder sb,
boolean withDetail)
Generates a string representation of this type. |
Charset |
getCharset()
Gets this type's character set, or null if this type cannot carry a character set or has no character set defined. |
SqlCollation |
getCollation()
Gets this type's collation, or null if this type cannot carry a collation or has no collation defined. |
RelDataType |
getComponentType()
Gets the component type if this type is a collection, otherwise null. |
Class |
getJavaClass()
|
SqlTypeName |
getSqlTypeName()
Gets the SqlTypeName of this type. |
boolean |
isNullable()
Queries whether this type allows null values. |
| Methods inherited from class org.eigenbase.reltype.RelDataTypeImpl |
|---|
computeDigest, equals, getComparability, getFamily, getField, getFieldCount, getFieldList, getFieldOrdinal, getFields, getFullTypeString, getIntervalQualifier, getPrecedenceList, getPrecision, getScale, getSqlIdentifier, hashCode, isStruct, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private final Class clazz
private boolean isNullable
private SqlCollation collation
private Charset charset
| Constructor Detail |
|---|
public RelDataTypeFactoryImpl.JavaType(Class clazz)
public RelDataTypeFactoryImpl.JavaType(Class clazz,
boolean nullable)
public RelDataTypeFactoryImpl.JavaType(Class clazz,
boolean nullable,
Charset charset,
SqlCollation collation)
| Method Detail |
|---|
public Class getJavaClass()
public boolean isNullable()
RelDataType
isNullable in interface RelDataTypeisNullable in class RelDataTypeImpl
protected void generateTypeString(StringBuilder sb,
boolean withDetail)
RelDataTypeImpl
generateTypeString in class RelDataTypeImplsb - StringBuffer into which to generate the stringwithDetail - when true, all detail information needed to compute a
unique digest (and return from getFullTypeString) should be included;public RelDataType getComponentType()
RelDataType
getComponentType in interface RelDataTypegetComponentType in class RelDataTypeImpl
public Charset getCharset()
throws RuntimeException
RelDataType
getCharset in interface RelDataTypegetCharset in class RelDataTypeImplRuntimeException
public SqlCollation getCollation()
throws RuntimeException
RelDataType
getCollation in interface RelDataTypegetCollation in class RelDataTypeImplRuntimeExceptionpublic SqlTypeName getSqlTypeName()
RelDataTypeSqlTypeName of this type.
getSqlTypeName in interface RelDataTypegetSqlTypeName in class RelDataTypeImpl
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||