Examples of RDBMSConfiguration


Examples of org.wso2.carbon.ndatasource.rdbms.RDBMSConfiguration

            }
            configs = (NativeObject) args[3];
        }

        String dbUrl = (String) args[0];
        RDBMSConfiguration rdbmsConfig = new RDBMSConfiguration();
        try {
            if (configs != null) {
                Gson gson = new Gson();
                rdbmsConfig = gson.fromJson(HostObjectUtil.serializeJSON(configs), RDBMSConfiguration.class);
            }

            if (rdbmsConfig.getDriverClassName() == null || rdbmsConfig.getDriverClassName().equals("")) {
                rdbmsConfig.setDriverClassName(getDriverClassName(dbUrl));
            }


            rdbmsConfig.setUsername((String) args[1]);
            rdbmsConfig.setPassword((String) args[2]);
            rdbmsConfig.setUrl(dbUrl);


            try {
                rdbmsDataSource = new RDBMSDataSource(rdbmsConfig);
View Full Code Here
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.