org.mule.module.db.internal.resolver.param
Class StoredProcedureParamTypeResolver

java.lang.Object
  extended by org.mule.module.db.internal.resolver.param.StoredProcedureParamTypeResolver
All Implemented Interfaces:
ParamTypeResolver

public class StoredProcedureParamTypeResolver
extends Object
implements ParamTypeResolver

Resolves parameter types for stored procedure queries


Field Summary
static int PARAM_NAME_COLUN_INDEX
           
static int TYPE_ID_COLUMN_INDEX
           
static int TYPE_NAME_COLUMN_INDEX
           
 
Constructor Summary
StoredProcedureParamTypeResolver(DbTypeManager dbTypeManager)
           
 
Method Summary
 Map<Integer,DbType> getParameterTypes(DbConnection connection, QueryTemplate queryTemplate)
          Resolves actual parameter types
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PARAM_NAME_COLUN_INDEX

public static final int PARAM_NAME_COLUN_INDEX
See Also:
Constant Field Values

TYPE_ID_COLUMN_INDEX

public static final int TYPE_ID_COLUMN_INDEX
See Also:
Constant Field Values

TYPE_NAME_COLUMN_INDEX

public static final int TYPE_NAME_COLUMN_INDEX
See Also:
Constant Field Values
Constructor Detail

StoredProcedureParamTypeResolver

public StoredProcedureParamTypeResolver(DbTypeManager dbTypeManager)
Method Detail

getParameterTypes

public Map<Integer,DbType> getParameterTypes(DbConnection connection,
                                             QueryTemplate queryTemplate)
                                      throws SQLException
Description copied from interface: ParamTypeResolver
Resolves actual parameter types

Specified by:
getParameterTypes in interface ParamTypeResolver
Parameters:
connection - database connection to resolve against to
queryTemplate - query template containing UNKNOWN parameter types
Returns:
a map containing the actual type for each parameter index
Throws:
SQLException - if this method is invoked on a closed connection


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