1 23 24 29 30 package com.sun.jdo.spi.persistence.support.sqlstore.query.util.type; 31 32 37 public class NumericWrapperClassType 38 extends WrapperClassType 39 implements NumberType 40 { 41 44 public NumericWrapperClassType(String name, Class clazz, int enumType, 45 PrimitiveType primitiveType, TypeTable typetab) 46 { 47 super(name, clazz, enumType, primitiveType, typetab); 48 } 49 50 53 public boolean isOrderable() 54 { 55 return true; 56 } 57 58 65 public Number getValue(Number value) 66 { 67 return ((NumericType)primitiveType).getValue(value); 68 } 69 70 75 public Number negate(Number value) 76 { 77 return ((NumericType)primitiveType).negate(value); 78 } 79 } 80 | Popular Tags |