org.apache.jdo.impl.model.java
Class WrapperClassType

java.lang.Object
  extended by org.apache.jdo.impl.model.java.AbstractJavaType
      extended by org.apache.jdo.impl.model.java.BaseReflectionJavaType
          extended by org.apache.jdo.impl.model.java.PredefinedType
              extended by org.apache.jdo.impl.model.java.ValueClassType
                  extended by org.apache.jdo.impl.model.java.WrapperClassType
All Implemented Interfaces:
JavaType

public class WrapperClassType
extends ValueClassType

A WrapperClassType instance represents a Java wrapper class type. There are eight Java wrapper class types: java.lang.Boolean, java.lang.Byte, java.lang.Short, java.lang.Integer, java.lang.Long, java.lang.Character, java.lang.Float, java.lang.Double.

Class PredefinedType provides public static final variables referring to the JavaType representation for wrapper class types.

Since:
JDO 1.0.1
Author:
Michael Bouschen
See Also:
PredefinedType.booleanClassType, PredefinedType.byteClassType, PredefinedType.shortClassType, PredefinedType.integerClassType, PredefinedType.longClassType, PredefinedType.characterClassType, PredefinedType.floatClassType, PredefinedType.doubleClassType

Field Summary
 
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 WrapperClassType(java.lang.Class clazz, JavaType superclass, boolean orderable)
           
 
Method Summary
 PrimitiveType getWrappedPrimitiveType()
           
 boolean isWrapperClass()
          Returns true if this JavaType represents a Java wrapper class type.
 
Methods inherited from class org.apache.jdo.impl.model.java.ValueClassType
isOrderable, isValue
 
Methods inherited from class org.apache.jdo.impl.model.java.PredefinedType
getPredefinedType, getPredefinedTypes
 
Methods inherited from class org.apache.jdo.impl.model.java.BaseReflectionJavaType
getJavaClass, getJavaField, getModifiers, getName, getSuperclass, isCompatibleWith, isInterface
 
Methods inherited from class org.apache.jdo.impl.model.java.AbstractJavaType
equals, getArrayComponentType, getJDOClass, hashCode, isArray, isFloatingPoint, isIntegral, isJDOSupportedCollection, isJDOSupportedMap, isPersistenceCapable, isPrimitive, isTrackable, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WrapperClassType

protected WrapperClassType(java.lang.Class clazz,
                           JavaType superclass,
                           boolean orderable)
Method Detail

isWrapperClass

public boolean isWrapperClass()
Description copied from interface: JavaType
Returns true if this JavaType represents a Java wrapper class type.

There are eight Java wrapper class types: java.lang.Boolean, java.lang.Byte, java.lang.Short, java.lang.Integer, java.lang.Long, java.lang.Character, java.lang.Float, java.lang.Double.

Specified by:
isWrapperClass in interface JavaType
Overrides:
isWrapperClass in class AbstractJavaType
Returns:
true if this JavaType represents a Java wrapper class type; false otherwise.

getWrappedPrimitiveType

public PrimitiveType getWrappedPrimitiveType()


Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.