Examples of DmConfig


Examples of org.dmlite.model.config.DmConfig

    super();
    try {
      Db4o.configure().unicode(true);
      Db4o.configure().activationDepth(99);
      Db4o.configure().updateDepth(2);
      DmConfig dmConfig = new DmConfig(getDmLiteModelConfigFilePath(),
          getReusableModelConfigFilePath(),
          getSpecificModelConfigFilePath());
      ModelConfig modelConfig = dmConfig.getModelConfig(modelCode);
      String databasePath = findDataPath(modelConfig);
      db = Db4o.openFile(databasePath);
      List<Db4oModel> db4oModels = db.query(Db4oModel.class);
      if (db4oModels.isEmpty()) {
        Db4oModel db4oModel = new Db4oModel(modelCode,
View Full Code Here

Examples of org.dmlite.model.config.DmConfig

   * Constructs the XML to Db4o migrator.
   */
  public Migrator() {
    super();
    try {
      dmConfig = new DmConfig(getDmLiteModelConfigFilePath(),
          getReusableModelConfigFilePath(),
          getSpecificModelConfigFilePath());
    } catch (Exception e) {
      log.error("Error in Migrator constructor: " + e.getMessage());
    }
View Full Code Here

Examples of org.dmlite.model.config.DmConfig

   *            model code
   */
  public XmlModelContext(String modelCode) {
    super();
    try {
      DmConfig dmConfig = new DmConfig(getDmLiteModelConfigFilePath(),
          getReusableModelConfigFilePath(),
          getSpecificModelConfigFilePath());
      ModelConfig modelConfig = dmConfig.getModelConfig(modelCode);
      String dataDirectoryPath = findDataPath(modelConfig);
      persistentModel = new XmlModel(modelCode,
          getDmLiteModelConfigFilePath(),
          getReusableModelConfigFilePath(),
          getSpecificModelConfigFilePath(), dataDirectoryPath);
View Full Code Here

Examples of org.dmlite.model.config.DmConfig

   *            specific model configuration file path
   */
  public DomainModel(String modelCode, String dmLiteModelConfigFilePath,
      String reusableModelConfigFilePath,
      String specificModelConfigFilePath) {
    DmConfig dmConfig = new DmConfig(dmLiteModelConfigFilePath,
        reusableModelConfigFilePath, specificModelConfigFilePath);
    modelConfig = dmConfig.getModelConfig(modelCode);
    createEntries();
  }
View Full Code Here

Examples of org.pworks.core.conf.DmConfig

    }

    this.dms = new HashMap<String, AbsDataModel>();
    for (Iterator<DmConfig> dmCfgs = cg.getDms().iterator(); dmCfgs
        .hasNext();) {
      DmConfig dmCfg = dmCfgs.next();
      IDmReader reader = (IDmReader) Class.forName(dmCfg.getReader())
          .newInstance();
      this.dms.put(dmCfg.getId(), reader.getDm(dmCfg.getParams(),
          this.datasources));
    }

    this.tasks = new HashMap<String, GenerationTaskModel>();
    for (Iterator<GenerationTaskConfig> codeCfgs = cg.getCodes().iterator(); codeCfgs
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.