org.mule.module.db.internal.domain.type
Class MetadataDbTypeManager
java.lang.Object
org.mule.module.db.internal.domain.type.MetadataDbTypeManager
- All Implemented Interfaces:
- DbTypeManager
public class MetadataDbTypeManager
- extends Object
- implements DbTypeManager
Manages database types that are discovered using database metadata
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MetadataDbTypeManager
public MetadataDbTypeManager()
registerType
protected void registerType(DbType dbType)
lookup
public DbType lookup(DbConnection connection,
int id,
String name)
throws UnknownDbTypeException
- Description copied from interface:
DbTypeManager
- Finds a mapping for a given type ID and name
- Specified by:
lookup in interface DbTypeManager
- Parameters:
connection - connection used to connect to the database if requiredid - type IDname - type name
- Returns:
- a type that corresponds to the given ID and name
- Throws:
UnknownDbTypeException - when there is no managed type with the given ID and name
lookup
public DbType lookup(DbConnection connection,
String name)
throws UnknownDbTypeException
- Description copied from interface:
DbTypeManager
- Finds a mapping for a given type name
- Specified by:
lookup in interface DbTypeManager
- Parameters:
connection - connection used to connect to the database if requiredname - type name
- Returns:
- a type that corresponds to the given name
- Throws:
UnknownDbTypeException - when there is no managed type with the given name
initialise
protected void initialise(DbConnection connection)
Copyright © 2003–2014 MuleSoft, Inc.. All rights reserved.