📄 orderrule.java
字号:
/*
* OrderRule.java
*
* Created on 2007年4月24日, 上午11:03
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package com.ebuy.businessrule;
import com.ebuy.common.dao.IDAO;
import com.ebuy.common.dao.IOrderDAO;
import com.ebuy.common.rule.IOrderRule;
import com.ebuy.common.rule.IRule;
import com.ebuy.common.NameProvider;
import java.util.List;
/**
*
* @author Administrator
*/
public class OrderRule extends RuleAdapter implements IOrderRule
{
/** Creates a new instance of OrderRule */
public OrderRule()
{
super(NameProvider.Order);
}
public boolean addEntity(Object entity)
{
return this.dao.addEntity(entity);
}
public Object findByPK(Object... pk)
{
return this.dao.findByPK(pk);
}
public boolean updateStateByOrderID(int orderid, int state)
{
IOrderDAO idao=(IOrderDAO)this.dao;
return idao.updateStateByOrderID(orderid, state);
}
public List findOrdersByCustomerID(int customerid)
{
IOrderDAO idao=(IOrderDAO)this.dao;
List orders= idao.findOrdersByCustomerID(customerid);
return orders;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -