public class DefaultParamTypeResolver extends Object implements ParamTypeResolver
Modifier and Type | Field and Description |
---|---|
protected DbTypeManager |
dbTypeManager |
Modifier | Constructor and Description |
---|---|
protected |
DefaultParamTypeResolver(DbTypeManager dbTypeManager,
ParamTypeResolver metadataParamTypeResolver) |
Modifier and Type | Method and Description |
---|---|
Map<Integer,DbType> |
getParameterTypes(DbConnection connection,
QueryTemplate queryTemplate)
Resolves actual parameter types
|
protected Map<Integer,DbType> |
getParamTypesUsingMetadata(DbConnection connection,
QueryTemplate queryTemplate) |
protected final DbTypeManager dbTypeManager
protected DefaultParamTypeResolver(DbTypeManager dbTypeManager, ParamTypeResolver metadataParamTypeResolver)
public Map<Integer,DbType> getParameterTypes(DbConnection connection, QueryTemplate queryTemplate) throws SQLException
ParamTypeResolver
getParameterTypes
in interface ParamTypeResolver
connection
- database connection to resolve against toqueryTemplate
- query template containing UNKNOWN parameter typesSQLException
- if this method is invoked on a closed connectionprotected Map<Integer,DbType> getParamTypesUsingMetadata(DbConnection connection, QueryTemplate queryTemplate)
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.