| java.lang.Object org.apache.derby.impl.sql.compile.BaseTypeCompiler org.apache.derby.impl.sql.compile.UserDefinedTypeCompiler
comparable | public boolean comparable(TypeId otherType, boolean forEquals, ClassFactory cf)(Code) | | User types are comparable to other user types only if
(for now) they are the same type and are being used to
implement some JDBC type. This is sufficient for
date/time types; it may be generalized later for e.g.
comparison of any user type with one of its subtypes.
Parameters: otherType - the type of the instance to compare with this type. Parameters: forEquals - True if this is an = or <> comparison, falseotherwise. Parameters: cf - A ClassFactory true if otherType is comparable to this type, else false. |
convertible | public boolean convertible(TypeId otherType, boolean forDataTypeFunction)(Code) | | User types are convertible to other user types only if
(for now) they are the same type and are being used to
implement some JDBC type. This is sufficient for
date/time types; it may be generalized later for e.g.
comparison of any user type with one of its subtypes.
Parameters: otherType - Parameters: forDataTypeFunction - true if otherType is convertible to this type, else false. See Also: TypeCompiler.convertible |
storable | public boolean storable(TypeId otherType, ClassFactory cf)(Code) | | User types are storable into other user types that they
are assignable to. The other type must be a subclass of
this type, or implement this type as one of its interfaces.
Built-in types are also storable into user types when the built-in
type's corresponding Java type is assignable to the user type.
Parameters: otherType - the type of the instance to store into this type. Parameters: cf - A ClassFactory true if otherType is storable into this type, else false. |
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)
|
|
|