Record Class StoredQueryQualifiedName

java.lang.Object
java.lang.Record
org.ehrbase.util.StoredQueryQualifiedName
Record Components:
reverseDomainName - reverse domain name like rg.example.departmentx.test::diabetes-patient-overview
semanticId - semantic identifier of the query prod
semVer - semantic version of the query like 1.2.3

public record StoredQueryQualifiedName(String reverseDomainName, String semanticId, SemVer semVer) extends Record
Represents a stored AQL Query, as described in openEHR Platform Service Model: 8. Query Service with format
 reverse-domain-name '::' semantic-id [ '/' version ]

 org.example.departmentx.test::diabetes-patient-overview/1.0.2
 
See Also:
  • Constructor Details

    • StoredQueryQualifiedName

      public StoredQueryQualifiedName(@NonNull String reverseDomainName, @NonNull String semanticId, @NonNull SemVer semVer)
      Creates an instance of a StoredQueryQualifiedName record class.
      Parameters:
      reverseDomainName - the value for the reverseDomainName record component
      semanticId - the value for the semanticId record component
      semVer - the value for the semVer record component
  • Method Details

    • create

      public static StoredQueryQualifiedName create(@NonNull String qualifiedName, @Nullable SemVer version)
    • toName

      public String toName()
      Returns the name part of the qualified query name:
       reverse-domain-name '::' semantic-id [ '/' version ]
      
       org.example.departmentx.test::diabetes-patient-overview/1.0.2
       
      Returns:
      name part concatenated reverseDomainName::semanticId
    • toQualifiedNameString

      public String toQualifiedNameString()
      Returns the fully qualified query name
       reverse-domain-name '::' semantic-id
      
       org.example.departmentx.test::diabetes-patient-overview
       
      Returns:
      qualifiedName part concatenated reverseDomainName::semanticId/semVer
    • toString

      public String toString()
      Specified by:
      toString in class Record
      Returns:
      qualifiedName from toQualifiedNameString()
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • reverseDomainName

      @NonNull public String reverseDomainName()
      Returns the value of the reverseDomainName record component.
      Returns:
      the value of the reverseDomainName record component
    • semanticId

      @NonNull public String semanticId()
      Returns the value of the semanticId record component.
      Returns:
      the value of the semanticId record component
    • semVer

      @NonNull public SemVer semVer()
      Returns the value of the semVer record component.
      Returns:
      the value of the semVer record component