public class StaticDbTypeManager extends Object implements DbTypeManager
DbType
using a predefined
set of types.Constructor and Description |
---|
StaticDbTypeManager(List<DbType> vendorTypes) |
Modifier and Type | Method and Description |
---|---|
DbType |
lookup(DbConnection connection,
int id,
String name)
Finds a mapping for a given type ID and name
|
DbType |
lookup(DbConnection connection,
String name)
Finds a mapping for a given type name
|
public DbType lookup(DbConnection connection, int id, String name) throws UnknownDbTypeException
DbTypeManager
lookup
in interface DbTypeManager
connection
- connection used to connect to the database if requiredid
- type IDname
- type nameUnknownDbTypeException
- when there is no managed type with the given ID and namepublic DbType lookup(DbConnection connection, String name) throws UnknownDbTypeException
DbTypeManager
lookup
in interface DbTypeManager
connection
- connection used to connect to the database if requiredname
- type nameUnknownDbTypeException
- when there is no managed type with the given nameCopyright © 2003–2016 MuleSoft, Inc.. All rights reserved.