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: PredefinedType [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

All Implemented Interfaces:
    JavaType

Direct Known Subclasses:
    JDOSupportedMapType, FloatingPointType, IntegralType, WrapperClassType, MutableValueClassType, JDOSupportedCollectionType, ValueClassType, PrimitiveType

Instances of this class represent a type that is not a persistence capable class, but is known by JDO. All JavaModel implementation will use this implementation to represnet predefined types. Predefined types include: This class provides public static fields for all predefined types. These constants are convenience for direct access of a JavaType instance representing a predefined type. The class also manages a map of predefined types using the type name as key. The constructors automatically add the new created instance to this map. Please use method #getPredefinedType(String name) to lookup a predefined type by name. Method #getPredefinedTypes() returns a view of the map of predefined types.
Field Summary
public static final  PredefinedType objectType    The JavaType instance for the class java.lang.Object. 
public static final  PredefinedType voidType    The JavaType instance for the type void. 
public static final  PrimitiveType booleanType    The JavaType instance for the primitive type boolean. 
public static final  IntegralType byteType    The JavaType instance for the integral type byte. 
public static final  IntegralType shortType    The JavaType instance for the integral type short. 
public static final  IntegralType intType    The JavaType instance for the integral type int. 
public static final  IntegralType longType    The JavaType instance for the integral type long. 
public static final  IntegralType charType    The JavaType instance for the integral type char. 
public static final  FloatingPointType floatType    The JavaType instance for the floating point type float. 
public static final  FloatingPointType doubleType    The JavaType instance for the floating point type double. 
public static final  ValueClassType numberType    The JavaType instance for the class java.lang.Numer. 
public static final  ValueClassType stringType    The JavaType instance for the class java.lang.String. 
public static final  ValueClassType localeType    The JavaType instance for the class java.lang.Locale. 
public static final  ValueClassType bigDecimalType    The JavaType instance for the class java.math.BigDecimal. 
public static final  ValueClassType bigIntegerType    The JavaType instance for the class java.math.BigInteger. 
public static final  WrapperClassType booleanClassType    The JavaType instance for the class java.lang.Boolean. 
public static final  WrapperClassType byteClassType    The JavaType instance for the class java.lang.Byte. 
public static final  WrapperClassType shortClassType    The JavaType instance for the class java.lang.Short. 
public static final  WrapperClassType integerClassType    The JavaType instance for the class java.lang.Integer. 
public static final  WrapperClassType longClassType    The JavaType instance for the class java.lang.Long. 
public static final  WrapperClassType characterClassType    The JavaType instance for the class java.lang.Character. 
public static final  WrapperClassType floatClassType    The JavaType instance for the class java.lang.Float. 
public static final  WrapperClassType doubleClassType    The JavaType instance for the class java.lang.Double. 
public static final  MutableValueClassType dateType    The JavaType instance for the class java.util.Date. 
public static final  MutableValueClassType sqlDateType    The JavaType instance for the class java.sql.Date. 
public static final  MutableValueClassType sqlTimeType    The JavaType instance for the class java.sql.Time. 
public static final  MutableValueClassType sqlTimestampType    The JavaType instance for the class java.sql.Timestamp. 
public static final  MutableValueClassType bitsetType    The JavaType instance for the class java.util.BitSet. 
public static final  JDOSupportedCollectionType collectionType    The JavaType instance for the interface java.util.Collection. 
public static final  JDOSupportedCollectionType setType    The JavaType instance for the interface java.util.Set. 
public static final  JDOSupportedCollectionType listType    The JavaType instance for the interface java.util.List. 
public static final  PredefinedType abstractCollectionType    The JavaType instance for the class java.util.AbstractCollection. 
public static final  PredefinedType abstractSetType    The JavaType instance for the class java.util.AbstractSet. 
public static final  JDOSupportedCollectionType hashSetType    The JavaType instance for the class java.util.HashSet. 
public static final  JDOSupportedCollectionType treeSetType    The JavaType instance for the class java.util.TreeSet. 
public static final  PredefinedType abstractListType    The JavaType instance for the class java.util.AbstractList. 
public static final  JDOSupportedCollectionType arrayListType    The JavaType instance for the class java.util.ArrayList. 
public static final  JDOSupportedCollectionType linkedListType    The JavaType instance for the class java.util.LinkedList. 
public static final  JDOSupportedCollectionType vectorType    The JavaType instance for the class java.util.Vector. 
public static final  JDOSupportedCollectionType stackType    The JavaType instance for the class java.util.Stack. 
public static final  JDOSupportedMapType mapType    The JavaType instance for the interface java.util.Map. 
public static final  PredefinedType abstractMapType    The JavaType instance for the class java.util.AbstractMap. 
public static final  JDOSupportedMapType hashMapType    The JavaType instance for the class java.util.HashMap. 
public static final  PredefinedType dictionaryType    The JavaType instance for the class java.util.Dictionary. 
public static final  JDOSupportedMapType hashtableType    The JavaType instance for the class java.util.Hashtable. 
public static final  JDOSupportedMapType propertiesType    The JavaType instance for the class java.util.Properties. 
public static final  JDOSupportedMapType treeMapType    The JavaType instance for the class java.util.TreeMap. 
Fields inherited from org.apache.jdo.impl.model.java.BaseReflectionJavaType:
clazz,  superclass
Constructor:
 protected PredefinedType(Class clazz) 
    Constructor taking a Class instance. It automatically adds a predefined type to the static map of all predefined types.
    Parameters:
    clazz - the Class instance for this JavaType
 protected PredefinedType(Class clazz,
    JavaType superclass) 
    Constructor taking a Class instance and a JavaType representing the superclass of the new JavaType instance. It automatically adds a predefined type to the static map of all predefined types.
    Parameters:
    clazz - the Class instance for this JavaType
    superclass - the JavaType representing the superclass or null if there is no superclass.
Method from org.apache.jdo.impl.model.java.PredefinedType Summary:
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.PredefinedType Detail:
 public static JavaType getPredefinedType(String name) 
    Returns the JavaType instance for a predefined type with the specified name. The method return null if the specified name does not denote a predefined type.
 public static Map getPredefinedTypes() 
    Returns an unmodifiable view of the predefined types map. This map maps type names to JavaType instances.