|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.sqlunit.TypeFactory
public final class TypeFactory
Factory for generating concrete implementations of IType.
Method Summary | |
---|---|
static IType |
getInstance(int typeId)
Given an SQL Type Id, instantiates and returns a partially populated IType object of the specified type. |
static IType |
getInstance(java.lang.String name)
Given an XML type name, instantiates and returns a partially populated IType object of the specified type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static IType getInstance(java.lang.String name) throws SQLUnitException
name
- the XML name for the type. The database server name is
implicitly provided by looking up the metadata for the current
Connection. If there is no match, then the type name without the
server-name (ie server non-specific type) is looked up.
SQLUnitException
- if there was a problem.public static IType getInstance(int typeId) throws SQLUnitException
typeId
- an integer that exists in one of the SQLUnit type
mapping properties files.
SQLUnitException
- if there was a problem.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |