void removeByGuid(String guid) { if (guid != null) { enumDefs.removeTypeDefByGuid(guid); structDefs.removeTypeDefByGuid(guid); classificationDefs.removeTypeDefByGuid(guid); entityDefs.removeTypeDefByGuid(guid); relationshipDefs.removeTypeDefByGuid(guid); } }
void removeByGuid(String guid) { if (guid != null) { enumDefs.removeTypeDefByGuid(guid); structDefs.removeTypeDefByGuid(guid); classificationDefs.removeTypeDefByGuid(guid); entityDefs.removeTypeDefByGuid(guid); relationshipDefs.removeTypeDefByGuid(guid); } }
private void removeTypeByGuidWithNoRefResolve(AtlasBaseTypeDef typeDef) { switch (typeDef.getCategory()) { case ENUM: registryData.enumDefs.removeTypeDefByGuid(typeDef.getGuid()); break; case STRUCT: registryData.structDefs.removeTypeDefByGuid(typeDef.getGuid()); break; case CLASSIFICATION: registryData.classificationDefs.removeTypeDefByGuid(typeDef.getGuid()); break; case ENTITY: registryData.entityDefs.removeTypeDefByGuid(typeDef.getGuid()); break; case RELATIONSHIP: registryData.relationshipDefs.removeTypeDefByGuid(typeDef.getGuid()); break; } deletedTypes.add(typeDef); }
private void removeTypeByGuidWithNoRefResolve(AtlasBaseTypeDef typeDef) { switch (typeDef.getCategory()) { case ENUM: registryData.enumDefs.removeTypeDefByGuid(typeDef.getGuid()); break; case STRUCT: registryData.structDefs.removeTypeDefByGuid(typeDef.getGuid()); break; case CLASSIFICATION: registryData.classificationDefs.removeTypeDefByGuid(typeDef.getGuid()); break; case ENTITY: registryData.entityDefs.removeTypeDefByGuid(typeDef.getGuid()); break; case RELATIONSHIP: registryData.relationshipDefs.removeTypeDefByGuid(typeDef.getGuid()); break; } deletedTypes.add(typeDef); }
AtlasEnumDef enumDef = (AtlasEnumDef) typeDef; registryData.enumDefs.removeTypeDefByGuid(guid); registryData.enumDefs.addType(enumDef, new AtlasEnumType(enumDef)); } else if (typeDef.getClass().equals(AtlasStructDef.class)) { AtlasStructDef structDef = (AtlasStructDef) typeDef; registryData.structDefs.removeTypeDefByGuid(guid); registryData.structDefs.addType(structDef, new AtlasStructType(structDef)); } else if (typeDef.getClass().equals(AtlasClassificationDef.class)) { AtlasClassificationDef classificationDef = (AtlasClassificationDef) typeDef; registryData.classificationDefs.removeTypeDefByGuid(guid); registryData.classificationDefs.addType(classificationDef, new AtlasClassificationType(classificationDef)); AtlasEntityDef entityDef = (AtlasEntityDef) typeDef; registryData.entityDefs.removeTypeDefByGuid(guid); registryData.entityDefs.addType(entityDef, new AtlasEntityType(entityDef)); } else if (typeDef.getClass().equals(AtlasRelationshipDef.class)) { AtlasRelationshipDef relationshipDef = (AtlasRelationshipDef) typeDef; registryData.relationshipDefs.removeTypeDefByGuid(guid); registryData.relationshipDefs.addType(relationshipDef, new AtlasRelationshipType(relationshipDef));
AtlasEnumDef enumDef = (AtlasEnumDef) typeDef; registryData.enumDefs.removeTypeDefByGuid(guid); registryData.enumDefs.addType(enumDef, new AtlasEnumType(enumDef)); } else if (typeDef.getClass().equals(AtlasStructDef.class)) { AtlasStructDef structDef = (AtlasStructDef) typeDef; registryData.structDefs.removeTypeDefByGuid(guid); registryData.structDefs.addType(structDef, new AtlasStructType(structDef)); } else if (typeDef.getClass().equals(AtlasClassificationDef.class)) { AtlasClassificationDef classificationDef = (AtlasClassificationDef) typeDef; registryData.classificationDefs.removeTypeDefByGuid(guid); registryData.classificationDefs.addType(classificationDef, new AtlasClassificationType(classificationDef)); AtlasEntityDef entityDef = (AtlasEntityDef) typeDef; registryData.entityDefs.removeTypeDefByGuid(guid); registryData.entityDefs.addType(entityDef, new AtlasEntityType(entityDef)); } else if (typeDef.getClass().equals(AtlasRelationshipDef.class)) { AtlasRelationshipDef relationshipDef = (AtlasRelationshipDef) typeDef; registryData.relationshipDefs.removeTypeDefByGuid(guid); registryData.relationshipDefs.addType(relationshipDef, new AtlasRelationshipType(relationshipDef));