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

📄 providerdaoimpl.java

📁 一个关于tlms的一个小程序 看看能否帮助到别人
💻 JAVA
字号:
package com.szmx.tlms.admin.dao.impl;

import com.szmx.framework.base.dao.impl.BaseDaoImpl;
import com.szmx.framework.base.model.Pagination;
import com.szmx.tlms.admin.dao.ProviderDAO;
import com.szmx.tlms.admin.model.Provider;
import com.szmx.tlms.admin.model.SqlMapConstVal;
import com.szmx.tlms.admin.model.BussinessType;

import java.util.Map;

/**
 * Created by IntelliJ IDEA.
 * User: Administrator
 * Date: 2006-7-31
 * Time: 8:32:37
 * To change this template use File | Settings | File Templates.
 */
public class ProviderDAOImpl extends BaseDaoImpl implements ProviderDAO {
// Provider DAO Methods  Begin: ----------------------------------------

    /**
     * This method is for admin to search Provider based on
     * search criteria with pagination and sort.
     *
     * @param pagination (the pagination object)
     * @param paraMap    (map)[should contains properties]
     *                   bussinessID : Long
     *                   busSpecies : String
     *                   prefixContract : String
     * @return RelationInfo list for search result
     */
    public Pagination searchProviders(Pagination pagination, Map paraMap) {
        //第一个参数对应的是sql-map-admin.xml中
        //ID为searchProviderTypeList的Sql语句
        //第二个参数为此Sql语句需的参数
        //第三个参数是一个表格控件
        return findPageByCombinedHsql(SqlMapConstVal.SEARCHPROVIDERTYPELIST, paraMap, pagination);
    }

    /**
     * This method is for admin to get the Provider based on special Long id.
     *
     * @param id (the physic id of the Provider : Long)
     * @return Provider object for search result
     */
    public Provider getProvider(Long id) {
        return (Provider) super.getObject(Provider.class, id);
    }


    /**
     * This method is for admin to save the Provider based on special Provider object.
     *
     * @param provider (Provider object)
     */
    public void saveProvider(Provider provider) {
        super.saveObject(provider);
    }

    /**
     * This method is for admin to remove the Provider based on checked Provider.
     *
     * @param id (the id of Provider , Long value.)
     */
    public void removeProvider(Long id) {
        super.removeObject(Provider.class, id);
    }

// Provider DAO Methods  End: ----------------------------------------

}

⌨️ 快捷键说明

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