org.mule.module.db.internal.domain.type
Class MetadataDbTypeManager

java.lang.Object
  extended by 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


Constructor Summary
MetadataDbTypeManager()
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetadataDbTypeManager

public MetadataDbTypeManager()
Method Detail

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 required
id - type ID
name - 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 required
name - 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.