public class TypeSupport
extends java.lang.Object
Constructor and Description |
---|
TypeSupport() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isEmbeddedElementType(JavaType type)
Returns
true if the embedded-element property of a field
having the specified type defaults to true . |
static boolean |
isEmbeddedFieldType(JavaType type)
Returns
true if the embedded property of a field having
the specified type defaults to true . |
static boolean |
isPersistenceFieldType(JavaType type)
Returns
true if the persistence-modifier of a field
having the specified type defaults to true . |
static boolean |
isValueArrayType(JavaType type)
Returns
true if the specified type represents an array
and its element type is a value type. |
static JavaType |
resolveType(JDOModel jdoModel,
java.lang.String typeName,
java.lang.String packagePrefix)
Returns a JavaType representation for the specified type name.
|
public static boolean isPersistenceFieldType(JavaType type)
true
if the persistence-modifier of a field
having the specified type defaults to true
.type
- the type to be checkedtrue
if type is a value type;
false
otherwisepublic static boolean isEmbeddedElementType(JavaType type)
true
if the embedded-element property of a field
having the specified type defaults to true
.type
- the type to be checkedtrue
if type is a embedded-element type;
false
otherwisepublic static boolean isEmbeddedFieldType(JavaType type)
true
if the embedded property of a field having
the specified type defaults to true
.type
- the type to be checkedtrue
if type is a embedded type;
false
otherwisepublic static JavaType resolveType(JDOModel jdoModel, java.lang.String typeName, java.lang.String packagePrefix)
null
.jdoModel
- the owning JDOModeltypeName
- the name of the type to be checkedpackagePrefix
- the package prefix used to qualify the type namenull
if it cannot be resolved.public static boolean isValueArrayType(JavaType type)
true
if the specified type represents an array
and its element type is a value type.type
- the JavaType to be checkedtrue
if type is a value array;
false
otherwise.Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.