categoryrule.java

来自「一个基于java工厂模式的 的实现」· Java 代码 · 共 42 行

JAVA
42
字号
/*
 * CategoryRule.java
 *
 * Created on 2007年4月17日, 下午4:41
 *
 * 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.IDAOFactory;
import com.ebuy.common.rule.IRule;
import com.ebuy.common.NameProvider;
import java.util.List;

/**
 *
 * @author Administrator
 */
public class CategoryRule extends RuleAdapter
{
    
    /** Creates a new instance of CategoryRule */
    public CategoryRule()
    {
        super(NameProvider.Category);
    }


    public List findAll()
    {
       IDAO dao=DAOProvider.getDAOByNameProvider(NameProvider.Category);
       List list= dao.findAll();
       return list;
    }

    
    
}

⌨️ 快捷键说明

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