Record Class DatabaseElementAnnotation
java.lang.Object
java.lang.Record
org.odpi.openmetadata.frameworks.opensurvey.DatabaseElementAnnotation
- Record Components:
annotationProperties- properties of the annotationdatabaseName- name of the databaseschemaName- name of the schema, or null for a database annotationtableName- name of the table or view, or null for a database or schema annotationcolumnName- name of the column, or null unless this is a column annotation
public record DatabaseElementAnnotation(AnnotationProperties annotationProperties, String databaseName, String schemaName, String tableName, String columnName)
extends Record
An annotation produced by a database survey, together with the names of the database resource that it
describes. The names are those used by the database itself. A database annotation has only the database
name set; a schema annotation adds the schema name; a table annotation adds the table name; and a column
annotation adds the column name.
SurveyDatabaseElementResolver uses the names to find the catalogued
element that the annotation is linked to.-
Constructor Summary
ConstructorsConstructorDescriptionDatabaseElementAnnotation(AnnotationProperties annotationProperties, String databaseName, String schemaName, String tableName, String columnName) Creates an instance of aDatabaseElementAnnotationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theannotationPropertiesrecord component.Returns the value of thecolumnNamerecord component.Returns the value of thedatabaseNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theschemaNamerecord component.Returns the value of thetableNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DatabaseElementAnnotation
public DatabaseElementAnnotation(AnnotationProperties annotationProperties, String databaseName, String schemaName, String tableName, String columnName) Creates an instance of aDatabaseElementAnnotationrecord class.- Parameters:
annotationProperties- the value for theannotationPropertiesrecord componentdatabaseName- the value for thedatabaseNamerecord componentschemaName- the value for theschemaNamerecord componenttableName- the value for thetableNamerecord componentcolumnName- the value for thecolumnNamerecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
annotationProperties
Returns the value of theannotationPropertiesrecord component.- Returns:
- the value of the
annotationPropertiesrecord component
-
databaseName
Returns the value of thedatabaseNamerecord component.- Returns:
- the value of the
databaseNamerecord component
-
schemaName
Returns the value of theschemaNamerecord component.- Returns:
- the value of the
schemaNamerecord component
-
tableName
Returns the value of thetableNamerecord component.- Returns:
- the value of the
tableNamerecord component
-
columnName
Returns the value of thecolumnNamerecord component.- Returns:
- the value of the
columnNamerecord component
-