FileDocCategorySizeDatePackage
NumericWrapperClassType.javaAPI DocGlassfish v2 API3229Fri May 04 22:35:08 BST 2007com.sun.jdo.spi.persistence.support.sqlstore.query.util.type

NumericWrapperClassType

public class NumericWrapperClassType extends WrapperClassType implements NumberType
author
Michael Bouschen
version
0.1

Fields Summary
Constructors Summary
public NumericWrapperClassType(String name, Class clazz, int enumType, PrimitiveType primitiveType, TypeTable typetab)

        super(name, clazz, enumType, primitiveType, typetab);
    
Methods Summary
public java.lang.NumbergetValue(java.lang.Number value)
Converts the specified value into a value of this numeric type. E.g. an Integer is converted into a Double, if this represents the numeric type double.

param
value value to be converted
return
converted value

        return ((NumericType)primitiveType).getValue(value);
    
public booleanisOrderable()
A numeric wrapper class type defines an ordering.

        return true;
    
public java.lang.Numbernegate(java.lang.Number value)
Returns -value.

param
value value to be negated
return
-value

        return ((NumericType)primitiveType).negate(value);