/*
 * Projrct F-11 - Web SCADA for Java
 * Copyright (C) 2002 Freedom, Inc. All Rights Reserved.
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */

package org.F11.scada.tool.io;

import java.io.IOException;
import java.sql.SQLException;
import java.util.List;

import org.F11.scada.tool.autoprint.AutoPrintForm;

/**
 * 自動印字のパラメーター取得・格納するインターフェイスです
 * @author hori
 */
public interface AutoPrintStore {
	/**
	 * 自動印刷のパラメーターをアクションフォームのリストで返します
	 * @return 自動印刷のパラメーターをアクションフォームのリストで返します
	 * @throws SQLException
	 */
	public List getAllAutoPrint() throws SQLException;

	/**
	 * タスク名の自動印刷のパラメーターをアクションフォームで返します
	 * @param name タスク名
	 * @return タスク名の自動印刷のパラメーターをアクションフォームで返します
	 * @throws IOException
	 * @throws SQLException
	 */
	public AutoPrintForm getAutoPrint(final String name)
		throws IOException, SQLException;

	/**
	 * 指定したアクションフォームの内容でパラメーターを格納します
	 * @param form アクションフォーム
	 * @throws IOException
	 * @throws SQLException
	 */
	public void updateAutoPrint(final AutoPrintForm form)
		throws IOException, SQLException;
}
