|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.objectweb.jonas_ejb.lib.JavaType
This class implements methods which permit to get informations about Java Types:
Constructor Summary | |
JavaType()
|
Method Summary | |
static java.lang.String |
getDefaultValue(java.lang.Class c)
Returns the default value of the given Java Type. |
static java.lang.String |
getName(java.lang.Class c)
Returns the name of if the given type |
static java.lang.String |
getSQLGetMethod(java.lang.Class c)
Returns the name of the getXXX method associated with the given type in java.sql.ResultSet. |
static java.lang.String |
getSQLSetMethod(java.lang.Class c)
Returns the name of the setXXX method associated with the given type in java.sql.ResultSet. |
static java.lang.String |
getSQLType(java.lang.Class c)
Returns the SQL Type mapping the given Java Type. |
static boolean |
isSerializable(java.lang.Class c)
Returns true if the given class is a Serializable Java Type, false otherwise. |
static boolean |
isVoid(java.lang.Class c)
Returns true if the given type is the type 'void' |
static boolean |
isXxxObjectMethod(java.lang.String name)
Returns true if the given method name is getObject() or setObject() |
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(java.lang.Class c)
public static java.lang.String getName(java.lang.Class c)
public static boolean isSerializable(java.lang.Class c)
public static java.lang.String getSQLGetMethod(java.lang.Class c)
class
- the class object for a Java type.public static java.lang.String getSQLSetMethod(java.lang.Class c)
class
- the class object for a Java type.public static boolean isXxxObjectMethod(java.lang.String name)
public static java.lang.String getSQLType(java.lang.Class c)
class
- the class object for a Java type.public static java.lang.String getDefaultValue(java.lang.Class c)
class
- the class object for a Java type.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |