// 修改 release plan public void updateRelease(ReleaseInfo releaseInfo) { ReleaseObject release = ReleaseObject.get(releaseInfo.id); release .setName(releaseInfo.name) .setDescription(releaseInfo.description) .setStartDate(releaseInfo.startDate) .setDueDate(releaseInfo.dueDate) .save(); }
public long addRelease(ReleaseInfo releaseInfo) { ReleaseObject release = new ReleaseObject(mProject.getId()); release .setName(releaseInfo.name) .setDescription(releaseInfo.description) .setStartDate(releaseInfo.startDate) .setDueDate(releaseInfo.dueDate) .save(); return release.getId(); }
// 刪除 Release public void deleteRelease(long releaseId) { ReleaseObject release = ReleaseObject.get(releaseId); if (release != null) { release.delete(); } }
public ReleaseObject getRelease(long releaseId) { return ReleaseObject.get(releaseId); }