81041
2019-06-20 c2462b8faa3c32534e9327a8a698212eb438e27f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package com.fgkj.dao;
 
import com.fgkj.dao.impl.Sensor_infImpl;
import com.fgkj.dao.impl.Sensor_mapinfoImpl;
import com.fgkj.dto.Sensor_mapinfo;
 
public class BaseDAOFactory {    
    
    /**
     * 获取指定实现类的对象
     * @param DAOcode
     * @return
     */
    public static BaseDAO getBaseDAO(int DAOcode){
        switch(DAOcode){
            case 1:return new Sensor_mapinfoImpl();
            case 2:return new Sensor_infImpl();
            default :return null;
        }
    }
}