Source:
<code>public long create(SprintObject sprint) { long currentTime = System.currentTimeMillis(); IQueryValueSet valueSet = new MySQLQuerySet(); SerialNumberObject serialNumber = SerialNumberDAO.getInstance().get(sprint.getProjectId()); long sprintId = serialNumber.getSprintId() + 1; valueSet.addTableName(SprintEnum.TABLE_NAME); valueSet.addInsertValue(SprintEnum.SERIAL_ID, sprintId); valueSet.addInsertValue(SprintEnum.GOAL, sprint.getSprintGoal()); valueSet.addInsertValue(SprintEnum.INTERVAL, sprint.getInterval()); valueSet.addInsertValue(SprintEnum.MEMBERS, sprint.getMembersNumber()); valueSet.addInsertValue(SprintEnum.AVAILABLE_HOURS, sprint.getHoursCanCommit()); valueSet.addInsertValue(SprintEnum.FOCUS_FACTOR, sprint.getFocusFactor()); valueSet.addInsertValue(SprintEnum.START_DATE, sprint.getStartDate()); valueSet.addInsertValue(SprintEnum.DEMO_DATE, sprint.getDemoDate()); valueSet.addInsertValue(SprintEnum.DEMO_PLACE, sprint.getDemoPlace()); valueSet.addInsertValue(SprintEnum.DAILY_INFO, sprint.getDailyInfo()); valueSet.addInsertValue(SprintEnum.PROJECT_ID, sprint.getProjectId()); if (sprint.getCreateTime() > 0) { valueSet.addInsertValue(SprintEnum.CREATE_TIME, sprint.getCreateTime()); valueSet.addInsertValue(SprintEnum.UPDATE_TIME, sprint.getCreateTime()); } else { valueSet.addInsertValue(SprintEnum.CREATE_TIME, currentTime); valueSet.addInsertValue(SprintEnum.UPDATE_TIME, currentTime); } String query = valueSet.getInsertQuery(); long id = mControl.executeInsert(query); <START> serialNumber.setId(SerialNumberEnum.SPRINT, sprintId); <END> serialNumber.save(); return id; }</code><technical_language>setSprintId</technical_language>

Target:
public long create(SprintObject sprint) { long currentTime = System.currentTimeMillis(); IQueryValueSet valueSet = new MySQLQuerySet(); SerialNumberObject serialNumber = SerialNumberDAO.getInstance().get(sprint.getProjectId()); long sprintId = serialNumber.getSprintId() + 1; valueSet.addTableName(SprintEnum.TABLE_NAME); valueSet.addInsertValue(SprintEnum.SERIAL_ID, sprintId); valueSet.addInsertValue(SprintEnum.GOAL, sprint.getSprintGoal()); valueSet.addInsertValue(SprintEnum.INTERVAL, sprint.getInterval()); valueSet.addInsertValue(SprintEnum.MEMBERS, sprint.getMembersNumber()); valueSet.addInsertValue(SprintEnum.AVAILABLE_HOURS, sprint.getHoursCanCommit()); valueSet.addInsertValue(SprintEnum.FOCUS_FACTOR, sprint.getFocusFactor()); valueSet.addInsertValue(SprintEnum.START_DATE, sprint.getStartDate()); valueSet.addInsertValue(SprintEnum.DEMO_DATE, sprint.getDemoDate()); valueSet.addInsertValue(SprintEnum.DEMO_PLACE, sprint.getDemoPlace()); valueSet.addInsertValue(SprintEnum.DAILY_INFO, sprint.getDailyInfo()); valueSet.addInsertValue(SprintEnum.PROJECT_ID, sprint.getProjectId()); if (sprint.getCreateTime() > 0) { valueSet.addInsertValue(SprintEnum.CREATE_TIME, sprint.getCreateTime()); valueSet.addInsertValue(SprintEnum.UPDATE_TIME, sprint.getCreateTime()); } else { valueSet.addInsertValue(SprintEnum.CREATE_TIME, currentTime); valueSet.addInsertValue(SprintEnum.UPDATE_TIME, currentTime); } String query = valueSet.getInsertQuery(); long id = mControl.executeInsert(query); serialNumber.setSprintId(sprintId); serialNumber.save(); return id; }