public SPCommandImpl(String sqlString, MappingWrapper config, List params) {
super(sqlString, config, null);
Iterator i = params.iterator();
for (int idx = 1; i.hasNext(); idx++) {
Parameter p = (Parameter) i.next();
int index = p.getColumnType().lastIndexOf('.');
String pkg = p.getColumnType().substring(0, index);
String typeName = p.getColumnType().substring(index + 1);
Type sdoType = TypeHelper.INSTANCE.getType(pkg, typeName);
int direction = ParameterImpl.IN;
if ("OUT".equalsIgnoreCase(p.getDirection())) {
direction = ParameterImpl.OUT;
} else if ("INOUT".equalsIgnoreCase(p.getDirection())) {
direction = ParameterImpl.IN_OUT;
}
parameters.findOrCreateParameterWithIndex(idx, direction, sdoType);
}