📄 igoodsdao.java
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -