net.sf.jso.sql
Class JDBCTypes

java.lang.Object
  extended bynet.sf.jso.sql.JDBCTypes
All Implemented Interfaces:
java.io.Serializable

public abstract class JDBCTypes
extends java.lang.Object
implements java.io.Serializable

Abstract class for JDBC type information (java.sql.Types).

See Also:
Serialized Form

Constructor Summary
JDBCTypes()
           
 
Method Summary
static java.lang.String getNameFor(int aType)
          Gets the name for a JDBC type.
static java.lang.String getNameFor(java.lang.Integer aType)
          Gets the name for a JDBC type.
static java.lang.Integer getTypeFor(java.lang.String aName)
          Gets the JDBC type by the name.
static java.util.Set getValidTypes()
          Returns a set of valid JDBC types for a column descriptor.
static boolean isValidType(int aType)
          Indicates if a type is a valid JSO JDBC type.
static boolean isValidType(java.lang.Integer aType)
          Indicates if a type is a valid JSO JDBC type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDBCTypes

public JDBCTypes()
Method Detail

getValidTypes

public static java.util.Set getValidTypes()
Returns a set of valid JDBC types for a column descriptor.

Returns:
A set of valid JDBC types.

isValidType

public static boolean isValidType(int aType)
Indicates if a type is a valid JSO JDBC type.

Parameters:
aType - The JDBC type to be tested.
Returns:
true if the type is a valid JSO JDBC type; false otherwise.

isValidType

public static boolean isValidType(java.lang.Integer aType)
Indicates if a type is a valid JSO JDBC type.

Parameters:
aType - The JDBC type to be tested.
Returns:
true if the type is a valid JSO JDBC type; false otherwise.

getNameFor

public static java.lang.String getNameFor(int aType)
Gets the name for a JDBC type.

Parameters:
aType - The JDBC type to which the name should be returned.
Returns:
The name of the type if the type is a valid JDBC type; null otherwise.

getNameFor

public static java.lang.String getNameFor(java.lang.Integer aType)
Gets the name for a JDBC type.

Parameters:
aType - The JDBC type to which the name should be returned.
Returns:
The name of the type if the type is a valid JDBC type; null otherwise.

getTypeFor

public static java.lang.Integer getTypeFor(java.lang.String aName)
Gets the JDBC type by the name.

Parameters:
aName - The name of the JDBC type to be returned.
Returns:
The JDBC type if the name is valid; null otherwise.