|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.sqlunit.TypeMapper
public final class TypeMapper
Reads in the type resource files and provides methods to look up type class names using various keys. This is a Singleton object and will be lazily instantiated once per run.
Method Summary | |
---|---|
static java.util.List |
findAllTypeNames(boolean showSupported)
Convenience method currently used for JUnit testing. |
static java.lang.String |
findClassById(int id)
Returns the class name for the specified type code. |
static java.lang.String |
findClassByName(java.lang.String name)
Returns the class name for the specified type name. |
static int |
findIdByName(java.lang.String name)
Returns the type code for the specified type name. |
static java.lang.String |
findNameById(int id)
Returns the type name for the specified type code. |
static TypeMapper |
getTypeMapper()
Returns the current instance of the TypeMapper object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static TypeMapper getTypeMapper()
public static java.lang.String findClassByName(java.lang.String name)
name
- the type name that is used in the XML file.
public static java.lang.String findClassById(int id)
id
- the SQL type code.
public static java.lang.String findNameById(int id)
id
- the SQL type code.
public static int findIdByName(java.lang.String name)
name
- the XML type name.
public static java.util.List findAllTypeNames(boolean showSupported)
showSupported
- if true, will show only currently supported
types, else will show all the currently configured types.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |