Package org.dmlite.model.id

Examples of org.dmlite.model.id.Id


   *
   * @return entity id
   */
  public Id getId() {
    IdConfig idConfig = getConceptConfig().getIdConfig();
    id = new Id(this);

    if (!idConfig.isPropertyEmpty()) {
      for (String propertyCode : idConfig.getPropertyCodeList()) {
        Object property = getProperty(propertyCode);
        id.add(propertyCode, property);
View Full Code Here


    if (entity == null) {
      equal = false;
    } else if (entity == this) {
      equal = true;
    } else {
      Id idLeft = getId();
      Id idRight = entity.getId();
      if (idLeft != null && idRight != null) {
        if (idLeft.size() == idRight.size()) {
          for (String propertyCode : idLeft.getPropertyCodeList()) {
            Object propertyLeft = idLeft.getProperty(propertyCode);
            Object propertyRight = idRight
                .getProperty(propertyCode);
            if (!propertyLeft.equals(propertyRight)) {
              equal = false;
              break;
            }
          }
          for (String neighborCode : idLeft.getNeighborCodeList()) {
            IEntity neighborLeft = idLeft.getNeighbor(neighborCode);
            IEntity neighborRight = idRight
                .getNeighbor(neighborCode);
            if (neighborLeft != null && neighborRight != null
                && !neighborLeft.equals(neighborRight)) {
              equal = false;
              break;
View Full Code Here

TOP

Related Classes of org.dmlite.model.id.Id

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.