public class MetadataDbTypeManager extends Object implements DbTypeManager
Constructor and Description |
---|
MetadataDbTypeManager() |
Modifier and Type | Method and Description |
---|---|
protected void |
initialise(DbConnection connection) |
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
|
protected void |
registerType(DbType dbType) |
protected void registerType(DbType dbType)
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 nameprotected void initialise(DbConnection connection)
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.