Package org.dmlite.model.config

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


   * 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

   *            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

   *            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

TOP

Related Classes of org.dmlite.model.config.DmConfig

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.