Exemple #1
0
 /// <summary>
 /// Adds instances of type handlers to the internal cache.
 /// </summary>
 static TypeHandlerFactory()
 {
     CACHE[typeof(Boolean)]  = new BooleanTypeHandler();
     CACHE[typeof(Char)]     = new CharTypeHandler();
     CACHE[typeof(DateTime)] = new DateTimeTypeHandler();
     CACHE[typeof(Decimal)]  = new DecimalTypeHandler();
     CACHE[typeof(Double)]   = new DoubleTypeHandler();
     CACHE[typeof(float)]    = new FloatTypeHandler();
     CACHE[typeof(int)]      = new IntegerTypeHandler();
     CACHE[typeof(long)]     = new LongTypeHandler();
     CACHE[typeof(short)]    = new ShortTypeHandler();
 }
Exemple #2
0
 public BaseDecimal()
 {
     this.TypeHandler = DecimalTypeHandler.getInstance();
 }