Package org.dmlite.model.meta

Examples of org.dmlite.model.meta.ModelMeta


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


        throw new ActionException(error, entityAction);
      }

      IDomainModel domainModel = getDomainModel();
      if (domainModel != null) {
        ModelMeta modelMeta = domainModel.getModelMeta();
        updated = modelMeta.update(this, entity);
      }
    } catch (Exception e) {
      log.error("Error in Entity.update: " + e.getMessage());
      throw new ActionException(e.getMessage(), entityAction);
    }
View Full Code Here

    try {
      if (getConceptConfig() != null) {
        String conceptClassName = getConceptConfig().getEntityClass();
        IDomainModel domainModel = getDomainModel();
        if (domainModel != null) {
          ModelMeta modelMeta = domainModel.getModelMeta();
          copiedEntity = (T) modelMeta.createEntity(conceptClassName);
          if (copiedEntity != null) {
            copiedEntity.setOid(getOid());
            copiedEntity.update(this);
          }
        }
View Full Code Here

  public boolean equalProperties(T entity) {
    boolean equal = false;
    try {
      IDomainModel domainModel = getDomainModel();
      if (domainModel != null) {
        ModelMeta modelMeta = domainModel.getModelMeta();
        equal = modelMeta.equalProperties(this, entity);
      }
    } catch (Exception e) {
      log.error("Error in Entity.equalProperties: " + e.getMessage());
    }
    return equal;
View Full Code Here

  public boolean equalNeighbors(T entity) {
    boolean equal = false;
    try {
      IDomainModel domainModel = getDomainModel();
      if (domainModel != null) {
        ModelMeta modelMeta = domainModel.getModelMeta();
        equal = modelMeta.equalNeighbors(this, entity);
      }
    } catch (Exception e) {
      log.error("Error in Entity.equalNeighbors: " + e.getMessage());
    }
    return equal;
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 Entity.output: " + 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.