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 WrapperClassType
getWrapper()
boolean
isCompatibleWith(Type type)
Checks type compatibility.void
setWrapper(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:Type
Checks type compatibility.- Specified by:
isCompatibleWith
in 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)
-
-