public class CompositeDbTypeManager extends Object implements DbTypeManager
DbTypeManager instances to manage DB types| Constructor and Description |
|---|
CompositeDbTypeManager(List<DbTypeManager> typeManagers)
Creates a composed DB type manager
|
CompositeDbTypeManager(List<DbTypeManager> vendorTypeManagers,
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> vendorTypeManagers, List<DbTypeManager> typeManagers)
vendorTypeManagers - sorted type managers defined by a vendor used to resolve DB typestypeManagers - sorted type managers used to resolve DB types.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
DbTypeManagerlookup in interface DbTypeManagerconnection - 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 DbTypeManagerconnection - connection used to connect to the database if requiredname - type nameUnknownDbTypeException - when there is no managed type with the given ID and nameCopyright © 2025. All rights reserved.