Save This Page
Home » jdo2-model-2.3-ea-src » org.apache.jdo.impl.model.jdo.util » [javadoc | source]
org.apache.jdo.impl.model.jdo.util
public class: TypeSupport [javadoc | source]
java.lang.Object
   org.apache.jdo.impl.model.jdo.util.TypeSupport
Method from org.apache.jdo.impl.model.jdo.util.TypeSupport Summary:
getSingleFieldObjectIdClassName,   isEmbeddedElementType,   isEmbeddedFieldType,   isPersistenceFieldType,   isValueArrayType,   resolveType
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.jdo.impl.model.jdo.util.TypeSupport Detail:
 public static String getSingleFieldObjectIdClassName(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.
 public static boolean isEmbeddedElementType(JavaType type) 
    Returns true if the embedded-element property of a field having the specified type defaults to true.
 public static boolean isEmbeddedFieldType(JavaType type) 
    Returns true if the embedded property of a field having the specified type defaults to true.
 public static boolean isPersistenceFieldType(JavaType type) 
    Returns true if the persistence-modifier of a field having the specified type defaults to true.
 public static boolean isValueArrayType(JavaType type) 
    Returns true if the specified type represents an array and its element type is a value type.
 public static JavaType resolveType(JDOModel jdoModel,
    String typeName,
    String packagePrefix) 
    Returns a JavaType representation for the specified type name. The method delegates the request to the JavaModel attached to the specified JDOModel. An unqualified name is qualified using first the specified packagePrefix and then "java.lang.", but only if the type name is the the name of a primitive type. If the method still does not find a valid type, then it returns null.