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

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.JDOSupportedMapType
All Implemented Interfaces:
JavaElement, JavaType

public class JDOSupportedMapType
extends PredefinedType

A JDOSupportedMapType instance represents a JDO supported map type.

Class PredefinedType provides public static final variables referring to the JavaType representation for JDO supported map types.

Since:
JDO 1.0.1
Author:
Michael Bouschen
See Also:
PredefinedType.mapType, PredefinedType.hashMapType, PredefinedType.hashtableType, PredefinedType.propertiesType, PredefinedType.treeMapType

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
JDOSupportedMapType(java.lang.Class clazz)
          Constructor for JDOSupportedMap types having no superclass.
JDOSupportedMapType(java.lang.Class clazz, JavaType superclass)
          Constructor for JDOSupportedMap types having a superclass.
 
Method Summary
 boolean isJDOSupportedMap()
          Returns true if this JavaType represents a JDO supported map type.
 boolean isTrackable()
          Returns true if this JavaType represents a trackable Java 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, isOrderable, isPersistenceCapable, isPrimitive, isValue, isWrapperClass, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JDOSupportedMapType

public JDOSupportedMapType(java.lang.Class clazz)
Constructor for JDOSupportedMap types having no superclass. This is the map interface among the JDO supported map types.

Parameters:
clazz - the Class instance representing the type

JDOSupportedMapType

public JDOSupportedMapType(java.lang.Class clazz,
                           JavaType superclass)
Constructor for JDOSupportedMap types having a superclass. These are the map implemenatation classes among the JDO supported map types.

Parameters:
clazz - the Class instance representing the type
superclass - JavaType instance representing the superclass.
Method Detail

isJDOSupportedMap

public boolean isJDOSupportedMap()
Returns true if this JavaType represents a JDO supported map type. The JDO specification allows the following map interfaces and classes as types of persistent fields (see section 6.4.3 Persistent fields):

Specified by:
isJDOSupportedMap in interface JavaType
Overrides:
isJDOSupportedMap in class AbstractJavaType
Returns:
true if this JavaTypre represents a JDO supported map; false otherwise.

isTrackable

public boolean isTrackable()
Returns true if this JavaType represents a trackable Java class. A JDO implementation may replace a persistent field of a trackable type with an assignment compatible instance of its own implementation of this type which notifies the owning FCO of any change of this field.

Specified by:
isTrackable in interface JavaType
Overrides:
isTrackable in class AbstractJavaType
Returns:
true if this JavaType represents a trackable Java class, false otherwise.


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