public class CompositeDbTypeManager extends Object implements DbTypeManager
DbTypeManager
instances to manage DB typesConstructor and Description |
---|
CompositeDbTypeManager(List<DbTypeManager> typeManagers)
Creates a composed DB type manager
|
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 using each composed
DbTypeManager until a type is found or there are no more
managers to use. |
public CompositeDbTypeManager(List<DbTypeManager> typeManagers)
typeManagers
- sorted type managers used to resolve DB types.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
until a type is found or there are no more
managers to use.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 ID and nameCopyright © 2003–2016 MuleSoft, Inc.. All rights reserved.