// Process all of the arguments.
Iterator iterator = proc.getArguments().iterator();
while (iterator.hasNext())
{
ArgumentDescriptor arg = (ArgumentDescriptor) iterator.next();
Object val = arg.getValue(obj);
int jdbcType = arg.getJdbcType();
if (val != null)
{
m_platform.setObjectForStatement(stmt, valueSub + 1, val, jdbcType);
}
else
{
m_platform.setNullForStatement(stmt, valueSub + 1, jdbcType);
}
if ((arg.getIsReturnedByProcedure()) && (callable != null))
{
callable.registerOutParameter(valueSub + 1, jdbcType);
}
valueSub++;
}