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

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

public class MutableValueClassType
extends ValueClassType

A MutableValueClassType instance represents a mutable class whoses values may be treated as values rather than refernces during storing. Note, MutableValueClassType instances are trackable which is the only difference in behavior to instances of the superclass ValueClassType.

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

Since:
JDO 1.0.1
Author:
Michael Bouschen
See Also:
PredefinedType.dateType, PredefinedType.sqlDateType, PredefinedType.sqlTimeType, PredefinedType.sqlTimestampType, PredefinedType.bitsetType

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
MutableValueClassType(java.lang.Class clazz, JavaType superclass, boolean orderable)
          Constructor.
 
Method Summary
 boolean isTrackable()
          Returns true if this JavaType represents a trackable Java class.
 
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
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, isJDOSupportedMap, isPersistenceCapable, isPrimitive, isWrapperClass, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MutableValueClassType

public MutableValueClassType(java.lang.Class clazz,
                             JavaType superclass,
                             boolean orderable)
Constructor.

Parameters:
clazz - the Class instance representing the type
superclass - JavaType instance representing the superclass.
orderable - flag indicating whether this type is orderable.
Method Detail

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-2009 Apache Software Foundation. All Rights Reserved.