|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ow2.jonas.deployment.common.lib.JavaType
public class JavaType
This class implements methods which permit to get informations about Java Types:
Constructor Summary | |
---|---|
JavaType()
|
Method Summary | |
---|---|
static String |
getDefaultValue(Class c)
Returns the default value of the given Java Type. |
static String |
getName(Class c)
Returns the name of the given type |
static String |
getSQLGetMethod(Class c)
Returns the name of the getXXX method associated with the given type in java.sql.ResultSet. |
static String |
getSQLSetMethod(Class c)
Returns the name of the setXXX method associated with the given type in java.sql.ResultSet. |
static String |
getSQLType(Class c)
Returns the SQL Type mapping the given Java Type. |
static String |
getWrapperType(Class c)
Returns the wrapper type of the given Java Type. |
static boolean |
isCollecOrEnum(Class c)
Returns true if the given class implements java.uti.Collection or java.util.Enumeration false otherwise. |
static boolean |
isSerializable(Class c)
Returns true if the given class is a Serializable Java Type, false otherwise. |
static boolean |
isValidForRmi(Class c)
Returns true if the given class is a valid type for RMI, false otherwise. |
static boolean |
isVoid(Class c)
Returns true if the given type is the type 'void' |
static boolean |
isXxxObjectMethod(String name)
Returns true if the given method name is getObject() or setObject() |
static Boolean |
toObject(boolean val)
|
static Byte |
toObject(byte val)
|
static Character |
toObject(char val)
|
static Double |
toObject(double val)
|
static Float |
toObject(float val)
|
static Integer |
toObject(int val)
|
static Long |
toObject(long val)
|
static Object |
toObject(Object val)
|
static Short |
toObject(short val)
|
static String |
toStringObject(String name,
Class c)
If it is a primitive type, return a new Object constructor, else return the same object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JavaType()
Method Detail |
---|
public static boolean isVoid(Class c)
public static String getName(Class c)
public static boolean isSerializable(Class c)
public static boolean isValidForRmi(Class c)
public static boolean isCollecOrEnum(Class c)
public static String getSQLGetMethod(Class c)
c
- the class object for a Java type.
public static String getSQLSetMethod(Class c)
c
- the class object for a Java type.
public static boolean isXxxObjectMethod(String name)
public static String getSQLType(Class c)
c
- the class object for a Java type.
public static String getDefaultValue(Class c)
c
- the class object for a Java type.
public static String getWrapperType(Class c)
c
- the class object for a Java type.
public static Boolean toObject(boolean val)
public static Byte toObject(byte val)
public static Short toObject(short val)
public static Integer toObject(int val)
public static Long toObject(long val)
public static Float toObject(float val)
public static Double toObject(double val)
public static Character toObject(char val)
public static Object toObject(Object val)
public static String toStringObject(String name, Class c)
name
- name of the varval
- the object value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |