public class TypesUtil
extends java.lang.Object
| Constructor and Description | 
|---|
TypesUtil()  | 
| Modifier and Type | Method and Description | 
|---|---|
static java.lang.Object | 
convert(java.lang.String str,
       int dataType)  | 
static java.sql.JDBCType | 
getSQLType(java.lang.Class clazz)  | 
static java.lang.String | 
getSQLType(int type)
This method returns the name that defines a SQL type Id. 
 | 
static int | 
getSQLType(java.lang.Object o)
This method returns the equivalent SQL data type for a Java object. 
 | 
static boolean | 
isSQLTypeBinary(int type)
Return a boolean that indicates if a SQL type is binary or other than
 current type 
 | 
static boolean | 
isSQLTypeNumeric(int type)
Return a boolean that indicates if a SQL type is numeric 
 | 
static boolean | 
isSQLTypeReal(int type)
Return a boolean that indicates if a SQL type is numeric 
 | 
static boolean | 
isSQLTypeString(int type)  | 
static boolean | 
isSQLTypeTimeStamp(int type)
Return a boolean that indicates if a SQL type is TimeStamp 
 | 
static java.lang.Class | 
sqlTypeToClass(int type)
Returns the Java class associated with a SQL type. 
 | 
public static java.lang.Object convert(java.lang.String str,
                                       int dataType)
                                throws java.lang.Exception
java.lang.Exceptionpublic static java.lang.String getSQLType(int type)
type - an SQL type Id.public static java.sql.JDBCType getSQLType(java.lang.Class clazz)
public static int getSQLType(java.lang.Object o)
o - a Java objectpublic static boolean isSQLTypeNumeric(int type)
type - the SQL typepublic static boolean isSQLTypeReal(int type)
type - the SQL typepublic static boolean isSQLTypeString(int type)
public static boolean isSQLTypeTimeStamp(int type)
type - the SQL typepublic static boolean isSQLTypeBinary(int type)
type - the SQL typepublic static java.lang.Class sqlTypeToClass(int type)
type - the sql typeObject class is
         returnedTypes, 
Class