Class ExternalIdentifier
java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementControlHeader
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementHeader
org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementBase
org.odpi.openmetadata.frameworks.connectors.properties.beans.Referenceable
org.odpi.openmetadata.frameworks.connectors.properties.beans.ExternalIdentifier
ExternalIdentifier stores information about an identifier for the asset that is used in an external system.
This is used for correlating information about the asset across different systems.
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
protected String
protected Date
protected String
protected Date
protected long
protected String
protected KeyPattern
protected Referenceable
protected String
protected String
protected String
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.Referenceable
additionalProperties, qualifiedName
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementBase
extendedProperties
Fields inherited from class org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementControlHeader
CURRENT_AUDIT_HEADER_VERSION
-
Constructor Summary
ConstructorDescriptionDefault constructorExternalIdentifier
(ExternalIdentifier template) Copy/clone constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compare the values of the supplied object with those stored in the current object.Return the description of the external identifier.Return the username of the person or process that created the instance in the external system.Return the date/time when the instance in the external system was created.Return the username of the person or process that last updated the instance in the external system.Return the date/time that the instance in the external system was last updated.long
Return the latest version of the element in the external system.Return the external identifier for this asset.Return the key pattern that is used with this external identifier.getScope()
Return the scope of this external identifier.Return the text description of the scope for this external identifier.Return details of the source system where this external identifier comes from.getUsage()
Return a description of how, where and when this external identifier is used.int
hashCode()
Hash of propertiesvoid
setDescription
(String description) Set up the description of the external identifier.void
setExternalInstanceCreatedBy
(String externalInstanceCreatedBy) Set up the username of the person or process that created the instance in the external system.void
setExternalInstanceCreationTime
(Date externalInstanceCreationTime) Set up the date/time when the instance in the external system was created.void
setExternalInstanceLastUpdatedBy
(String externalInstanceLastUpdatedBy) Set up the username of the person or process that last updated the instance in the external system.void
setExternalInstanceLastUpdateTime
(Date externalInstanceLastUpdateTime) Set up the date/time that the instance in the external system was last updated.void
setExternalInstanceVersion
(long externalInstanceVersion) Set up the latest version of the element in the external system.void
setIdentifier
(String identifier) Set up the external identifier for this asset.void
setKeyPattern
(KeyPattern keyPattern) Set up the key pattern that is used with this external identifier.void
setScope
(Referenceable scope) Set up the scope of this external identifier.void
setScopeDescription
(String scopeDescription) Set up the text description of the scope for this external identifier.void
Set up details of the source system where this external identifier comes from.void
Set up a description of how, where and when this external identifier is used.toString()
Standard toString method.Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.Referenceable
getAdditionalProperties, getQualifiedName, setAdditionalProperties, setQualifiedName
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementBase
getExtendedProperties, setExtendedProperties
Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementHeader
getClassifications, getGUID, setClassifications, setGUID
Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementControlHeader
getHeaderVersion, getOrigin, getStatus, getType, getVersions, setHeaderVersion, setOrigin, setStatus, setType, setVersions
-
Field Details
-
identifier
-
description
-
usage
-
source
-
keyPattern
-
externalInstanceCreatedBy
-
externalInstanceCreationTime
-
externalInstanceLastUpdatedBy
-
externalInstanceLastUpdateTime
-
externalInstanceVersion
protected long externalInstanceVersion -
scope
-
scopeDescription
-
-
Constructor Details
-
ExternalIdentifier
public ExternalIdentifier()Default constructor -
ExternalIdentifier
Copy/clone constructor.- Parameters:
template
- element to copy
-
-
Method Details
-
getIdentifier
Return the external identifier for this asset.- Returns:
- String identifier
-
setIdentifier
Set up the external identifier for this asset.- Parameters:
identifier
- String identifier
-
getDescription
Return the description of the external identifier.- Returns:
- String text
-
setDescription
Set up the description of the external identifier.- Parameters:
description
- String text
-
getUsage
Return a description of how, where and when this external identifier is used.- Returns:
- String usage description
-
setUsage
Set up a description of how, where and when this external identifier is used.- Parameters:
usage
- String usage description
-
getSource
Return details of the source system where this external identifier comes from.- Returns:
- String server identifier
-
setSource
Set up details of the source system where this external identifier comes from.- Parameters:
source
- String server identifier
-
getKeyPattern
Return the key pattern that is used with this external identifier.- Returns:
- KeyPattern enum
-
setKeyPattern
Set up the key pattern that is used with this external identifier.- Parameters:
keyPattern
- KeyPattern enum
-
getExternalInstanceCreatedBy
Return the username of the person or process that created the instance in the external system.- Returns:
- name
-
setExternalInstanceCreatedBy
Set up the username of the person or process that created the instance in the external system.- Parameters:
externalInstanceCreatedBy
- name
-
getExternalInstanceCreationTime
Return the date/time when the instance in the external system was created.- Returns:
- date
-
setExternalInstanceCreationTime
Set up the date/time when the instance in the external system was created.- Parameters:
externalInstanceCreationTime
- date
-
getExternalInstanceLastUpdatedBy
Return the username of the person or process that last updated the instance in the external system.- Returns:
- name
-
setExternalInstanceLastUpdatedBy
Set up the username of the person or process that last updated the instance in the external system.- Parameters:
externalInstanceLastUpdatedBy
- name
-
getExternalInstanceLastUpdateTime
Return the date/time that the instance in the external system was last updated.- Returns:
- date
-
setExternalInstanceLastUpdateTime
Set up the date/time that the instance in the external system was last updated.- Parameters:
externalInstanceLastUpdateTime
- date
-
getExternalInstanceVersion
public long getExternalInstanceVersion()Return the latest version of the element in the external system.- Returns:
- long
-
setExternalInstanceVersion
public void setExternalInstanceVersion(long externalInstanceVersion) Set up the latest version of the element in the external system.- Parameters:
externalInstanceVersion
- long
-
getScope
Return the scope of this external identifier. This depends on the key pattern. It may be a server definition, a reference data set or glossary term.- Returns:
- Referenceable scope
-
setScope
Set up the scope of this external identifier. This depends on the key pattern. It may be a server definition, a reference data set or glossary term.- Parameters:
scope
- Referenceable object defining the scope of this external identifier.
-
getScopeDescription
Return the text description of the scope for this external identifier.- Returns:
- String scope description
-
setScopeDescription
Set up the text description of the scope for this external identifier.- Parameters:
scopeDescription
- String scope description
-
toString
Standard toString method.- Overrides:
toString
in classReferenceable
- Returns:
- print out of variables in a JSON-style
-
equals
Compare the values of the supplied object with those stored in the current object.- Overrides:
equals
in classReferenceable
- Parameters:
objectToCompare
- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Hash of properties- Overrides:
hashCode
in classReferenceable
- Returns:
- int
-