Package org.pworks.core.conf

Examples of org.pworks.core.conf.DatasourceConfig


  /* (non-Javadoc)
   * @see dao.DmReader#getDm(java.util.HashMap)
   */
  public TableDm getDm(HashMap<String,String>params, HashMap<String, DatasourceConfig> datasources) throws Exception{
   
    DatasourceConfig datasource = datasources.get(params.get("ds"));   
   
    TableDm dm = null;
   
    try {
      dm = getMeta(datasource, params.get("table"));
View Full Code Here


    CGConfiguration cg = loader.load(fileName);

    this.datasources = new HashMap<String, DatasourceConfig>();
    for (Iterator<DatasourceConfig> dsCfgs = cg.getDatasource().iterator(); dsCfgs
        .hasNext();) {
      DatasourceConfig dsCfg = dsCfgs.next();
      this.datasources.put(dsCfg.getId(), dsCfg);
    }

    this.cms = new HashMap<String, CodeModel>();
    for (Iterator<CmConfig> cmCfgs = cg.getCms().iterator(); cmCfgs
        .hasNext();) {
View Full Code Here

TOP

Related Classes of org.pworks.core.conf.DatasourceConfig

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.