org.apache.jdo.impl.model.java
Class ValueClassType
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.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
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 |
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.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 |
ValueClassType
public ValueClassType(java.lang.Class clazz,
JavaType superclass,
boolean orderable)
- Constructor.
- Parameters:
clazz
- the Class instance representing the typesuperclass
- JavaType instance representing the superclass.orderable
- flag indicating whether this type is orderable.
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.
Copyright © 2005-2007 Apache Software Foundation. All Rights Reserved.