|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jdo.impl.model.java.AbstractJavaType
org.apache.jdo.impl.model.java.BaseReflectionJavaType
org.apache.jdo.impl.model.java.PredefinedType
org.apache.jdo.impl.model.java.PrimitiveType
A PrimitiveType instance represents a primitive type as defined in the
Java language. There are eight primitive types: boolean
,
byte
, short
, int
,
long
, char
,
float
, double
.
Class PredefinedType provides public static final variables referring to the JavaType representation for primtive types.
PredefinedType.booleanType
,
PredefinedType.byteType
,
PredefinedType.shortType
,
PredefinedType.intType
,
PredefinedType.longType
,
PredefinedType.charType
,
PredefinedType.floatType
,
PredefinedType.doubleType
Field Summary | |
private WrapperClassType |
wrapperClassType
The JavaType of the corresponding Java wrapper class type. |
Fields inherited from class org.apache.jdo.impl.model.java.PredefinedType |
abstractCollectionType, abstractListType, abstractMapType, abstractSetType, arrayListType, bigDecimalType, bigIntegerType, bitsetType, booleanClassType, booleanType, byteClassType, byteType, characterClassType, charType, collectionType, dateType, dictionaryType, doubleClassType, doubleType, floatClassType, floatType, hashMapType, hashSetType, hashtableType, integerClassType, intType, linkedListType, listType, localeType, longClassType, longType, mapType, numberType, objectType, propertiesType, setType, shortClassType, shortType, sqlDateType, sqlTimestampType, sqlTimeType, stackType, stringType, treeMapType, treeSetType, vectorType, voidType |
Fields inherited from class org.apache.jdo.impl.model.java.BaseReflectionJavaType |
clazz, superclass |
Constructor Summary | |
protected |
PrimitiveType(java.lang.Class clazz)
Constructor. |
Method Summary | |
WrapperClassType |
getWrapperClassType()
Returns the JavaType instance of the Java wrapper class that corresponds to this primitive type. |
boolean |
isPrimitive()
Returns true if this JavaType represents a primitive
type. |
boolean |
isValue()
Returns true if this JavaType represents a type whoses
values may be treated as values rather than refernces during
storing. |
(package private) void |
setWrapperClassType(WrapperClassType wrapperClassType)
Sets the JavaType instance of the corresponding Java wrapper class. |
Methods inherited from class org.apache.jdo.impl.model.java.PredefinedType |
getPredefinedType, getPredefinedTypes |
Methods inherited from class org.apache.jdo.impl.model.java.BaseReflectionJavaType |
getDeclaredJavaFields, getDeclaredJavaProperties, getJavaClass, getJavaField, getJavaProperty, getModifiers, getName, getSuperclass, getUnderlyingObject, isCompatibleWith, isInterface |
Methods inherited from class org.apache.jdo.impl.model.java.AbstractJavaType |
equals, getArrayComponentType, getJDOClass, hashCode, isArray, isFloatingPoint, isIntegral, isJDOSupportedCollection, isJDOSupportedMap, isOrderable, isPersistenceCapable, isTrackable, isWrapperClass, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
private WrapperClassType wrapperClassType
Constructor Detail |
protected PrimitiveType(java.lang.Class clazz)
clazz
- the Class instance representing the typeMethod Detail |
public boolean isPrimitive()
true
if this JavaType represents a primitive
type.
isPrimitive
in interface JavaType
isPrimitive
in class AbstractJavaType
true
if this JavaTypre represents a primitive
type; false
otherwise.public boolean isValue()
true
if this JavaType represents a type whoses
values may be treated as values rather than refernces during
storing.
isValue
in interface JavaType
isValue
in class AbstractJavaType
true
if this JavaType represents a value type;
false
otherwise.public WrapperClassType getWrapperClassType()
void setWrapperClassType(WrapperClassType wrapperClassType)
wrapperClassType
- the JavaType representing the corresponding
Java wrapper class.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |