com.espertech.esper.util
Class SQLTypeMapUtil

java.lang.Object
  extended by com.espertech.esper.util.SQLTypeMapUtil

public class SQLTypeMapUtil
extends java.lang.Object

Utility for mapping SQL types of Types to Java classes.


Constructor Summary
SQLTypeMapUtil()
           
 
Method Summary
static int getSQLTypeByName(java.lang.String type)
          Returns the SQL type by type name.
static java.lang.Class sqlTypeToClass(int sqlType, java.lang.String className)
          Mapping as defined by JDBC 3 Spec , page B-177, table B-1 JBDC Types mapped to Java Types.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SQLTypeMapUtil

public SQLTypeMapUtil()
Method Detail

sqlTypeToClass

public static java.lang.Class sqlTypeToClass(int sqlType,
                                             java.lang.String className)
Mapping as defined by JDBC 3 Spec , page B-177, table B-1 JBDC Types mapped to Java Types.

Parameters:
sqlType - to return Java class for
className - is the classname that result metadata returns for a column
Returns:
Java class for JDBC sql types

getSQLTypeByName

public static int getSQLTypeByName(java.lang.String type)
Returns the SQL type by type name.

Parameters:
type - sql type name
Returns:
type sql type

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com