use of org.apache.ibatis.scripting.defaults.DefaultParameterHandler in project pinpoint by naver.
the class BindingLogPlugin32 method getParameters.
private List<String> getParameters(MappedStatement ms, Object parameterObject, BoundSql boundSql) throws SQLException {
// DefaultParameterHandler is the only implementation of parameterHandler interface currently. it may be changed later.
// need additional codes to find a appropriate implementation in that case.
ParameterHandler parameterHandler = new DefaultParameterHandler(ms, parameterObject, boundSql);
PreparedStatementParameterLogger parameterLogger = new PreparedStatementParameterLogger();
parameterHandler.setParameters(parameterLogger);
return parameterLogger.getParameters();
}
Aggregations