org.apache.jdo.impl.model.java
Class JDOSupportedCollectionType
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.JDOSupportedCollectionType
- All Implemented Interfaces:
- JavaType
public class JDOSupportedCollectionType
- extends PredefinedType
A JDOSupportedCollectionType instance represents a JDO supported
collection 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.collectionType
,
PredefinedType.setType
,
PredefinedType.listType
,
PredefinedType.hashSetType
,
PredefinedType.treeSetType
,
PredefinedType.arrayListType
,
PredefinedType.linkedListType
,
PredefinedType.vectorType
,
PredefinedType.stackType
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 |
Method Summary |
boolean |
isJDOSupportedCollection()
Returns true if this JavaType represents a JDO
supported collection type. |
boolean |
isTrackable()
Returns true if this JavaType represents a trackable
Java class. |
Methods inherited from class org.apache.jdo.impl.model.java.AbstractJavaType |
equals, getArrayComponentType, getJDOClass, hashCode, isArray, isFloatingPoint, isIntegral, isJDOSupportedMap, isOrderable, isPersistenceCapable, isPrimitive, isValue, isWrapperClass, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
JDOSupportedCollectionType
public JDOSupportedCollectionType(java.lang.Class clazz)
- Constructor for JDOSupportedCollection types having no superclass.
These are the collection interfaces among the JDO supported
collection types.
- Parameters:
clazz
- the Class instance representing the type.
JDOSupportedCollectionType
public JDOSupportedCollectionType(java.lang.Class clazz,
JavaType superclass)
- Constructor for JDOSupportedCollection types having a superclass.
These are the collection implemenatation classes among the JDO
supported collection types.
- Parameters:
clazz
- the Class instance representing the typesuperclass
- JavaType instance representing the superclass.
isJDOSupportedCollection
public boolean isJDOSupportedCollection()
- Returns
true
if this JavaType represents a JDO
supported collection type. The JDO specification allows the
following collection interfaces and classes as types of persistent
fields (see section 6.4.3 Persistent fields):
- Specified by:
isJDOSupportedCollection
in interface JavaType
- Overrides:
isJDOSupportedCollection
in class AbstractJavaType
- Returns:
true
if this JavaType represents a JDO
supported collection; 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.