Package org.exolab.castor.jdo.conf

Examples of org.exolab.castor.jdo.conf.DataSource


   * @param props properties to be used for the DataSource
   * @return JDO Datasource configuration
   */
  public static DataSource createJdoDSConf(String dsClassName, Properties props)
  {
    DataSource dsConf = new DataSource();

    dsConf.setClassName(dsClassName);

    for (Enumeration e=props.keys(); e.hasMoreElements(); ) {
        Object key = e.nextElement();
        Object value = props.get(key);

        dsConf.addParam(createJdoConfParam(key.toString(), value.toString()));
    }

    return dsConf;
  }
View Full Code Here


   * @param dsClassName JDBC DataSource class name
   * @return JDO Datasource configuration
   */
  public static DataSource createJdoDSConf(String dsClassName)
  {
    DataSource dsConf = new DataSource();

    dsConf.setClassName(dsClassName);

    return dsConf;
  }
View Full Code Here

TOP

Related Classes of org.exolab.castor.jdo.conf.DataSource

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.