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

PrimitiveType

public class PrimitiveType extends Type
Super class for boolean type, char type, and all numeric types.
author
Michael Bouschen
version
0.1

Fields Summary
protected WrapperClassType
wrapper
Constructors Summary
public PrimitiveType(String name, Class clazz, int enumType)

        super(name, clazz, enumType);
    
Methods Summary
public WrapperClassTypegetWrapper()

        return wrapper;
    
public booleanisCompatibleWith(Type type)

        if (type instanceof PrimitiveType)
            return ((PrimitiveType)type).clazz.isAssignableFrom(clazz);
        else
            return false;
    
public voidsetWrapper(WrapperClassType wrapper)

        this.wrapper = wrapper;