|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jso.sql.JDBCTypes
Abstract class for JDBC type information (java.sql.Types
).
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 |
public JDBCTypes()
Method Detail |
public static java.util.Set getValidTypes()
public static boolean isValidType(int aType)
aType
- The JDBC type to be tested.
true
if the type is a valid JSO JDBC type;
false
otherwise.public static boolean isValidType(java.lang.Integer aType)
aType
- The JDBC type to be tested.
true
if the type is a valid JSO JDBC type;
false
otherwise.public static java.lang.String getNameFor(int aType)
aType
- The JDBC type to which the name should be returned.
null
otherwise.public static java.lang.String getNameFor(java.lang.Integer aType)
aType
- The JDBC type to which the name should be returned.
null
otherwise.public static java.lang.Integer getTypeFor(java.lang.String aName)
aName
- The name of the JDBC type to be returned.
null
otherwise.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |