| java.lang.Object org.netbeans.modules.mashup.db.common.SQLUtils
SQLUtils | public class SQLUtils (Code) | | Utility class supplying lookup and conversion methods for SQL-related tasks.
author: Sudhendra Seshachala version: $Revision$ |
Method Summary | |
public static int | getStdJdbcType(String dataType) Gets JDBC int type, if any, corresponding to the given SQL datatype string. | public static String | getStdSqlType(int dataType) Gets SQL datatype string, if any, corresponding to the given JDBC int value. | public static List | getStdSqlTypes() Gets List of Strings representing standard SQL datatypes. | public static synchronized boolean | isStdJdbcType(int jdbcType) |
JDBCSQL_TYPE_UNDEFINED | final public static int JDBCSQL_TYPE_UNDEFINED(Code) | | Designates undefined JDBC typecode.
|
getStdJdbcType | public static int getStdJdbcType(String dataType)(Code) | | Gets JDBC int type, if any, corresponding to the given SQL datatype string.
Parameters: dataType - SQL datatype whose equivalent JDBC int type is sought java.sql.Types value equivalent to dataType |
getStdSqlType | public static String getStdSqlType(int dataType)(Code) | | Gets SQL datatype string, if any, corresponding to the given JDBC int value.
Parameters: dataType - SQL datatype whose corresopnding JDBC int type is sought SQL datatype string corresponding to dataType, or null if no such datatypeis mapped to dataType |
getStdSqlTypes | public static List getStdSqlTypes()(Code) | | Gets List of Strings representing standard SQL datatypes.
List of standard SQL datatypes. |
isStdJdbcType | public static synchronized boolean isStdJdbcType(int jdbcType)(Code) | | Gets the stdJdbcType attribute of the Database class
Parameters: jdbcType - instance of Types The stdJdbcType value |
|
|