Class PrimitiveType
- java.lang.Object
-
- com.sun.jdo.spi.persistence.support.sqlstore.query.util.type.Type
-
- com.sun.jdo.spi.persistence.support.sqlstore.query.util.type.PrimitiveType
-
- Direct Known Subclasses:
BooleanType,NumericType
public class PrimitiveType extends Type
Super class for boolean type, char type, and all numeric types.- Version:
- 0.1
- Author:
- Michael Bouschen
-
-
Constructor Summary
Constructors Constructor Description PrimitiveType(String name, Class clazz, int enumType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WrapperClassTypegetWrapper()booleanisCompatibleWith(Type type)Checks type compatibility.voidsetWrapper(WrapperClassType wrapper)-
Methods inherited from class com.sun.jdo.spi.persistence.support.sqlstore.query.util.type.Type
equals, getEnumType, getJavaClass, getName, isOrderable, toString
-
-
-
-
Field Detail
-
wrapper
protected WrapperClassType wrapper
-
-
Method Detail
-
isCompatibleWith
public boolean isCompatibleWith(Type type)
Description copied from class:TypeChecks type compatibility.- Specified by:
isCompatibleWithin classType- Parameters:
type- the type this is checked with.- Returns:
- true if this is compatible with type; false otherwise.
-
getWrapper
public WrapperClassType getWrapper()
-
setWrapper
public void setWrapper(WrapperClassType wrapper)
-
-