org.eigenbase.sql.type
Class SqlTypeAssignmentRules
java.lang.Object
org.eigenbase.sql.type.SqlTypeAssignmentRules
public class SqlTypeAssignmentRules
- extends Object
Class to hold rules to determine if a type is assignable from another type.
REVIEW 7/05/04 Wael: We should split this up in Cast rules, symmetric and
asymmetric assignable rules
- Version:
- $Id: //open/dev/farrago/src/org/eigenbase/sql/type/SqlTypeAssignmentRules.java#20 $
- Author:
- Wael Chatila
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
instance
private static SqlTypeAssignmentRules instance
rules
private static Map<SqlTypeName,Set<SqlTypeName>> rules
coerceRules
private static Map<SqlTypeName,Set<SqlTypeName>> coerceRules
SqlTypeAssignmentRules
private SqlTypeAssignmentRules()
instance
public static SqlTypeAssignmentRules instance()
canCastFrom
public boolean canCastFrom(SqlTypeName to,
SqlTypeName from,
boolean coerce)
copy
private static <K,V> HashMap<K,V> copy(Map<K,V> map)
copy
private static <T> HashSet<T> copy(Set<T> set)