| java.lang.Object org.apache.derby.impl.sql.compile.BaseTypeCompiler org.apache.derby.impl.sql.compile.CharTypeCompiler
CharTypeCompiler | final public class CharTypeCompiler extends BaseTypeCompiler (Code) | | This class implements TypeCompiler for the SQL char datatypes.
author: Jeff Lichtman |
comparable | public boolean comparable(TypeId otherType, boolean forEquals, ClassFactory cf)(Code) | | Tell whether this type (char) can be compared to the given type.
Long types can not be compared.
VARCHAR AND CHAR can be compared to CHAR/VARCHAR/DATE/TIME/TIMESTAMP
Parameters: otherType - The TypeId of the other type. |
compatible | public boolean compatible(TypeId otherType)(Code) | | Tell whether this type (char) is compatible with the given type.
Parameters: otherType - The TypeId of the other type. |
convertible | public boolean convertible(TypeId otherType, boolean forDataTypeFunction)(Code) | | Tell whether this type (char) can be converted to the given type.
See Also: TypeCompiler.convertible |
dataValueMethodName | protected String dataValueMethodName()(Code) | | |
storable | public boolean storable(TypeId otherType, ClassFactory cf)(Code) | | Tell whether this type (char) can be stored into from the given type.
Parameters: otherType - The TypeId of the other type. Parameters: cf - A ClassFactory |
Methods inherited from org.apache.derby.impl.sql.compile.BaseTypeCompiler | protected String dataValueMethodName()(Code)(Java Doc) public void generateDataValue(MethodBuilder mb, LocalField field)(Code)(Java Doc) public void generateNull(MethodBuilder mb)(Code)(Java Doc) public String getMatchingNationalCharTypeName()(Code)(Java Doc) public String getPrimitiveMethodName()(Code)(Java Doc) protected int getStoredFormatIdFromTypeId()(Code)(Java Doc) protected TypeCompiler getTypeCompiler(TypeId typeId)(Code)(Java Doc) protected TypeId getTypeId()(Code)(Java Doc) abstract protected String nullMethodName()(Code)(Java Doc) public boolean numberComparable(TypeId otherType, boolean forEquals, ClassFactory cf)(Code)(Java Doc) public boolean numberConvertible(TypeId otherType, boolean forDataTypeFunction)(Code)(Java Doc) public boolean numberStorable(TypeId thisType, TypeId otherType, ClassFactory cf)(Code)(Java Doc) public DataTypeDescriptor resolveArithmeticOperation(DataTypeDescriptor leftType, DataTypeDescriptor rightType, String operator) throws StandardException(Code)(Java Doc) void setTypeId(TypeId typeId)(Code)(Java Doc) protected boolean userTypeStorable(TypeId thisType, TypeId otherType, ClassFactory cf)(Code)(Java Doc)
|
|
|