Package org.dmlite.model.meta

Examples of org.dmlite.model.meta.ModelMeta


    IDomainModel domainModel = getDomainModel();
    if (domainModel != null) {
      if (domainModel.isInitialized()) {
        ConceptConfig conceptConfig = entity.getConceptConfig();
        if (conceptConfig != null) {
          ModelMeta modelMeta = domainModel.getModelMeta();
          if (!conceptConfig.getIdConfig().isEmpty()) {
            validation = modelMeta.uniqueId(this, entity,
                updateEntity)
                && validation;
          }
        }
      }
View Full Code Here


      if (updated) {
        if (postUpdate(backupBeforeEntity, entity)) {
          IDomainModel domainModel = getDomainModel();
          if (domainModel != null && !domainModel.isSession()
              && domainModel.isInitialized()) {
            ModelMeta modelMeta = domainModel.getModelMeta();
            modelMeta.setParents(updateEntity, this);
            domainModel.notifyObservers(entitiesUpdateAction);
          }
          return true;
        } else {
          if (entity.update(backupBeforeEntity)) {
View Full Code Here

   */
  public void output(String title) {
    try {
      IDomainModel domainModel = getDomainModel();
      if (domainModel != null) {
        ModelMeta modelMeta = domainModel.getModelMeta();
        modelMeta.output(this, title);
      }
    } catch (Exception e) {
      log.error("Error in Entities.output: " + e.getMessage());
    }
  }
View Full Code Here

        String code = (String) propertyValue;
        setCode(code);
      } else {
        IDomainModel domainModel = getDomainModel();
        if (domainModel != null) {
          ModelMeta modelMeta = domainModel.getModelMeta();
          modelMeta.setProperty(this, propertyCode, propertyValue);
        }
      }
    } catch (Exception e) {
      log.error("Error in Entity.setProperty: " + e.getMessage());
    }
View Full Code Here

      } else if (propertyCode.equals("code")) {
        property = this.getCode();
      } else {
        IDomainModel domainModel = getDomainModel();
        if (domainModel != null) {
          ModelMeta modelMeta = domainModel.getModelMeta();
          property = modelMeta.getProperty(this, propertyCode);
        }
      }
    } catch (Exception e) {
      log.error("Error in Entity.getProperty: " + getCode() + "."
          + propertyCode + " " + e.getMessage());
View Full Code Here

   */
  public void setNeighbor(String neighborCode, Object neighbor) {
    try {
      IDomainModel domainModel = getDomainModel();
      if (domainModel != null) {
        ModelMeta modelMeta = domainModel.getModelMeta();
        modelMeta.setNeighbor(this, neighborCode, neighbor);
      }
    } catch (Exception e) {
      log.error("Error in Entity.setNeighbor: " + e.getMessage());
    }
  }
View Full Code Here

  public Object getNeighbor(String neighborCode) {
    Object neighbor = null;
    try {
      IDomainModel domainModel = getDomainModel();
      if (domainModel != null) {
        ModelMeta modelMeta = domainModel.getModelMeta();
        neighbor = modelMeta.getNeighbor(this, neighborCode);
      }
    } catch (Exception e) {
      log.error("Error in Entity.getNeighbor: " + e.getMessage());
    }
    return neighbor;
View Full Code Here

   */
  public void setNeighborEntity(String neighborCode, IEntity neighborEntity) {
    try {
      IDomainModel domainModel = getDomainModel();
      if (domainModel != null) {
        ModelMeta modelMeta = domainModel.getModelMeta();
        modelMeta.setNeighborEntity(this, neighborCode, neighborEntity);
      }
    } catch (Exception e) {
      log.error("Error in Entity.setNeighborEntity: " + e.getMessage());
    }
  }
View Full Code Here

  public IEntity<?> getNeighborEntity(String neighborCode) {
    IEntity neighborEntity = null;
    try {
      IDomainModel domainModel = getDomainModel();
      if (domainModel != null) {
        ModelMeta modelMeta = domainModel.getModelMeta();
        neighborEntity = modelMeta
            .getNeighborEntity(this, neighborCode);
      }
    } catch (Exception e) {
      log.error("Error in Entity.getNeighborEntity: " + e.getMessage());
    }
View Full Code Here

  public void setNeighborEntities(String neighborCode,
      IEntities<?> neighborEntities) {
    try {
      IDomainModel domainModel = getDomainModel();
      if (domainModel != null) {
        ModelMeta modelMeta = domainModel.getModelMeta();
        modelMeta.setNeighborEntities(this, neighborCode,
            neighborEntities);
      }
    } catch (Exception e) {
      log.error("Error in Entity.setNeighborEntities: " + e.getMessage());
    }
View Full Code Here

TOP

Related Classes of org.dmlite.model.meta.ModelMeta

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.