Class ArchiveProperties
java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.properties.ArchiveProperties
- Direct Known Subclasses:
ArchiveRequestBody
ArchiveProperties defined the properties that are stored when a data source is archived or deleted. This
allows the Asset to remain in the metadata repository after the real-world artifact has gone. This is important
to prevent lineage graphs from becoming fragmented.
-
Constructor Summary
ConstructorDescriptionDefault constructorArchiveProperties
(ArchiveProperties template) Copy/clone constructor for the template properties. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compare the values of the supplied object with those stored in the current object.Returns the date when the data source was archived (or discovered missing).Returns the name of the process that either performed the archive or detected the missing data source.Return the properties that characterize where the data source was archived to.int
hashCode()
Return hash code based on properties.void
setArchiveDate
(Date archiveDate) Set up the date when the data source was archived (or discovered missing).void
setArchiveProcess
(String archiveProcess) Set up the name of the process that either performed the archive or detected the missing data source.void
setArchiveProperties
(Map<String, String> archiveProperties) Set up the properties that characterize where the data source was archived to.toString()
Standard toString method.
-
Constructor Details
-
ArchiveProperties
public ArchiveProperties()Default constructor -
ArchiveProperties
Copy/clone constructor for the template properties.- Parameters:
template
- template object to copy.
-
-
Method Details
-
getArchiveDate
Returns the date when the data source was archived (or discovered missing). Null means "now".- Returns:
- date of archive
-
setArchiveDate
Set up the date when the data source was archived (or discovered missing). Null means "now".- Parameters:
archiveDate
- date of archive
-
getArchiveProcess
Returns the name of the process that either performed the archive or detected the missing data source.- Returns:
- String name
-
setArchiveProcess
Set up the name of the process that either performed the archive or detected the missing data source.- Parameters:
archiveProcess
- String name
-
getArchiveProperties
Return the properties that characterize where the data source was archived to.- Returns:
- map of name value pairs, all strings
-
setArchiveProperties
Set up the properties that characterize where the data source was archived to.- Parameters:
archiveProperties
- map of name value pairs, all strings
-
toString
Standard toString method. -
equals
Compare the values of the supplied object with those stored in the current object. -
hashCode
public int hashCode()Return hash code based on properties.
-