예제 #1
0
 public String buildUID() throws CompassException {
   StringBuilder sb = new StringBuilder();
   sb.append(getAlias()).append(SEPARATOR);
   for (Property idProp : getIds()) {
     String idValue = idProp.getStringValue();
     if (idValue == null) {
       throw new CompassException(
           "Missing id [" + idProp.getName() + "] for alias [" + getAlias() + "]");
     }
     sb.append(idValue);
     sb.append(SEPARATOR);
   }
   return sb.toString();
 }