igoodsdao.java

来自「一个关于物流的管理系统」· Java 代码 · 共 20 行

JAVA
20
字号
package com.shunshi.ssh.dao;

import java.util.List;

import com.shunshi.ssh.entity.Goods;
import com.shunshi.ssh.exception.GoodsDaoException;

public interface IGoodsDao {
	public void add(Goods goods) throws GoodsDaoException;	//���Goods����
	public void delete(long id) throws GoodsDaoException ;	//���Goods�����idɾ��Goods����
	public Goods findById(long id) throws GoodsDaoException;	//���id����Goods����
	public List findByUserId(long userId) throws GoodsDaoException;	//���User�û���userId����ij���û����������л�Դ��Ϣ����
	public List findAll() throws GoodsDaoException;	//��ѯ���л�Դ��Ϣ
	public void updateGoods(Goods goods) throws GoodsDaoException;	//����Goods����ʵ�����Ȱ�id�ҵ������ٸ��¶���
	public void updateState(long id,int state) throws GoodsDaoException;	//����goods״̬
	public List findByState(int state,int start,int max) throws GoodsDaoException;//���״̬�����ѯ
	public Long getTotalRowsByState(int state) throws GoodsDaoException;//ȡ�ü�¼������
	public Goods findGoodsByMaxId()throws GoodsDaoException;
}

⌨️ 快捷键说明

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