Save This Page
Home » jdo2-model-2.3-ea-src » org.apache.jdo.impl.model.java » [javadoc | source]
org.apache.jdo.impl.model.java
public class: PrimitiveType [javadoc | source]
java.lang.Object
   org.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

All Implemented Interfaces:
    JavaType

Direct Known Subclasses:
    FloatingPointType, IntegralType

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.

Fields inherited from org.apache.jdo.impl.model.java.PredefinedType:
objectType,  voidType,  booleanType,  byteType,  shortType,  intType,  longType,  charType,  floatType,  doubleType,  numberType,  stringType,  localeType,  bigDecimalType,  bigIntegerType,  booleanClassType,  byteClassType,  shortClassType,  integerClassType,  longClassType,  characterClassType,  floatClassType,  doubleClassType,  dateType,  sqlDateType,  sqlTimeType,  sqlTimestampType,  bitsetType,  collectionType,  setType,  listType,  abstractCollectionType,  abstractSetType,  hashSetType,  treeSetType,  abstractListType,  arrayListType,  linkedListType,  vectorType,  stackType,  mapType,  abstractMapType,  hashMapType,  dictionaryType,  hashtableType,  propertiesType,  treeMapType
Fields inherited from org.apache.jdo.impl.model.java.BaseReflectionJavaType:
clazz,  superclass
Constructor:
 protected PrimitiveType(Class clazz) 
    Constructor.
    Parameters:
    clazz - the Class instance representing the type
Method from org.apache.jdo.impl.model.java.PrimitiveType Summary:
getWrapperClassType,   isPrimitive,   isValue,   setWrapperClassType
Methods from org.apache.jdo.impl.model.java.PredefinedType:
getPredefinedType,   getPredefinedTypes
Methods from org.apache.jdo.impl.model.java.BaseReflectionJavaType:
getDeclaredJavaFields,   getDeclaredJavaProperties,   getJavaClass,   getJavaField,   getJavaProperty,   getModifiers,   getName,   getSuperclass,   getUnderlyingObject,   isCompatibleWith,   isInterface
Methods from org.apache.jdo.impl.model.java.AbstractJavaType:
equals,   getArrayComponentType,   getDeclaredJavaFields,   getDeclaredJavaProperties,   getJDOClass,   getJavaField,   getJavaProperty,   getModifiers,   getName,   getSuperclass,   getUnderlyingObject,   hashCode,   isArray,   isCompatibleWith,   isFloatingPoint,   isIntegral,   isInterface,   isJDOSupportedCollection,   isJDOSupportedMap,   isOrderable,   isPersistenceCapable,   isPrimitive,   isTrackable,   isValue,   isWrapperClass,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.jdo.impl.model.java.PrimitiveType Detail:
 public WrapperClassType getWrapperClassType() 
    Returns the JavaType instance of the Java wrapper class that corresponds to this primitive type.
 public boolean isPrimitive() 
    Returns true if this JavaType represents a primitive type.
 public boolean isValue() 
    Returns true if this JavaType represents a type whoses values may be treated as values rather than refernces during storing.
  void setWrapperClassType(WrapperClassType wrapperClassType) 
    Sets the JavaType instance of the corresponding Java wrapper class.