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

org.docshare.orm.DelegateFactory Maven / Gradle / Ivy

Go to download

An efficient, fast, convenient, easy to learn, easy to use MVC framework and ORM framework. It is seamless compatible with JSTL and supports FreeMarker. It can run independently, and it can also be applied to traditional Java Web projects. It is an efficient, fast, convenient, easy to learn and easy to use MVC framework and ORM framework. It is seamless compatible with JSTL and supports FreeMarker. It can be run on its own, or it can be applied to traditional Java Web projects

There is a newer version: 2023.06.19
Show newest version
package org.docshare.orm;

import org.docshare.orm.access.AccessDelegate;
import org.docshare.orm.mysql.MySQLDelegate;
import org.docshare.orm.postgres.PostgresDelegate;

public class DelegateFactory {
	static IDBDelegate mysqlDelegate=new MySQLDelegate();
	static IDBDelegate pgDelegate=new PostgresDelegate();
	static IDBDelegate accessDelegate=new AccessDelegate();
	public static IDBDelegate getIns(String dbtype){
		if(dbtype.equals("mysql")){
			return mysqlDelegate;
		}else if(dbtype.equals("postgres")){
			return pgDelegate;
		}else if(dbtype.equals("access")){
			return accessDelegate;
		}
		return null;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy