All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.gdface.facelog.db.mysql.TableInstance Maven / Gradle / Ivy

There is a newer version: 2.5.1
Show newest version
// ______________________________________________________
// Generated by sql2java - https://github.com/10km/sql2java-2-6-7 (custom branch) 
// modified by guyadong from
// sql2java original version https://sourceforge.net/projects/sql2java/ 
// JDBC driver used at code generation time: com.mysql.jdbc.Driver
// template: tableinstance.java.vm
// ______________________________________________________
package net.gdface.facelog.db.mysql;
import net.gdface.facelog.db.TableManager;
import net.gdface.facelog.db.BaseBean;
import net.gdface.facelog.db.DeviceBean;
import net.gdface.facelog.db.DeviceGroupBean;
import net.gdface.facelog.db.FaceBean;
import net.gdface.facelog.db.FeatureBean;
import net.gdface.facelog.db.ImageBean;
import net.gdface.facelog.db.LogBean;
import net.gdface.facelog.db.PermitBean;
import net.gdface.facelog.db.PersonBean;
import net.gdface.facelog.db.PersonGroupBean;
import net.gdface.facelog.db.StoreBean;
import net.gdface.facelog.db.LogLightBean;
import java.util.Map;
import java.util.Hashtable;

/**
 * @author guyadong
 *
 */
public class TableInstance{
    private static final Map>,TableManager> INSTANCE_MAP = new Hashtable>,TableManager>(){
        private static final long serialVersionUID = 1L;
        {
        put(DeviceBean.class,DeviceManager.getInstance());
        put(DeviceGroupBean.class,DeviceGroupManager.getInstance());
        put(FaceBean.class,FaceManager.getInstance());
        put(FeatureBean.class,FeatureManager.getInstance());
        put(ImageBean.class,ImageManager.getInstance());
        put(LogBean.class,LogManager.getInstance());
        put(PermitBean.class,PermitManager.getInstance());
        put(PersonBean.class,PersonManager.getInstance());
        put(PersonGroupBean.class,PersonGroupManager.getInstance());
        put(StoreBean.class,StoreManager.getInstance());
        put(LogLightBean.class,LogLightManager.getInstance());
    }};
    @SuppressWarnings("unchecked")
    public static final >TableManager getInstance(Class clazz){
        return (TableManager) INSTANCE_MAP.get(clazz);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy