/**
 * ISchedulePersistenceService.java
 * Created Apr 23, 2008
 * Copyright (c) TANDBERG Television 2007-2008
 */
package com.tandbergtv.watchpoint.pmm.schedule;

import java.io.Serializable;

import com.tandbergtv.watchpoint.pmm.entities.Schedule;
import com.tandbergtv.workflow.core.service.Service;

/**
 * Schedule persistence service
 * 
 * @author Sahil Verma
 */
public interface ISchedulePersistenceService extends Service {
	
	/**
	 * Creates or updates the specified schedule
	 * 
	 * @param schedule
	 */
	void save(Schedule schedule);
	
	/**
	 * Returns the schedule with the specified key
	 * 
	 * @param id
	 * @return
	 */
	Schedule get(Serializable id);
	
	/**
	 * Deletes the specified schedule
	 * 
	 * @param schedule
	 */
	void delete(Schedule schedule);
}
