public class EntitiesCreatorHelper extends Object
| Constructor and Description |
|---|
EntitiesCreatorHelper(OMRSRepositoryConnector enterpriseConnector,
OMRSAuditLog auditLog) |
| Modifier and Type | Method and Description |
|---|---|
EntityDetail |
addEntity(String typeName,
String qualifiedName,
InstanceProperties properties)
Returns the entity of the given type with the specified qualified name; if it doesn't already exists, it is created with the provided instance properties
|
Relationship |
addRelationship(String relationshipType,
String guid1,
String guid2,
String source,
InstanceProperties properties)
Returns the relationship of the given type with the specified qualified name; if it doesn't already exists, it is created with the provided instance properties
|
EntityDetail |
getEntity(String typeName,
String qualifiedName)
Returns the entity of the specified type retrieved based on qualified name
|
public EntitiesCreatorHelper(OMRSRepositoryConnector enterpriseConnector, OMRSAuditLog auditLog)
public EntityDetail getEntity(String typeName, String qualifiedName) throws Exception
typeName - name of the type def for the entity to be retrievedqualifiedName - qualified name property of the entity to be retrievedExceptionpublic EntityDetail addEntity(String typeName, String qualifiedName, InstanceProperties properties) throws Exception
typeName - is the entity typequalifiedName - - qualified name property of the entity, unique for the same entity typeproperties - specific to the entity typeExceptionpublic Relationship addRelationship(String relationshipType, String guid1, String guid2, String source, InstanceProperties properties) throws Exception
relationshipType - is the relationship type nameguid1 - first end of the relationshipguid2 - second end of the relationshipsource - name of the relationship creatorproperties - specific to the relationship typeExceptionCopyright © 2017–2018 ODPi. All rights reserved.