public class ProcessInstanceVarRowMapper implements RowMapper
{
public Object mapRow(ResultSet rs, int rowNum) throws SQLException
{
ProcessInstanceVar processInstanceVar = new ProcessInstanceVar();
ProcessInstanceVarPk pk = new ProcessInstanceVarPk();
pk.setProcessInstanceId(rs.getString("processinstance_id"));
pk.setName(rs.getString("name"));
processInstanceVar.setVarPrimaryKey(pk);
String valueStr = rs.getString("value");
Object valueObj = getObject(valueStr);
processInstanceVar.setValue(valueObj);
return processInstanceVar;
}