/** * Creates a new task with the primary key. Does not add the task to the database. * * @param taskId the primary key for the new task * @return the new task */ @Override public Task create(long taskId) { Task task = new TaskImpl(); task.setNew(true); task.setPrimaryKey(taskId); return task; }