/*
 * MosP - Mind Open Source Project    http://www.mosp.jp/
 * Copyright (C) MIND Co., Ltd.       http://www.e-mind.co.jp/
 * 
 * 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 jp.mosp.payroll.base;

import java.sql.Connection;
import java.util.Properties;

import jp.mosp.common.common.BaseDao;
import jp.mosp.common.dto.CmAspUserDto;
import jp.mosp.common.dto.CmUserDto;

/**
 *  MosP給与計算用Daoの基本機能を提供する。<br><br>
 */
public abstract class PayrollDao extends BaseDao {
	
	/**
	 * 給与計算システムDAO共通初期化処理を行う。<br><br>
	 * 以下の処理を行う。
	 * <ul><li>
	 * {@link BaseDao#INSERT_DATE} 設定
	 * </li><li>
	 * {@link BaseDao#INSERT_USER} 設定
	 * </li><li>
	 * {@link BaseDao#UPDATE_DATE} 設定
	 * </li><li>
	 * {@link BaseDao#UPDATE_USER} 設定
	 * </li></ul>
	 */
	public PayrollDao() {
		INSERT_DATE = "INSERT_DATE";
		INSERT_USER = "INSERT_USER";
		UPDATE_DATE = "UPDATE_DATE";
		UPDATE_USER = "UPDATE_USER";
	}
	
	/**
	 * 給与計算システムDAO共通初期化処理を行う。<br><br>
	 * 以下の処理を行う。
	 * <ul><li>
	 * {@link BaseDao#BaseDao(java.util.Properties, String, jp.mosp.common.dto.CmAspUserDto, jp.mosp.common.dto.CmUserDto, java.sql.Connection)}
	 * </li><li>
	 * {@link BaseDao#INSERT_DATE} 設定
	 * </li><li>
	 * {@link BaseDao#INSERT_USER} 設定
	 * </li><li>
	 * {@link BaseDao#UPDATE_DATE} 設定
	 * </li><li>
	 * {@link BaseDao#UPDATE_USER} 設定
	 * </li></ul>
	 * @param cfg     設定ファイル
	 * @param cmd     コマンド
	 * @param aspUser ASPユーザー
	 * @param user    ユーザー
	 * @param conn    DBコネクション
	 */
	public PayrollDao(
			Properties   cfg,
			String       cmd,
			CmAspUserDto aspUser,
			CmUserDto    user,
			Connection   conn
	) {
		super(cfg, cmd, aspUser, user, conn);
		INSERT_DATE = "INSERT_DATE";
		INSERT_USER = "INSERT_USER";
		UPDATE_DATE = "UPDATE_DATE";
		UPDATE_USER = "UPDATE_USER";
	}
	
}
