public class PrimitiveType extends PredefinedType
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.doubleTypeabstractCollectionType, 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, voidTypeclazz, superclass| Modifier | Constructor and Description |
|---|---|
protected |
PrimitiveType(java.lang.Class clazz)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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. |
getPredefinedType, getPredefinedTypesgetJavaClass, getJavaField, getModifiers, getName, getSuperclass, isCompatibleWith, isInterfaceequals, getArrayComponentType, getJDOClass, hashCode, isArray, isFloatingPoint, isIntegral, isJDOSupportedCollection, isJDOSupportedMap, isOrderable, isPersistenceCapable, isTrackable, isWrapperClass, toStringprotected PrimitiveType(java.lang.Class clazz)
clazz - the Class instance representing the typepublic boolean isPrimitive()
true if this JavaType represents a primitive
type.isPrimitive in interface JavaTypeisPrimitive in class AbstractJavaTypetrue 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 JavaTypeisValue in class AbstractJavaTypetrue if this JavaType represents a value type;
false otherwise.public WrapperClassType getWrapperClassType()
Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.