Package org.castor.cpa.test.framework.xml

Examples of org.castor.cpa.test.framework.xml.Param


        }

        String user = null;
        String password = null;
        for (int i = 0; i < driver.getParamCount(); i++) {
            Param param = driver.getParam(i);
            if ("user".equalsIgnoreCase(param.getName())) { user = param.getValue(); }
            if ("password".equalsIgnoreCase(param.getName())) { password = param.getValue(); }
        }
        if (user == null) {
            throw new CPAConfigException("Parameter 'user' is missing for driver "
                    + "in database config '" + db + "'.");
        }
View Full Code Here


                    + "in database config '" + db + "'.");
        }

        Properties props = new Properties();
        for (int i = 0; i < datasource.getParamCount(); i++) {
            Param param = datasource.getParam(i);
            props.put(param.getName(), param.getValue());
        }
       
        return JDOConfFactory.createDataSource(classname, props);
    }
View Full Code Here

                        + "in global transaction config '" + tx + "'.");
            }
           
            Properties props = new Properties();
            for (int i = 0; i < manager.getParamCount(); i++) {
                Param param = manager.getParam(i);
                props.put(param.getName(), param.getValue());
            }
           
            return JDOConfFactory.createGlobalTransactionDemarcation(name, props);
        } else {
            throw new CPAConfigException("Neither local nor global mode specified "
View Full Code Here

TOP

Related Classes of org.castor.cpa.test.framework.xml.Param

Copyright © 2018 www.massapicom. 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.