} else {
paramName = "$" + (position + 1);
dataType = token;
}
DbParameterAccessor dbp = new DbParameterAccessor(paramName,
direction, getSqlType(dataType), getJavaClass(dataType),
position++);
allParams.put(NameNormaliser.normaliseName(paramName), dbp);
}
if ("FUNCTION".equals(type)) {
StringTokenizer s = new StringTokenizer(returns.trim()
.toLowerCase(), " ()");
dataType = s.nextToken();
if (!dataType.equals("void")) {
allParams.put("", new DbParameterAccessor("",
Direction.RETURN_VALUE, getSqlType(dataType),
getJavaClass(dataType), -1));
}
}