org.mule.module.db.internal.domain.type
Interface DbTypeManager

All Known Implementing Classes:
CompositeDbTypeManager, MetadataDbTypeManager, StaticDbTypeManager

public interface DbTypeManager

Manages types for a database instance


Method Summary
 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
 

Method Detail

lookup

DbType lookup(DbConnection connection,
              int id,
              String name)
              throws UnknownDbTypeException
Finds a mapping for a given type ID and name

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

DbType lookup(DbConnection connection,
              String name)
              throws UnknownDbTypeException
Finds a mapping for a given type name

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 name
Throws:
UnknownDbTypeException - when there is no managed type with the given name


Copyright © 2003–2014 MuleSoft, Inc.. All rights reserved.