Save This Page
Home » apache-openjpa-1.1.0-source » org.apache.openjpa » meta » [javadoc | source]
org.apache.openjpa.meta
public class: JavaTypes [javadoc | source]
java.lang.Object
   org.apache.openjpa.meta.JavaTypes

Direct Known Subclasses:
    JavaSQLTypes

Type constants for managed fields.
Field Summary
public static final  int BOOLEAN     
public static final  int BYTE     
public static final  int CHAR     
public static final  int DOUBLE     
public static final  int FLOAT     
public static final  int INT     
public static final  int LONG     
public static final  int SHORT     
public static final  int OBJECT     
public static final  int STRING     
public static final  int NUMBER     
public static final  int ARRAY     
public static final  int COLLECTION     
public static final  int MAP     
public static final  int DATE     
public static final  int PC     
public static final  int BOOLEAN_OBJ     
public static final  int BYTE_OBJ     
public static final  int CHAR_OBJ     
public static final  int DOUBLE_OBJ     
public static final  int FLOAT_OBJ     
public static final  int INT_OBJ     
public static final  int LONG_OBJ     
public static final  int SHORT_OBJ     
public static final  int BIGDECIMAL     
public static final  int BIGINTEGER     
public static final  int LOCALE     
public static final  int PC_UNTYPED     
public static final  int CALENDAR     
public static final  int OID     
public static final  int INPUT_STREAM     
public static final  int INPUT_READER     
Method from org.apache.openjpa.meta.JavaTypes Summary:
classForName,   classForName,   classForName,   classForName,   convert,   getTypeCode,   maybePC,   maybePC,   maybePC,   toArray,   toList
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.openjpa.meta.JavaTypes Detail:
 public static Class classForName(String name,
    ClassMetaData context) 
    Check the given name against the same set of standard packages used when parsing metadata.
 public static Class classForName(String name,
    ValueMetaData context) 
    Check the given name against the same set of standard packages used when parsing metadata.
 public static Class classForName(String name,
    ClassMetaData context,
    ClassLoader loader) 
    Check the given name against the same set of standard packages used when parsing metadata.
 public static Class classForName(String name,
    ValueMetaData context,
    ClassLoader loader) 
    Check the given name against the same set of standard packages used when parsing metadata.
 public static Object convert(Object val,
    int typeCode) 
    Convert the given object to the given type if possible. If the type is a numeric primitive, this method only guarantees that the return value is a Number . If no known conversion or the value is null, returns the original value.
 public static int getTypeCode(Class type) 
    Return the field metadata type code for the given class. First class objects are not recognized in this method.
 public static boolean maybePC(FieldMetaData field) 
    Return true if the (possibly unresolved) field or its elements might be persistence capable objects.
 public static boolean maybePC(ValueMetaData val) 
    Return true if the (possibly unresolved) value might be a first class object.
 static boolean maybePC(int typeCode,
    Class type) 
    Return true if the given unresolved typecode/type pair may represent a persistent object.
 public static Object toArray(Collection coll,
    Class elem) 
    Helper method to return the given collection as an array.
 public static List toList(Object val,
    Class elem,
    boolean mutable) 
    Helper method to return the given array value as a collection.