⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sysdicitemdao.java

📁 管理公司合同
💻 JAVA
字号:
/*
 * Created on 2006-10-23 16:49:11
 *
 * By Yehailong
 * Copyright juneng.com.cn, 2005-2006, All rights reserved.
 */
package cn.com.juneng.system.dao;
import java.util.List;
import java.io.Serializable;

import org.springframework.orm.hibernate3.HibernateTemplate;

import cn.com.juneng.system.vo.SysDicItemVOImpl;

/**
 * 数据库DAO接口,封装数据库的增、删、改、查等基本操作
 * @author yehailong
 */
public interface SysDicItemDAO{
	//以下是DAO的基本接口

	/**
	 * 创建一个对象,数据表增加一条记录
	 * @param obj
	 * @throws Exception
	 */
	public void create(Object obj)throws Exception;

	/**
	 * 根据主键查找数据对象
	 * @param key 主键
	 * @return 数据库映射对象Model
	 * @throws Exception
	 */
	public SysDicItemVOImpl findByPrimaryKey(String key)throws Exception;

	/**
	 * 更新对象,数据表修改一条记录
	 * @param obj 要更新的数据对象model
	 * @throws Exception
	 */
	public void update(Object obj)throws Exception;

	/**
	 * 删除数据对象model,数据表删除一条记录
	 * @param obj 要修改的数据对象model
	 * @throws Exception
	 */
	public void remove(Object obj)throws Exception;

	/**
	 * 根据主键删除对象
	 * @param key 主键
	 * @throws Exception
	 */
	public void remove(Serializable key)throws Exception;

	public List find(String queryString, int start, int maxResults);

	public List find(String queryString, Object paramValue, int start,int maxResults);

	public List find(String queryString, Object[] paramValues, int start,int maxResults);

	public int getRowCount(String fromAndWhere, Object[] paramValues);

	public HibernateTemplate getHibernateTemplate();

	public int update(String hqlString, Object[] params);

	//可在下面添加其他相关DAO接口,并在DAOImp中实现
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -