public void updateGuid(String typeName, String newGuid) { if (typeName != null) { T1 typeDef = typeDefNameMap.get(typeName); if (typeDef != null) { String currGuid = typeDef.getGuid(); if (!typeDefGuidMap.containsKey(newGuid) || !StringUtils.equals(currGuid, newGuid)) { if(LOG.isDebugEnabled()) { if (!typeDefGuidMap.containsKey(newGuid)) { LOG.debug("TypeDefGuidMap doesn't contain entry for guid {}. Adding new entry", newGuid); } else { LOG.debug("Removing entry for guid {} and adding entry for guid {}", currGuid, newGuid); } } if (currGuid != null) { typeDefGuidMap.remove(currGuid); } typeDef.setGuid(newGuid); if (newGuid != null) { typeDefGuidMap.put(newGuid, typeDef); } typeCache.updateGuid(typeName, currGuid, newGuid); } } } }
public void updateGuid(String typeName, String newGuid) { if (typeName != null) { T1 typeDef = typeDefNameMap.get(typeName); if (typeDef != null) { String currGuid = typeDef.getGuid(); if (!typeDefGuidMap.containsKey(newGuid) || !StringUtils.equals(currGuid, newGuid)) { if(LOG.isDebugEnabled()) { if (!typeDefGuidMap.containsKey(newGuid)) { LOG.debug("TypeDefGuidMap doesn't contain entry for guid {}. Adding new entry", newGuid); } else { LOG.debug("Removing entry for guid {} and adding entry for guid {}", currGuid, newGuid); } } if (currGuid != null) { typeDefGuidMap.remove(currGuid); } typeDef.setGuid(newGuid); if (newGuid != null) { typeDefGuidMap.put(newGuid, typeDef); } typeCache.updateGuid(typeName, currGuid, newGuid); } } } }
typeDef.setDescription(description); typeDef.setTypeVersion(typeVersion); typeDef.setGuid(guid); typeDef.setCreatedBy(createdBy); typeDef.setUpdatedBy(updatedBy);
typeDef.setServiceType(serviceType); typeDef.setTypeVersion(typeVersion); typeDef.setGuid(guid); typeDef.setCreatedBy(createdBy); typeDef.setUpdatedBy(updatedBy);
protected AtlasBaseTypeDef(TypeCategory category, String name, String description, String typeVersion, Map<String, String> options) { super(); this.category = category; setGuid(null); setCreatedBy(null); setUpdatedBy(null); setCreateTime(null); setUpdateTime(null); setVersion(null); setName(name); setDescription(description); setTypeVersion(typeVersion); setOptions(options); }
typeDef.setGuid(UUID.randomUUID().toString());
protected AtlasBaseTypeDef(TypeCategory category, String name, String description, String typeVersion, Map<String, String> options) { super(); this.category = category; setGuid(null); setCreatedBy(null); setUpdatedBy(null); setCreateTime(null); setUpdateTime(null); setVersion(null); setName(name); setDescription(description); setTypeVersion(typeVersion); setOptions(options); }
typeDef.setGuid(UUID.randomUUID().toString());
protected AtlasBaseTypeDef(AtlasBaseTypeDef other) { if (other != null) { this.category = other.category; setGuid(other.getGuid()); setCreatedBy(other.getCreatedBy()); setUpdatedBy(other.getUpdatedBy()); setCreateTime(other.getCreateTime()); setUpdateTime(other.getUpdateTime()); setVersion(other.getVersion()); setName(other.getName()); setDescription(other.getDescription()); setTypeVersion(other.getTypeVersion()); setOptions(other.getOptions()); } else { this.category = TypeCategory.PRIMITIVE; setGuid(null); setCreatedBy(null); setUpdatedBy(null); setCreateTime(null); setUpdateTime(null); setVersion(null); setName(null); setDescription(null); setTypeVersion(null); setOptions(null); } }
protected AtlasBaseTypeDef(AtlasBaseTypeDef other) { if (other != null) { this.category = other.category; setGuid(other.getGuid()); setCreatedBy(other.getCreatedBy()); setUpdatedBy(other.getUpdatedBy()); setCreateTime(other.getCreateTime()); setUpdateTime(other.getUpdateTime()); setVersion(other.getVersion()); setName(other.getName()); setDescription(other.getDescription()); setTypeVersion(other.getTypeVersion()); setOptions(other.getOptions()); } else { this.category = TypeCategory.PRIMITIVE; setGuid(null); setCreatedBy(null); setUpdatedBy(null); setCreateTime(null); setUpdateTime(null); setVersion(null); setName(null); setDescription(null); setTypeVersion(null); setOptions(null); } }