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

java.lang.Object
  extended byorg.apache.jdo.impl.model.java.AbstractJavaType
      extended byorg.apache.jdo.impl.model.java.BaseReflectionJavaType
          extended byorg.apache.jdo.impl.model.java.PredefinedType
              extended byorg.apache.jdo.impl.model.java.ValueClassType
All Implemented Interfaces:
JavaType
Direct Known Subclasses:
MutableValueClassType, WrapperClassType

public class ValueClassType
extends PredefinedType

A ValueClassType instance represents a class whoses values may be treated as values rather than refernces during storing.

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

Since:
JDO 1.0.1
Author:
Michael Bouschen
See Also:
PredefinedType.numberType, PredefinedType.stringType, PredefinedType.localeType, PredefinedType.bigDecimalType, PredefinedType.bigIntegerType

Field Summary
private  boolean orderable
          The orderable property.
 
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
ValueClassType(java.lang.Class clazz, JavaType superclass, boolean orderable)
          Constructor.
 
Method Summary
 boolean isOrderable()
          Returns true if this JavaType represents an orderable type as specified by JDO.
 boolean isValue()
          Returns true if this JavaType represents a type whoses values may be treated as values rather than refernces during storing.
 
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, isWrapperClass, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

orderable

private boolean orderable
The orderable property.

Constructor Detail

ValueClassType

public ValueClassType(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

isValue

public boolean isValue()
Returns true if this JavaType represents a type whoses values may be treated as values rather than refernces during storing.

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

isOrderable

public boolean isOrderable()
Returns true if this JavaType represents an orderable type as specified by JDO.

Specified by:
isOrderable in interface JavaType
Overrides:
isOrderable in class AbstractJavaType
Returns:
true if this JavaType represents an orderable type; false otherwise.