org.xorm.datastore.sql
Class SQLType

java.lang.Object
  |
  +--org.xorm.datastore.sql.SQLType

public class SQLType
extends Object

Helper class to get JDBC Type values by name. Note that while this class includes the full set of constants defined in java.sql.Types, some of these may not work with XORM.


Method Summary
static int forName(String name)
          Returns the constant value from java.sql.Types that represents the named JDBC type, or -1 on failure.
static String nameFor(int type)
          Returns the name for the java.sql.Type constant, or null if not found.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

forName

public static int forName(String name)
Returns the constant value from java.sql.Types that represents the named JDBC type, or -1 on failure. The match is case-insensitive.


nameFor

public static String nameFor(int type)
Returns the name for the java.sql.Type constant, or null if not found.



$Header: /cvsroot/xorm/xorm/docs/api/org/xorm/datastore/sql/SQLType.html,v 1.4 2004/05/30 08:55:06 wbiggs Exp $