Package x.sql2.configs

Source Code of x.sql2.configs.MSSQLConnectionsConfig

package x.sql2.configs;

import x.sql2.dialect.MSSQLDialect;
import x.sql2.enums.SQLDatabaseType;


public class MSSQLConnectionsConfig extends ISQLConnectionsConfig {

    public MSSQLConnectionsConfig(String host_port, String dbName, String username, String password, int connectionsLimit) {
        setDriverName("net.sourceforge.jtds.jdbc.Driver");
        setConnectionString("jdbc:jtds:sqlserver://"+host_port+"/"+dbName);
        setUsername(username);
        setPassword(password);
        setConnectionsCount(connectionsLimit);
        setDialect(new MSSQLDialect());
       
    }

    @Override
    public SQLDatabaseType getDatabaseType() {
        return SQLDatabaseType.MSSQL;
    }

   

}
TOP

Related Classes of x.sql2.configs.MSSQLConnectionsConfig

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.