|
|||||||||||
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
Field Summary | |
private static java.lang.String |
OBJECT_IDENTITY_NAME
Fully qualified class name of the ObjectIdentity class. |
private static java.util.Set |
primitiveTypeNames
|
private static java.util.Map |
singleFieldObjectIdClassNames
|
Constructor Summary | |
TypeSupport()
|
Method Summary | |
static java.lang.String |
getSingleFieldObjectIdClassName(java.lang.String typeName)
Returns the name of a single field ObjectId class, if the specified type name denotes a type that is suitable for single field identity. |
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 . |
private static boolean |
isPersistenceArrayType(JavaType type)
Returns true if the specified type represents an array
and its element type is a persistence capable class. |
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 |
Field Detail |
private static final java.util.Set primitiveTypeNames
private static final java.util.Map singleFieldObjectIdClassNames
private static final java.lang.String OBJECT_IDENTITY_NAME
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
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 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.public static java.lang.String getSingleFieldObjectIdClassName(java.lang.String typeName)
typeName
- the type to be checkedprivate static boolean isPersistenceArrayType(JavaType type)
true
if the specified type represents an array
and its element type is a persistence capable class.
type
- the JavaType to be checked
true
if type is a persistent array;
false
otherwise.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |