|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jdo.impl.model.jdo.util.TypeSupport
public class TypeSupport
| Constructor Summary | |
|---|---|
TypeSupport()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TypeSupport()
| Method Detail |
|---|
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 checked
true 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 checked
true 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 checked
true if type is a embedded type;
false otherwise
public 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 name
null 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 checked
true if type is a value array;
false otherwise.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||